Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'build_files/cmake/cmake_static_check_cppcheck.py')
-rw-r--r--build_files/cmake/cmake_static_check_cppcheck.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/build_files/cmake/cmake_static_check_cppcheck.py b/build_files/cmake/cmake_static_check_cppcheck.py
index 9b03bbf3982..4249537eca8 100644
--- a/build_files/cmake/cmake_static_check_cppcheck.py
+++ b/build_files/cmake/cmake_static_check_cppcheck.py
@@ -23,6 +23,11 @@
# <pep8 compliant>
+import project_source_info
+import subprocess
+import sys
+import os
+
CHECKER_IGNORE_PREFIX = [
"extern",
"intern/moto",
@@ -31,15 +36,11 @@ CHECKER_IGNORE_PREFIX = [
CHECKER_BIN = "cppcheck"
CHECKER_ARGS = [
- "-I/dsk/data/src/blender/blender/extern/glew/include",
+ "-I" + os.join(project_source_info.SORCE_DIR, "blender/extern/glew/include"),
# "--check-config", # when includes are missing
# "--enable=all", # if you want sixty hundred pedantic suggestions
]
-import project_source_info
-import subprocess
-import sys
-
def main():
source_info = project_source_info.build_info(ignore_prefix_list=CHECKER_IGNORE_PREFIX)