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

Side by Side Diff: build/toolchain/mac/BUILD.gn

Issue 2033503003: [Mac/iOS/GN] Add //build/toolchain/mac/filter_libtool.py. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | build/toolchain/mac/filter_libtool.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 # TODO(brettw) Use "gcc_toolchain.gni" like the Linux toolchains. This requires 5 # TODO(brettw) Use "gcc_toolchain.gni" like the Linux toolchains. This requires
6 # some enhancements since the commands on Mac are slightly different than on 6 # some enhancements since the commands on Mac are slightly different than on
7 # Linux. 7 # Linux.
8 8
9 import("../goma.gni") 9 import("../goma.gni")
10 import("//build/config/ios/ios_sdk.gni") 10 import("//build/config/ios/ios_sdk.gni")
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 precompiled_header_type = "gcc" 104 precompiled_header_type = "gcc"
105 command = "$cxx -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_objcc}} -c {{source}} -o {{output}}" 105 command = "$cxx -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_objcc}} -c {{source}} -o {{output}}"
106 depsformat = "gcc" 106 depsformat = "gcc"
107 description = "OBJCXX {{output}}" 107 description = "OBJCXX {{output}}"
108 outputs = [ 108 outputs = [
109 "$object_subdir/{{source_name_part}}.o", 109 "$object_subdir/{{source_name_part}}.o",
110 ] 110 ]
111 } 111 }
112 112
113 tool("alink") { 113 tool("alink") {
114 command = "rm -f {{output}} && ./gyp-mac-tool filter-libtool libtool -stat ic {{arflags}} -o {{output}} {{inputs}}" 114 script =
115 rebase_path("//build/toolchain/mac/filter_libtool.py", root_build_dir)
116 command = "rm -f {{output}} && python $script libtool -static {{arflags}} -o {{output}} {{inputs}}"
115 description = "LIBTOOL-STATIC {{output}}" 117 description = "LIBTOOL-STATIC {{output}}"
116 outputs = [ 118 outputs = [
117 "{{output_dir}}/{{target_output_name}}{{output_extension}}", 119 "{{output_dir}}/{{target_output_name}}{{output_extension}}",
118 ] 120 ]
119 default_output_dir = "{{target_out_dir}}" 121 default_output_dir = "{{target_out_dir}}"
120 default_output_extension = ".a" 122 default_output_extension = ".a"
121 output_prefix = "lib" 123 output_prefix = "lib"
122 } 124 }
123 125
124 tool("solink") { 126 tool("solink") {
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 } 358 }
357 359
358 mac_toolchain("x64") { 360 mac_toolchain("x64") {
359 toolchain_cpu = "x64" 361 toolchain_cpu = "x64"
360 toolchain_os = "mac" 362 toolchain_os = "mac"
361 cc = "${goma_prefix}/gcc" 363 cc = "${goma_prefix}/gcc"
362 cxx = "${goma_prefix}/g++" 364 cxx = "${goma_prefix}/g++"
363 ld = cxx 365 ld = cxx
364 is_clang = false 366 is_clang = false
365 } 367 }
OLDNEW
« no previous file with comments | « no previous file | build/toolchain/mac/filter_libtool.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698