OLD | NEW |
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 Loading... |
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 -o {{output}} {{inputs}}" | 114 command = "rm -f {{output}} && ./gyp-mac-tool filter-libtool libtool -stat
ic {{arflags}} -o {{output}} {{inputs}}" |
115 description = "LIBTOOL-STATIC {{output}}" | 115 description = "LIBTOOL-STATIC {{output}}" |
116 outputs = [ | 116 outputs = [ |
117 "{{output_dir}}/{{target_output_name}}{{output_extension}}", | 117 "{{output_dir}}/{{target_output_name}}{{output_extension}}", |
118 ] | 118 ] |
119 default_output_dir = "{{target_out_dir}}" | 119 default_output_dir = "{{target_out_dir}}" |
120 default_output_extension = ".a" | 120 default_output_extension = ".a" |
121 output_prefix = "lib" | 121 output_prefix = "lib" |
122 } | 122 } |
123 | 123 |
124 tool("solink") { | 124 tool("solink") { |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 } | 360 } |
361 | 361 |
362 mac_toolchain("x64") { | 362 mac_toolchain("x64") { |
363 toolchain_cpu = "x64" | 363 toolchain_cpu = "x64" |
364 toolchain_os = "mac" | 364 toolchain_os = "mac" |
365 cc = "${goma_prefix}/gcc" | 365 cc = "${goma_prefix}/gcc" |
366 cxx = "${goma_prefix}/g++" | 366 cxx = "${goma_prefix}/g++" |
367 ld = cxx | 367 ld = cxx |
368 is_clang = false | 368 is_clang = false |
369 } | 369 } |
OLD | NEW |