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

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

Issue 1886813003: [Mac/iOS/GN] Allow targets to override the output directory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-patch
Patch Set: Rebase Created 4 years, 8 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 | build/toolchain/mac/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 import("//build/toolchain/toolchain.gni") 5 import("//build/toolchain/toolchain.gni")
6 6
7 # This is used as the base template for both iOS and Mac frameworks.. 7 # This is used as the base template for both iOS and Mac frameworks..
8 # 8 #
9 # Arguments 9 # Arguments
10 # 10 #
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 [ 50 [
51 "assert_no_deps", 51 "assert_no_deps",
52 "data_deps", 52 "data_deps",
53 "info_plist", 53 "info_plist",
54 "output_name", 54 "output_name",
55 "visibility", 55 "visibility",
56 ]) 56 ])
57 output_name = _output_name 57 output_name = _output_name
58 output_prefix_override = true 58 output_prefix_override = true
59 output_extension = "" 59 output_extension = ""
60 output_dir = "$target_out_dir/$_shared_library_target"
60 } 61 }
61 62
62 bundle_data(_shared_library_bundle_data) { 63 bundle_data(_shared_library_bundle_data) {
63 visibility = [ ":$_framework_target" ] 64 visibility = [ ":$_framework_target" ]
64 forward_variables_from(invoker, [ "testonly" ]) 65 forward_variables_from(invoker, [ "testonly" ])
65 sources = [ 66 sources = [
66 "$root_out_dir/${_output_name}", 67 "$target_out_dir/$_shared_library_target/$_output_name",
67 ] 68 ]
68 outputs = [ 69 outputs = [
69 "{{bundle_executable_dir}}/$_output_name", 70 "{{bundle_executable_dir}}/$_output_name",
70 ] 71 ]
71 public_deps = [ 72 public_deps = [
72 ":$_shared_library_target", 73 ":$_shared_library_target",
73 ] 74 ]
74 } 75 }
75 76
76 create_bundle(_framework_target) { 77 create_bundle(_framework_target) {
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 165
165 framework_bundle(target_name) { 166 framework_bundle(target_name) {
166 forward_variables_from(invoker, "*", [ "info_plist" ]) 167 forward_variables_from(invoker, "*", [ "info_plist" ])
167 168
168 if (!defined(deps)) { 169 if (!defined(deps)) {
169 deps = [] 170 deps = []
170 } 171 }
171 deps += [ ":$_info_plist_bundle_data" ] 172 deps += [ ":$_info_plist_bundle_data" ]
172 } 173 }
173 } 174 }
OLDNEW
« no previous file with comments | « no previous file | build/toolchain/mac/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698