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

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

Issue 1927273002: [Mac/GN] Add a BUILD.gn file for //chrome/app_shim. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-chrome-tools
Patch Set: Use invoker.configs 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 | « no previous file | chrome/app_shim/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/config/mac/base_rules.gni") 5 import("//build/config/mac/base_rules.gni")
6 6
7 # Generates Info.plist files for Mac apps and frameworks. 7 # Generates Info.plist files for Mac apps and frameworks.
8 # 8 #
9 # Arguments 9 # Arguments
10 # 10 #
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 174
175 _executable_target = target_name + "_executable" 175 _executable_target = target_name + "_executable"
176 _executable_bundle_data = _executable_target + "_bundle_data" 176 _executable_bundle_data = _executable_target + "_bundle_data"
177 177
178 executable(_executable_target) { 178 executable(_executable_target) {
179 visibility = [ ":$_executable_bundle_data" ] 179 visibility = [ ":$_executable_bundle_data" ]
180 forward_variables_from(invoker, 180 forward_variables_from(invoker,
181 "*", 181 "*",
182 [ 182 [
183 "assert_no_deps", 183 "assert_no_deps",
184 "configs",
brettw 2016/05/02 18:16:24 This should be removed. It should actually give yo
Robert Sesek 2016/05/02 18:46:17 Thanks. That was the open question, whether the cl
184 "data_deps", 185 "data_deps",
185 "info_plist", 186 "info_plist",
186 "output_name", 187 "output_name",
187 "visibility", 188 "visibility",
188 ]) 189 ])
190 if (defined(invoker.configs)) {
191 configs += invoker.configs
Dirk Pranke 2016/04/28 21:20:45 You don't need both line 184 and lines 190-192, I
Robert Sesek 2016/04/28 21:34:54 Hm, then you don't get the default configs that se
Dirk Pranke 2016/04/28 21:46:17 Good question. I would've expected the configs to
brettw 2016/05/02 18:16:24 These block is correct.
Robert Sesek 2016/05/02 18:46:17 That didn't seem to work if I removed the clobber.
brettw 2016/05/02 19:18:01 Don't know, I would recommend printing the various
Robert Sesek 2016/05/02 21:01:19 It's because the line I removed at 184 is actually
192 }
189 output_name = _output_name 193 output_name = _output_name
190 output_dir = "$target_out_dir/$_executable_target" 194 output_dir = "$target_out_dir/$_executable_target"
191 } 195 }
192 196
193 bundle_data(_executable_bundle_data) { 197 bundle_data(_executable_bundle_data) {
194 visibility = [ ":$_target_name" ] 198 visibility = [ ":$_target_name" ]
195 forward_variables_from(invoker, [ "testonly" ]) 199 forward_variables_from(invoker, [ "testonly" ])
196 sources = [ 200 sources = [
197 "$target_out_dir/$_executable_target/$_output_name", 201 "$target_out_dir/$_executable_target/$_output_name",
198 ] 202 ]
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 ]) 306 ])
303 if (!defined(deps)) { 307 if (!defined(deps)) {
304 deps = [] 308 deps = []
305 } 309 }
306 deps += [ ":$_loadable_module_bundle_data" ] 310 deps += [ ":$_loadable_module_bundle_data" ]
307 311
308 bundle_root_dir = "$root_out_dir/$_output_name.plugin/Contents" 312 bundle_root_dir = "$root_out_dir/$_output_name.plugin/Contents"
309 bundle_executable_dir = "$bundle_root_dir/MacOS" 313 bundle_executable_dir = "$bundle_root_dir/MacOS"
310 } 314 }
311 } 315 }
OLDNEW
« no previous file with comments | « no previous file | chrome/app_shim/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698