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

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

Issue 1999513002: [Mac/GN] Implement dSYM generation and stripping. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a comment Created 4 years, 6 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
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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 # of info_plist. The two arguments are mutually exclusive. 202 # of info_plist. The two arguments are mutually exclusive.
203 # 203 #
204 # output_name: 204 # output_name:
205 # (optional) string, name of the generated app without the 205 # (optional) string, name of the generated app without the
206 # .app suffix. If omitted, defaults to target_name. 206 # .app suffix. If omitted, defaults to target_name.
207 # 207 #
208 # extra_configs: 208 # extra_configs:
209 # (optional) list of label, additional configs to apply to the 209 # (optional) list of label, additional configs to apply to the
210 # executable target. 210 # executable target.
211 # 211 #
212 # remove_configs:
213 # (optional) list of label, default configs to remove from the target.
214 #
212 # extra_substitutions: 215 # extra_substitutions:
213 # (optional) string array, 'key=value' pairs for extra fields which are 216 # (optional) string array, 'key=value' pairs for extra fields which are
214 # specified in a source Info.plist template. 217 # specified in a source Info.plist template.
215 template("mac_app_bundle") { 218 template("mac_app_bundle") {
216 _target_name = target_name 219 _target_name = target_name
217 _output_name = target_name 220 _output_name = target_name
218 if (defined(invoker.output_name)) { 221 if (defined(invoker.output_name)) {
219 _output_name = invoker.output_name 222 _output_name = invoker.output_name
220 } 223 }
221 224
(...skipping 20 matching lines...) Expand all
242 [ 245 [
243 "assert_no_deps", 246 "assert_no_deps",
244 "data_deps", 247 "data_deps",
245 "info_plist", 248 "info_plist",
246 "output_name", 249 "output_name",
247 "visibility", 250 "visibility",
248 ]) 251 ])
249 if (defined(extra_configs)) { 252 if (defined(extra_configs)) {
250 configs += extra_configs 253 configs += extra_configs
251 } 254 }
255 if (defined(remove_configs)) {
256 configs -= remove_configs
257 }
252 output_name = _output_name 258 output_name = _output_name
253 output_dir = "$target_out_dir/$_executable_target" 259 output_dir = "$target_out_dir/$_executable_target"
254 } 260 }
255 261
256 bundle_data(_executable_bundle_data) { 262 bundle_data(_executable_bundle_data) {
257 visibility = [ ":$_target_name" ] 263 visibility = [ ":$_target_name" ]
258 forward_variables_from(invoker, [ "testonly" ]) 264 forward_variables_from(invoker, [ "testonly" ])
259 sources = [ 265 sources = [
260 "$target_out_dir/$_executable_target/$_output_name", 266 "$target_out_dir/$_executable_target/$_output_name",
261 ] 267 ]
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 ]) 364 ])
359 if (!defined(deps)) { 365 if (!defined(deps)) {
360 deps = [] 366 deps = []
361 } 367 }
362 deps += [ ":$_loadable_module_bundle_data" ] 368 deps += [ ":$_loadable_module_bundle_data" ]
363 369
364 bundle_root_dir = "$root_out_dir/$_output_name.plugin/Contents" 370 bundle_root_dir = "$root_out_dir/$_output_name.plugin/Contents"
365 bundle_executable_dir = "$bundle_root_dir/MacOS" 371 bundle_executable_dir = "$bundle_root_dir/MacOS"
366 } 372 }
367 } 373 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698