atom.gyp -> electron.gyp

This commit is contained in:
Kevin Sawicki 2016-03-31 09:23:04 -07:00
parent ef08138a8d
commit c036986cc4
4 changed files with 4 additions and 4 deletions

View file

@ -44,13 +44,13 @@ def increase_version(versions, index):
def update_atom_gyp(version): def update_atom_gyp(version):
pattern = re.compile(" *'version%' *: *'[0-9.]+'") pattern = re.compile(" *'version%' *: *'[0-9.]+'")
with open('atom.gyp', 'r') as f: with open('electron.gyp', 'r') as f:
lines = f.readlines() lines = f.readlines()
for i in range(0, len(lines)): for i in range(0, len(lines)):
if pattern.match(lines[i]): if pattern.match(lines[i]):
lines[i] = " 'version%': '{0}',\n".format(version) lines[i] = " 'version%': '{0}',\n".format(version)
with open('atom.gyp', 'w') as f: with open('electron.gyp', 'w') as f:
f.write(''.join(lines)) f.write(''.join(lines))
return return

View file

@ -180,7 +180,7 @@ def execute_stdout(argv, env=os.environ):
def atom_gyp(): def atom_gyp():
SOURCE_ROOT = os.path.abspath(os.path.join(__file__, '..', '..', '..')) SOURCE_ROOT = os.path.abspath(os.path.join(__file__, '..', '..', '..'))
gyp = os.path.join(SOURCE_ROOT, 'atom.gyp') gyp = os.path.join(SOURCE_ROOT, 'electron.gyp')
with open(gyp) as f: with open(gyp) as f:
obj = eval(f.read()); obj = eval(f.read());
return obj['variables'] return obj['variables']

View file

@ -68,7 +68,7 @@ def run_gyp(target_arch, component):
'-Dmas_build={0}'.format(mas_build), '-Dmas_build={0}'.format(mas_build),
] ]
return subprocess.call([python, gyp, '-f', 'ninja', '--depth', '.', return subprocess.call([python, gyp, '-f', 'ninja', '--depth', '.',
'atom.gyp', '-Icommon.gypi'] + defines, env=env) 'electron.gyp', '-Icommon.gypi'] + defines, env=env)
if __name__ == '__main__': if __name__ == '__main__':