Chromium Code Reviews| 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 import("//build_overrides/build.gni") | 8 import("//build_overrides/build.gni") |
| 9 import("//build/config/chrome_build.gni") | 9 import("//build/config/chrome_build.gni") |
| 10 | 10 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 81 if (is_mac || is_ios) { | 81 if (is_mac || is_ios) { |
| 82 shlib_extension = ".dylib" | 82 shlib_extension = ".dylib" |
| 83 } else if (is_android && is_component_build) { | 83 } else if (is_android && is_component_build) { |
| 84 # By appending .cr, we prevent name collisions with libraries already | 84 # By appending .cr, we prevent name collisions with libraries already |
| 85 # loaded by the Android zygote. | 85 # loaded by the Android zygote. |
| 86 shlib_extension = ".cr.so" | 86 shlib_extension = ".cr.so" |
| 87 } else if (is_posix) { | 87 } else if (is_posix) { |
| 88 shlib_extension = ".so" | 88 shlib_extension = ".so" |
| 89 } else if (is_win) { | 89 } else if (is_win) { |
| 90 shlib_extension = ".dll" | 90 shlib_extension = ".dll" |
| 91 } else if (current_os == "fuchsia") { | |
| 92 shlib_extension = ".so" # ? | |
|
jamesr
2017/02/17 00:47:35
that is the shared library extension for fuchsia.
| |
| 91 } else { | 93 } else { |
| 92 assert(false, "Platform not supported") | 94 assert(false, "Platform not supported") |
| 93 } | 95 } |
| 94 | 96 |
| 95 # Prefix for shared library files. | 97 # Prefix for shared library files. |
| 96 if (is_posix) { | 98 if (is_posix) { |
| 97 shlib_prefix = "lib" | 99 shlib_prefix = "lib" |
| 98 } else { | 100 } else { |
| 99 shlib_prefix = "" | 101 shlib_prefix = "" |
| 100 } | 102 } |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 111 _tool_wrapper_path = | 113 _tool_wrapper_path = |
| 112 rebase_path("//build/toolchain/win/tool_wrapper.py", root_build_dir) | 114 rebase_path("//build/toolchain/win/tool_wrapper.py", root_build_dir) |
| 113 | 115 |
| 114 stamp_command = "$python_path $_tool_wrapper_path stamp {{output}}" | 116 stamp_command = "$python_path $_tool_wrapper_path stamp {{output}}" |
| 115 copy_command = | 117 copy_command = |
| 116 "$python_path $_tool_wrapper_path recursive-mirror {{source}} {{output}}" | 118 "$python_path $_tool_wrapper_path recursive-mirror {{source}} {{output}}" |
| 117 } else { | 119 } else { |
| 118 stamp_command = "touch {{output}}" | 120 stamp_command = "touch {{output}}" |
| 119 copy_command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})" | 121 copy_command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})" |
| 120 } | 122 } |
| OLD | NEW |