Make script/build actually run gyp on Windows
We don't yet build, but we're getting closer.
This commit is contained in:
parent
0dfd5ec320
commit
fd6e43baf9
1 changed files with 6 additions and 3 deletions
|
@ -2,17 +2,20 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
||||||
|
GYP = {
|
||||||
|
'darwin': 'gyp',
|
||||||
|
'win32': 'gyp.bat',
|
||||||
|
}[sys.platform]
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
os.chdir(SOURCE_ROOT)
|
os.chdir(SOURCE_ROOT)
|
||||||
subprocess.check_call(['gyp', '--depth', '.', 'brightray.gyp'])
|
subprocess.check_call([GYP, '--depth', '.', 'brightray.gyp'])
|
||||||
subprocess.check_call(['xcodebuild'])
|
subprocess.check_call(['xcodebuild'])
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
import sys
|
|
||||||
sys.exit(main())
|
sys.exit(main())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue