electron/brightray/script/build
Adam Roben fd6e43baf9 Make script/build actually run gyp on Windows
We don't yet build, but we're getting closer.
2013-05-16 09:15:05 -04:00

21 lines
398 B
Python
Executable file

#!/usr/bin/env python
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(['xcodebuild'])
if __name__ == '__main__':
sys.exit(main())