OLD | NEW |
---|---|
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 # Toolchain-related configuration that may be needed outside the context of the | 5 # Toolchain-related configuration that may be needed outside the context of the |
6 # toolchain() rules themselves. | 6 # toolchain() rules themselves. |
7 | 7 |
8 declare_args() { | 8 declare_args() { |
9 # Enable Link Time Optimization in optimized builds (output programs run | 9 # Enable Link Time Optimization in optimized builds (output programs run |
10 # faster, but linking is up to 5-20x slower). | 10 # faster, but linking is up to 5-20x slower). |
11 # | 11 # |
12 # TODO(pcc): Remove this flag if/when LTO is enabled in official builds. | 12 # TODO(pcc): Remove this flag if/when LTO is enabled in official builds. |
13 allow_posix_link_time_opt = false | 13 allow_posix_link_time_opt = false |
14 | |
15 # Clang compiler version. Clang files are placed at version-dependent paths. | |
16 clang_version = "3.9.0" | |
brettw
2016/05/03 16:55:35
Can this be an an is_clang condition so it's not d
aizatsky
2016/05/03 17:21:24
Done. Like this?
| |
14 } | 17 } |
15 | 18 |
16 # Subdirectory within root_out_dir for shared library files. | 19 # Subdirectory within root_out_dir for shared library files. |
17 # TODO(agrieve): GYP sets this to "lib" for Linux & Android, but this won't work | 20 # TODO(agrieve): GYP sets this to "lib" for Linux & Android, but this won't work |
18 # in GN until support for loadable_module() is added. | 21 # in GN until support for loadable_module() is added. |
19 # See: https://codereview.chromium.org/1236503002/ | 22 # See: https://codereview.chromium.org/1236503002/ |
20 shlib_subdir = "." | 23 shlib_subdir = "." |
21 | 24 |
22 # Root out dir for shared library files. | 25 # Root out dir for shared library files. |
23 root_shlib_dir = root_out_dir | 26 root_shlib_dir = root_out_dir |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
56 stamp_description = "STAMP {{output}}" | 59 stamp_description = "STAMP {{output}}" |
57 copy_description = "COPY {{source}} {{output}}" | 60 copy_description = "COPY {{source}} {{output}}" |
58 if (host_os == "win") { | 61 if (host_os == "win") { |
59 stamp_command = "$python_path gyp-win-tool stamp {{output}}" | 62 stamp_command = "$python_path gyp-win-tool stamp {{output}}" |
60 copy_command = | 63 copy_command = |
61 "$python_path gyp-win-tool recursive-mirror {{source}} {{output}}" | 64 "$python_path gyp-win-tool recursive-mirror {{source}} {{output}}" |
62 } else { | 65 } else { |
63 stamp_command = "touch {{output}}" | 66 stamp_command = "touch {{output}}" |
64 copy_command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})" | 67 copy_command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})" |
65 } | 68 } |
OLD | NEW |