Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 declare_args() { | 5 declare_args() { |
| 6 # Path to Visual Studio. If empty, the default is used which is to use the | 6 # Path to Visual Studio. If empty, the default is used which is to use the |
| 7 # automatic toolchain in depot_tools. If set, you must also set the | 7 # automatic toolchain in depot_tools. If set, you must also set the |
| 8 # visual_studio_version and wdk_path. | 8 # visual_studio_version and wdk_path. |
| 9 visual_studio_path = "" | 9 visual_studio_path = "" |
| 10 | 10 |
| 11 # Version of Visual Studio pointed to by the visual_studio_path. | 11 # Version of Visual Studio pointed to by the visual_studio_path. |
| 12 # Use "2013" for Visual Studio 2013, or "2013e" for the Express version. | 12 # Use "2013" for Visual Studio 2013, or "2013e" for the Express version. |
| 13 visual_studio_version = "" | 13 visual_studio_version = "" |
| 14 | 14 |
| 15 # Directory of the Windows driver kit. If visual_studio_path is empty, this | 15 # Directory of the Windows driver kit. If visual_studio_path is empty, this |
| 16 # will be auto-filled. | 16 # will be auto-filled. |
| 17 wdk_path = "" | 17 wdk_path = "" |
| 18 | 18 |
| 19 # Full path to the Windows SDK, not including a backslash at the end. | 19 # Full path to the Windows SDK, not including a backslash at the end. |
| 20 # This value is the default location, override if you have a different | 20 # This value is the default location, override if you have a different |
| 21 # installation location. | 21 # installation location. |
| 22 windows_sdk_path = "C:\Program Files (x86)\Windows Kits\10" | 22 windows_sdk_path = "C:\Program Files (x86)\Windows Kits\10" |
| 23 | 23 |
| 24 is_win_fastlink = false | 24 is_win_fastlink = false |
| 25 | |
| 26 # Set this to true to enable static analysis through Visual Studio's | |
| 27 # /analyze. This dramatically slows compiles and reports thousands of | |
| 28 # warnings, so normally this is done on a build machine and only the new | |
| 29 # warnings are examined. | |
| 30 is_win_analyze = false | |
|
brettw
2016/02/03 18:48:00
Does this need to be usable by anywhere other than
brucedawson
2016/02/06 01:07:30
It's need by ffmpeg's build file.
brettw
2016/02/19 22:03:05
With our discussion in chat, I think you can make
brucedawson
2016/02/19 22:45:33
Ah... now I see the advantage of unconditionally r
| |
| 25 } | 31 } |
| 26 | 32 |
| 27 if (visual_studio_path == "") { | 33 if (visual_studio_path == "") { |
| 28 toolchain_data = | 34 toolchain_data = |
| 29 exec_script("../../vs_toolchain.py", [ "get_toolchain_dir" ], "scope") | 35 exec_script("../../vs_toolchain.py", [ "get_toolchain_dir" ], "scope") |
| 30 visual_studio_path = toolchain_data.vs_path | 36 visual_studio_path = toolchain_data.vs_path |
| 31 windows_sdk_path = toolchain_data.sdk_path | 37 windows_sdk_path = toolchain_data.sdk_path |
| 32 visual_studio_version = toolchain_data.vs_version | 38 visual_studio_version = toolchain_data.vs_version |
| 33 wdk_path = toolchain_data.wdk_dir | 39 wdk_path = toolchain_data.wdk_dir |
| 34 visual_studio_runtime_dirs = toolchain_data.runtime_dirs | 40 visual_studio_runtime_dirs = toolchain_data.runtime_dirs |
| 35 } else { | 41 } else { |
| 36 assert(visual_studio_version != "", | 42 assert(visual_studio_version != "", |
| 37 "You must set the visual_studio_version if you set the path") | 43 "You must set the visual_studio_version if you set the path") |
| 38 assert(wdk_path != "", | 44 assert(wdk_path != "", |
| 39 "You must set the wdk_path if you set the visual studio path") | 45 "You must set the wdk_path if you set the visual studio path") |
| 40 visual_studio_runtime_dirs = [] | 46 visual_studio_runtime_dirs = [] |
| 41 } | 47 } |
| OLD | NEW |