Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Side by Side Diff: build/toolchain/toolchain.gni

Issue 2692273008: Hacky slashy (Closed)
Patch Set: tidy up required gn flags, use sdk Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 (is_fuchsia) {
92 shlib_extension = ".so" # ?
jamesr 2017/02/18 00:18:40 ".so" is correct for fuchsia
jamesr 2017/02/18 00:18:40 ".so" is correct for fuchsia
scottmg 2017/02/18 00:25:19 Done.
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698