Build using make on Linux
This commit is contained in:
parent
b596adc237
commit
3076781c8a
1 changed files with 6 additions and 6 deletions
|
@ -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__':
|
||||
|
|
Loading…
Reference in a new issue