Rewrite script/build in Python

The script is still Mac-specific, but this will make it easier to add
Windows support later.
This commit is contained in:
Adam Roben 2013-05-13 18:55:10 -04:00
parent c29074ff94
commit 46c887b62d

View file

@ -1,8 +1,18 @@
#!/bin/sh
#!/usr/bin/env python
set -e
import os
import subprocess
cd "$(dirname "$0")/.."
gyp --depth . brightray.gyp
xcodebuild
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
def main():
os.chdir(SOURCE_ROOT)
subprocess.check_call(['gyp', '--depth', '.', 'brightray.gyp'])
subprocess.check_call(['xcodebuild'])
if __name__ == '__main__':
import sys
sys.exit(main())