Fix 'gn gen' with target_os="win" on Linux.
This is the first step to enable Windows cross-compilation when the host_os is Linux. There are compilation errors ahead but at least it is possible to generate ninja files. Bug: webrtc:8875 Change-Id: I91a238bcb5e8f7670a6d19805e1ac032511fd46e Reviewed-on: https://webrtc-review.googlesource.com/51821 Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#21984}
This commit is contained in:
parent
afa1546153
commit
a55bdc2406
15
DEPS
15
DEPS
@ -231,12 +231,23 @@ hooks = [
|
||||
'action': ['python', 'src/build/linux/sysroot_scripts/install-sysroot.py',
|
||||
'--arch=amd64'],
|
||||
},
|
||||
{
|
||||
# Case-insensitivity for the Win SDK. Must run before win_toolchain below.
|
||||
'name': 'ciopfs_linux',
|
||||
'pattern': '.',
|
||||
'condition': 'checkout_win and host_os == "linux"',
|
||||
'action': [ 'python',
|
||||
'src/third_party/depot_tools/download_from_google_storage.py',
|
||||
'--no_resume',
|
||||
'--no_auth',
|
||||
'--bucket', 'chromium-browser-clang/ciopfs',
|
||||
'-s', 'src/build/ciopfs.sha1',
|
||||
]
|
||||
},
|
||||
{
|
||||
# Update the Windows toolchain if necessary. Must run before 'clang' below.
|
||||
'name': 'win_toolchain',
|
||||
'pattern': '.',
|
||||
# TODO(thakis): Put some condition here. Not just host_os == 'win', because
|
||||
# we also need this for (mac|linux) -> win cross builds.
|
||||
'action': ['python', 'src/build/vs_toolchain.py', 'update'],
|
||||
},
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user