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

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

Issue 2130793003: Mac: Use unique output path for compile_xibs template in GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 | « no previous file | 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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 "Sources must be specified for $target_name") 359 "Sources must be specified for $target_name")
360 360
361 ibtool_flags = [] 361 ibtool_flags = []
362 if (defined(invoker.ibtool_flags)) { 362 if (defined(invoker.ibtool_flags)) {
363 ibtool_flags = invoker.ibtool_flags 363 ibtool_flags = invoker.ibtool_flags
364 } 364 }
365 365
366 script = "//build/config/mac/compile_xib.py" 366 script = "//build/config/mac/compile_xib.py"
367 sources = invoker.sources 367 sources = invoker.sources
368 outputs = [ 368 outputs = [
369 "$target_gen_dir/{{source_name_part}}.nib", 369 "$target_gen_dir/$target_name/{{source_name_part}}.nib",
370 ] 370 ]
371 args = [ 371 args =
372 "--input", 372 [
373 "{{source}}", 373 "--input",
374 "--output", 374 "{{source}}",
375 rebase_path("$target_gen_dir/{{source_name_part}}.nib"), 375 "--output",
376 ] + ibtool_flags 376 rebase_path("$target_gen_dir/$target_name/{{source_name_part}}.nib"),
377 ] + ibtool_flags
377 } 378 }
378 } 379 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698