Remove VScode specific script
Latest version of vscode CMake plugin does this automatically, so this
script has no reason to exist anymore.
Change-Id: I917822c4359b85bd7afca610b25145377a07606b
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fb32e2f..dd70f94 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -230,19 +230,3 @@
add_executable (getvideo src/getvideo_main.cpp)
target_link_libraries (getvideo pthread)
-
-# Visual Studio Code helper this needs to be at the end to make sure all
-# includes are handled correctly
-include (CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs)
-get_property (
- C_INCLUDE_DIRS
- DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- PROPERTY INCLUDE_DIRECTORIES
-)
-
-execute_process (
- COMMAND
- python3 ${CMAKE_CURRENT_SOURCE_DIR}/scripts/prime_vscode_compile_db.py
- ${C_INCLUDE_DIRS} ${CMAKE_EXTRA_GENERATOR_C_SYSTEM_INCLUDE_DIRS}
- ${CMAKE_EXTRA_GENERATOR_CXX_SYSTEM_INCLUDE_DIRS}
-)
diff --git a/scripts/prime_vscode_compile_db.py b/scripts/prime_vscode_compile_db.py
deleted file mode 100755
index 82ce977..0000000
--- a/scripts/prime_vscode_compile_db.py
+++ /dev/null
@@ -1,29 +0,0 @@
-#! /usr/bin/python3
-
-import json
-import shlex
-import os
-import sys
-
-SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
-VS_CODE_FILE = os.path.join(SCRIPT_DIR, "../.vscode/c_cpp_properties.json")
-
-def main():
- """ Main function"""
- if os.path.exists(VS_CODE_FILE):
- unique_includes = list(set(sys.argv[1:]))
-
- print("Adding {} includes to c_cpp_properties.json".format(len(unique_includes)))
- with open(VS_CODE_FILE) as vscodefile:
- vscode_data = json.load(vscodefile)
-
- for config in vscode_data["configurations"]:
- if config["name"] in "Linux":
- config["includePath"] = unique_includes
-
-
- with open(VS_CODE_FILE, 'w') as vscodefile:
- json.dump(vscode_data, vscodefile, sort_keys=True, indent=4)
-
-if __name__ == "__main__":
- main()