Make script/build actually run gyp on Windows

We don't yet build, but we're getting closer.
This commit is contained in:
Adam Roben 2013-05-14 15:21:03 +00:00
parent 0dfd5ec320
commit fd6e43baf9

View file

@ -2,17 +2,20 @@
import os
import subprocess
import sys
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
GYP = {
'darwin': 'gyp',
'win32': 'gyp.bat',
}[sys.platform]
def main():
os.chdir(SOURCE_ROOT)
subprocess.check_call(['gyp', '--depth', '.', 'brightray.gyp'])
subprocess.check_call([GYP, '--depth', '.', 'brightray.gyp'])
subprocess.check_call(['xcodebuild'])
if __name__ == '__main__':
import sys
sys.exit(main())