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

Side by Side Diff: build/config/mac/base_rules.gni

Issue 2109133002: Fix script and compiler invocation when using non-default toolchain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@{0}
Patch Set: Created 4 years, 5 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/ios/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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 # This file contains rules that are shared between Mac and iOS. 5 # This file contains rules that are shared between Mac and iOS.
6 6
7 import("//build/toolchain/toolchain.gni") 7 import("//build/toolchain/toolchain.gni")
8 8
9 if (is_mac) { 9 if (is_mac) {
10 import("//build/config/mac/mac_sdk.gni") 10 import("//build/config/mac/mac_sdk.gni")
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 invoker.source, 42 invoker.source,
43 ] 43 ]
44 outputs = [ 44 outputs = [
45 invoker.output, 45 invoker.output,
46 ] 46 ]
47 args = [ 47 args = [
48 "plutil", 48 "plutil",
49 "-convert", 49 "-convert",
50 invoker.format, 50 invoker.format,
51 "-o", 51 "-o",
52 rebase_path(invoker.output, root_out_dir), 52 rebase_path(invoker.output, root_build_dir),
53 rebase_path(invoker.source, root_out_dir), 53 rebase_path(invoker.source, root_build_dir),
54 ] 54 ]
55 } 55 }
56 } 56 }
57 57
58 # The base template used to generate Info.plist files for iOS and Mac apps and 58 # The base template used to generate Info.plist files for iOS and Mac apps and
59 # frameworks. 59 # frameworks.
60 # 60 #
61 # Arguments 61 # Arguments
62 # 62 #
63 # plist_templates: 63 # plist_templates:
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 public_deps = [ 263 public_deps = [
264 ":$_shared_library_target", 264 ":$_shared_library_target",
265 ] 265 ]
266 } 266 }
267 267
268 _framework_public_config = _target_name + "_public_config" 268 _framework_public_config = _target_name + "_public_config"
269 config(_framework_public_config) { 269 config(_framework_public_config) {
270 # TODO(sdefresne): should we have a framework_dirs similar to lib_dirs 270 # TODO(sdefresne): should we have a framework_dirs similar to lib_dirs
271 # and include_dirs to avoid duplicate values on the command-line. 271 # and include_dirs to avoid duplicate values on the command-line.
272 visibility = [ ":$_framework_target" ] 272 visibility = [ ":$_framework_target" ]
273 ldflags = [ "-F" + rebase_path("$root_out_dir/.", root_out_dir) ] 273 ldflags = [ "-F" + rebase_path("$root_out_dir/.", root_build_dir) ]
274 lib_dirs = [ root_out_dir ] 274 lib_dirs = [ root_out_dir ]
275 libs = [ _framework_name ] 275 libs = [ _framework_name ]
276 } 276 }
277 277
278 create_bundle(_framework_target) { 278 create_bundle(_framework_target) {
279 forward_variables_from(invoker, 279 forward_variables_from(invoker,
280 [ 280 [
281 "data_deps", 281 "data_deps",
282 "deps", 282 "deps",
283 "public_deps", 283 "public_deps",
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 "$target_gen_dir/{{source_name_part}}.nib", 369 "$target_gen_dir/{{source_name_part}}.nib",
370 ] 370 ]
371 args = [ 371 args = [
372 "--input", 372 "--input",
373 "{{source}}", 373 "{{source}}",
374 "--output", 374 "--output",
375 rebase_path("$target_gen_dir/{{source_name_part}}.nib"), 375 rebase_path("$target_gen_dir/{{source_name_part}}.nib"),
376 ] + ibtool_flags 376 ] + ibtool_flags
377 } 377 }
378 } 378 }
OLDNEW
« no previous file with comments | « build/config/ios/rules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698