| 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 tool("stamp") { | 232 tool("stamp") { |
| 233 command = stamp_command | 233 command = stamp_command |
| 234 description = stamp_description | 234 description = stamp_description |
| 235 } | 235 } |
| 236 tool("copy") { | 236 tool("copy") { |
| 237 command = copy_command | 237 command = copy_command |
| 238 description = copy_description | 238 description = copy_description |
| 239 } | 239 } |
| 240 | 240 |
| 241 tool("copy_bundle_data") { | 241 tool("copy_bundle_data") { |
| 242 command = "rm -rf {{output}} && " + | 242 if (is_ios) { |
| 243 "./gyp-mac-tool copy-bundle-resource {{source}} {{output}} True" | 243 _convert_to_binary = "True" |
| 244 } else { |
| 245 _convert_to_binary = "False" |
| 246 } |
| 247 command = "rm -rf {{output}} && ./gyp-mac-tool copy-bundle-resource {{sour
ce}} {{output}} $_convert_to_binary" |
| 244 description = "COPY_BUNDLE_DATA {{source}} {{output}}" | 248 description = "COPY_BUNDLE_DATA {{source}} {{output}}" |
| 245 } | 249 } |
| 246 tool("compile_xcassets") { | 250 tool("compile_xcassets") { |
| 247 if (is_ios) { | 251 if (is_ios) { |
| 248 _configuration = "Release" | 252 _configuration = "Release" |
| 249 if (is_debug) { | 253 if (is_debug) { |
| 250 _configuration = "Debug" | 254 _configuration = "Debug" |
| 251 } | 255 } |
| 252 | 256 |
| 253 _compile_xcassets_env = | 257 _compile_xcassets_env = |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 } | 360 } |
| 357 | 361 |
| 358 mac_toolchain("x64") { | 362 mac_toolchain("x64") { |
| 359 toolchain_cpu = "x64" | 363 toolchain_cpu = "x64" |
| 360 toolchain_os = "mac" | 364 toolchain_os = "mac" |
| 361 cc = "${goma_prefix}/gcc" | 365 cc = "${goma_prefix}/gcc" |
| 362 cxx = "${goma_prefix}/g++" | 366 cxx = "${goma_prefix}/g++" |
| 363 ld = cxx | 367 ld = cxx |
| 364 is_clang = false | 368 is_clang = false |
| 365 } | 369 } |
| OLD | NEW |