diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-03 18:38:29 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-03 18:38:29 +0300 |
commit | aec6020376878ee71fe58fa3a44559268aa27cd4 (patch) | |
tree | 99d620621d8b8ccdabb5a5e2ced84902dcedb883 /build_files | |
parent | b18870e6da68730c628ccc147898abe5c7b8e456 (diff) |
added support for windows/mingw
Diffstat (limited to 'build_files')
-rw-r--r-- | build_files/cmake/cmake_qtcreator_project.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/build_files/cmake/cmake_qtcreator_project.py b/build_files/cmake/cmake_qtcreator_project.py index 8b5a0a8754c..9adc14455f7 100644 --- a/build_files/cmake/cmake_qtcreator_project.py +++ b/build_files/cmake/cmake_qtcreator_project.py @@ -23,6 +23,11 @@ # <pep8 compliant> +""" +Exampel Win32 usage: + c:\Python32\python.exe c:\blender_dev\blender\build_files\cmake\cmake_qtcreator_project.py c:\blender_dev\cmake_build +""" + import os from os.path import join, dirname, normpath, abspath, splitext, relpath, exists @@ -81,7 +86,12 @@ def cmake_advanced_info(): """ def create_eclipse_project(cmake_dir): - cmd = 'cmake %r -G"Eclipse CDT4 - Unix Makefiles"' % cmake_dir + import sys + if sys.platform == "win32": + cmd = 'cmake %r -G"Eclipse CDT4 - MinGW Makefiles"' % cmake_dir + else: + cmd = 'cmake %r -G"Eclipse CDT4 - Unix Makefiles"' % cmake_dir + os.system(cmd) includes = [] @@ -98,7 +108,7 @@ def cmake_advanced_info(): print("CMakeCache.txt not found in %r or %r\n Pass CMake build dir as an argument, or run from that dir, abording" % (cmake_dir, os.getcwd())) sys.exit(1) - # create_eclipse_project(cmake_dir) + create_eclipse_project(cmake_dir) from xml.dom.minidom import parse tree = parse(os.path.join(cmake_dir, ".cproject")) |