diff options
Diffstat (limited to '')
-rw-r--r-- | win/build.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/win/build.py b/win/build.py new file mode 100644 index 0000000..f42715b --- /dev/null +++ b/win/build.py @@ -0,0 +1,15 @@ +import os
+from wb import system, config, home_fn, cd_home
+
+os.environ['PATH'] += ";%s\\VC" % (os.path.normpath(config['MSVC']),)
+
+def build_vc(cmd):
+ system('cmd /c "vcvarsall.bat x86 && %s"' % (cmd,))
+
+def main():
+ cd_home()
+ build_vc("nmake /f %s" % (home_fn('msvc.mak'),))
+
+# if we are run directly, and not loaded as a module
+if __name__ == "__main__":
+ main()
|