It looks like we can build v8 with .lib files with gn/ninja on Windows after all.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3339 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
475da6dbf2
commit
bf698087f8
@ -31,7 +31,7 @@ if sys.platform == 'win32':
|
|||||||
env.Append(CXXFLAGS=['/EHsc', '/MT', '/Zi', '/Gy'])
|
env.Append(CXXFLAGS=['/EHsc', '/MT', '/Zi', '/Gy'])
|
||||||
env.Append(CFLAGS=['/EHsc', '/MT', '/Zi', '/Gy'])
|
env.Append(CFLAGS=['/EHsc', '/MT', '/Zi', '/Gy'])
|
||||||
env.Append(LIBPATH=[
|
env.Append(LIBPATH=[
|
||||||
os.path.join(v8, 'build/Release/lib'),
|
os.path.join(v8, 'out/native'),
|
||||||
os.path.join(uv, 'Release/lib'),
|
os.path.join(uv, 'Release/lib'),
|
||||||
])
|
])
|
||||||
env.Append(LINKFLAGS=['/RELEASE', '/OPT:REF', '/OPT:ICF'])
|
env.Append(LINKFLAGS=['/RELEASE', '/OPT:REF', '/OPT:ICF'])
|
||||||
|
@ -113,7 +113,6 @@ def updateV8():
|
|||||||
win32Env = os.environ.copy()
|
win32Env = os.environ.copy()
|
||||||
win32Env['DEPOT_TOOLS_WIN_TOOLCHAIN'] = '0'
|
win32Env['DEPOT_TOOLS_WIN_TOOLCHAIN'] = '0'
|
||||||
win32Env['GYP_MSVS_VERSION'] = '2015'
|
win32Env['GYP_MSVS_VERSION'] = '2015'
|
||||||
win32Env['GYP_GENERATORS'] = 'msvs'
|
|
||||||
|
|
||||||
open(os.path.join(kV8Work, '.update-deps-branch'), 'w').write(kV8Branch)
|
open(os.path.join(kV8Work, '.update-deps-branch'), 'w').write(kV8Branch)
|
||||||
run(['git', 'fetch'], cwd=kV8Work)
|
run(['git', 'fetch'], cwd=kV8Work)
|
||||||
@ -129,8 +128,8 @@ def updateV8():
|
|||||||
elif sys.platform == 'darwin':
|
elif sys.platform == 'darwin':
|
||||||
run(['make', '-j' + str(cores), 'native'], cwd=kV8Work)
|
run(['make', '-j' + str(cores), 'native'], cwd=kV8Work)
|
||||||
elif sys.platform == 'win32':
|
elif sys.platform == 'win32':
|
||||||
run(['python', 'gypfiles\\gyp_v8', '-Dtarget_arch=x64'], cwd=kV8Work, env=win32Env)
|
run(['gn', 'gen', 'out/native', '--args="is_component_build=true"'])
|
||||||
run(['devenv.com', 'src\\v8.sln', '/Build', 'Release'], cwd=kV8Work)
|
run(['ninja', '-C', 'out/native'])
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
updateUv()
|
updateUv()
|
||||||
|
Loading…
Reference in New Issue
Block a user