From 78583a14e642831d33cf1f6d66362e0d7ea591ad Mon Sep 17 00:00:00 2001 From: Peng Huang Date: Fri, 10 Feb 2023 13:53:31 +0000 Subject: [PATCH] Support cross build dawn for Windows on Linux Change-Id: I50474bacee3c0c7ebea8ffc05f457de550570382 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/119380 Reviewed-by: Corentin Wallez Kokoro: Kokoro Commit-Queue: Peng Huang --- DEPS | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/DEPS b/DEPS index 9ddd6775b6..3c28514f8a 100644 --- a/DEPS +++ b/DEPS @@ -238,6 +238,18 @@ hooks = [ 'condition': 'dawn_standalone and checkout_mac', 'action': ['python3', 'build/mac_toolchain.py'], }, + { + # Case-insensitivity for the Win SDK. Must run before win_toolchain below. + 'name': 'ciopfs_linux', + 'pattern': '.', + 'condition': 'checkout_win and host_os == "linux"', + 'action': [ 'download_from_google_storage', + '--no_resume', + '--no_auth', + '--bucket', 'chromium-browser-clang/ciopfs', + '-s', 'build/ciopfs.sha1', + ] + }, { # Update the Windows toolchain if necessary. Must run before 'clang' below. 'name': 'win_toolchain', @@ -273,6 +285,17 @@ hooks = [ '-s', 'build/toolchain/win/rc/win/rc.exe.sha1', ], }, + { + 'name': 'rc_linux', + 'pattern': '.', + 'condition': 'checkout_win and host_os == "linux"', + 'action': [ 'download_from_google_storage', + '--no_resume', + '--no_auth', + '--bucket', 'chromium-browser-clang/rc', + '-s', 'build/toolchain/win/rc/linux64/rc.sha1', + ] + }, # Pull clang-format binaries using checked-in hashes. { 'name': 'clang_format_win',