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

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: 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 22 matching lines...) Expand all
33 plist_templates = [ 33 plist_templates = [
34 "//build/config/mac/BuildInfo.plist", 34 "//build/config/mac/BuildInfo.plist",
35 invoker.info_plist, 35 invoker.info_plist,
36 ] 36 ]
37 forward_variables_from(invoker, [ "executable_name" ]) 37 forward_variables_from(invoker, [ "executable_name" ])
38 } 38 }
39 } 39 }
40 40
41 # Template to compile and package Mac XIB files as bundle data. 41 # Template to compile and package Mac XIB files as bundle data.
42 # 42 #
43 # Arguments 43 # Arguments
brettw 2016/05/02 22:27:19 Document the extra_configs variable here.
Robert Sesek 2016/05/02 22:30:12 Done.
44 # 44 #
45 # sources: 45 # sources:
46 # list of string, sources to comiple 46 # list of string, sources to comiple
47 # 47 #
48 # output_path: 48 # output_path:
49 # (optional) string, the path to use for the outputs list in the 49 # (optional) string, the path to use for the outputs list in the
50 # bundle_data step. If unspecified, defaults to bundle_resources_dir. 50 # bundle_data step. If unspecified, defaults to bundle_resources_dir.
51 template("mac_xib_bundle_data") { 51 template("mac_xib_bundle_data") {
52 _target_name = target_name 52 _target_name = target_name
53 _compile_target_name = _target_name + "_compile_ibtool" 53 _compile_target_name = _target_name + "_compile_ibtool"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 visibility = [ ":$_executable_bundle_data" ] 181 visibility = [ ":$_executable_bundle_data" ]
182 forward_variables_from(invoker, 182 forward_variables_from(invoker,
183 "*", 183 "*",
184 [ 184 [
185 "assert_no_deps", 185 "assert_no_deps",
186 "data_deps", 186 "data_deps",
187 "info_plist", 187 "info_plist",
188 "output_name", 188 "output_name",
189 "visibility", 189 "visibility",
190 ]) 190 ])
191 if (defined(extra_configs)) {
192 configs += extra_configs
193 }
191 output_name = _output_name 194 output_name = _output_name
192 output_dir = "$target_out_dir/$_executable_target" 195 output_dir = "$target_out_dir/$_executable_target"
193 } 196 }
194 197
195 bundle_data(_executable_bundle_data) { 198 bundle_data(_executable_bundle_data) {
196 visibility = [ ":$_target_name" ] 199 visibility = [ ":$_target_name" ]
197 forward_variables_from(invoker, [ "testonly" ]) 200 forward_variables_from(invoker, [ "testonly" ])
198 sources = [ 201 sources = [
199 "$target_out_dir/$_executable_target/$_output_name", 202 "$target_out_dir/$_executable_target/$_output_name",
200 ] 203 ]
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 ]) 307 ])
305 if (!defined(deps)) { 308 if (!defined(deps)) {
306 deps = [] 309 deps = []
307 } 310 }
308 deps += [ ":$_loadable_module_bundle_data" ] 311 deps += [ ":$_loadable_module_bundle_data" ]
309 312
310 bundle_root_dir = "$root_out_dir/$_output_name.plugin/Contents" 313 bundle_root_dir = "$root_out_dir/$_output_name.plugin/Contents"
311 bundle_executable_dir = "$bundle_root_dir/MacOS" 314 bundle_executable_dir = "$bundle_root_dir/MacOS"
312 } 315 }
313 } 316 }
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