1# Copyright 2023 The Chromium Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import("//build/config/win/visual_studio_version.gni") 6 7declare_args() { 8 win_toolchain_data_x86 = 9 exec_script("//build/toolchain/win/setup_toolchain.py", 10 [ 11 visual_studio_path, 12 windows_sdk_path, 13 visual_studio_runtime_dirs, 14 "win", 15 "x86", 16 "environment.x86", 17 ], 18 "scope") 19 20 win_toolchain_data_x64 = 21 exec_script("//build/toolchain/win/setup_toolchain.py", 22 [ 23 visual_studio_path, 24 windows_sdk_path, 25 visual_studio_runtime_dirs, 26 "win", 27 "x64", 28 "environment.x64", 29 ], 30 "scope") 31 if (target_cpu == "arm64" || host_cpu == "arm64") { 32 win_toolchain_data_arm64 = 33 exec_script("//build/toolchain/win/setup_toolchain.py", 34 [ 35 visual_studio_path, 36 windows_sdk_path, 37 visual_studio_runtime_dirs, 38 "win", 39 "arm64", 40 "environment.arm64", 41 ], 42 "scope") 43 } 44} 45