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():
|
def main():
|
||||||
os.chdir(SOURCE_ROOT)
|
os.chdir(SOURCE_ROOT)
|
||||||
run_gyp()
|
return (run_gyp() or build())
|
||||||
build()
|
|
||||||
|
|
||||||
|
|
||||||
def run_gyp():
|
def run_gyp():
|
||||||
subprocess.check_call([GYP, '--depth', '.', 'brightray.gyp'])
|
return subprocess.call([GYP, '--depth', '.', 'brightray.gyp'])
|
||||||
|
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
subprocess.check_call(['xcodebuild'])
|
return subprocess.call(['xcodebuild'])
|
||||||
return
|
if sys.platform == 'linux2':
|
||||||
|
return subprocess.call(['make'])
|
||||||
|
|
||||||
assert sys.platform == 'win32', sys.platform
|
assert sys.platform == 'win32', sys.platform
|
||||||
msbuild = os.path.join(os.environ['windir'], 'Microsoft.NET', 'Framework', 'v4.0.30319', 'MSBuild.exe')
|
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__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue