diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-26 18:30:38 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-26 18:30:38 +0300 |
commit | 61235fcc8a74283166632150e8b8369089ad4a21 (patch) | |
tree | 6c6117feed08bcad10b36987ad3e95234ea86fa5 /build_files | |
parent | a12315e4ec1bb3d02a7a4d09afc450745a1784f6 (diff) |
fix for 'live edit', running python scripts as you type
- errors would jump to the line which gets in the way.
- the window wouldn't always redraw.
Diffstat (limited to 'build_files')
-rw-r--r-- | build_files/cmake/cmake_qtcreator_project.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/build_files/cmake/cmake_qtcreator_project.py b/build_files/cmake/cmake_qtcreator_project.py index da0a7b4fc3b..55aa9a75a82 100644 --- a/build_files/cmake/cmake_qtcreator_project.py +++ b/build_files/cmake/cmake_qtcreator_project.py @@ -32,6 +32,7 @@ base = abspath(base) SIMPLE_PROJECTFILE = False + def source_list(path, filename_check=None): for dirpath, dirnames, filenames in os.walk(path): @@ -85,7 +86,7 @@ def cmake_advanced_info(): includes = [] defines = [] - + import os import sys @@ -98,7 +99,7 @@ def cmake_advanced_info(): sys.exit(1) # create_eclipse_project(cmake_dir) - + from xml.dom.minidom import parse tree = parse(os.path.join(cmake_dir, ".cproject")) ''' @@ -106,12 +107,12 @@ def cmake_advanced_info(): f.write(tree.toprettyxml(indent=" ", newl="")) ''' ELEMENT_NODE = tree.ELEMENT_NODE - + cproject, = tree.getElementsByTagName("cproject") for storage in cproject.childNodes: if storage.nodeType != ELEMENT_NODE: continue - + if storage.attributes["moduleId"].value == "org.eclipse.cdt.core.settings": cconfig = storage.getElementsByTagName("cconfiguration")[0] for substorage in cconfig.childNodes: @@ -139,7 +140,7 @@ def cmake_advanced_info(): # <pathentry include="/data/src/blender/blender/source/blender/editors/include" kind="inc" path="" system="true"/> includes.append(path.attributes["include"].value) else: - print(kind) + pass return includes, defines @@ -169,7 +170,7 @@ def main(): f.write("// ADD PREDEFINED MACROS HERE!\n") else: includes, defines = cmake_advanced_info() - + PROJECT_NAME = "Blender" f = open(join(base, "%s.files" % PROJECT_NAME), 'w') f.write("\n".join(files_rel)) |