Build using make on Linux

This commit is contained in:
Adam Roben 2013-08-06 17:25:07 -04:00
parent b596adc237
commit 3076781c8a

View file

@ -13,22 +13,22 @@ GYP = {
def main():
os.chdir(SOURCE_ROOT)
run_gyp()
build()
return (run_gyp() or build())
def run_gyp():
subprocess.check_call([GYP, '--depth', '.', 'brightray.gyp'])
return subprocess.call([GYP, '--depth', '.', 'brightray.gyp'])
def build():
if sys.platform == 'darwin':
subprocess.check_call(['xcodebuild'])
return
return subprocess.call(['xcodebuild'])
if sys.platform == 'linux2':
return subprocess.call(['make'])
assert sys.platform == 'win32', sys.platform
msbuild = os.path.join(os.environ['windir'], 'Microsoft.NET', 'Framework', 'v4.0.30319', 'MSBuild.exe')
subprocess.check_call([msbuild, 'brightray.sln'])
return subprocess.call([msbuild, 'brightray.sln'])
if __name__ == '__main__':