From a55bdc2406c307c028860c67cd6a9430062fd7c2 Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Mon, 12 Feb 2018 13:22:50 +0100 Subject: [PATCH] Fix 'gn gen' with target_os="win" on Linux. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Commit-Queue: Mirko Bonadei Cr-Commit-Position: refs/heads/master@{#21984} --- DEPS | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/DEPS b/DEPS index 0fddf9fe64..d23873d936 100644 --- a/DEPS +++ b/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'], }, {