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

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

Issue 1916713005: [Mac/GN] Allow the info_plist template caller to specify the plist format. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-split-rules
Patch Set: Created 4 years, 7 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 | « build/config/mac/rules.gni ('k') | no next file » | 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « build/config/mac/rules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698