OLD | NEW |
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 "output_name", | 134 "output_name", |
135 "product_type", | 135 "product_type", |
136 "visibility", | 136 "visibility", |
137 ]) | 137 ]) |
138 | 138 |
139 output_name = rebase_path("$target_gen_dir/$_output_name", root_out_dir) | 139 output_name = rebase_path("$target_gen_dir/$_output_name", root_out_dir) |
140 if (!defined(libs)) { | 140 if (!defined(libs)) { |
141 libs = [] | 141 libs = [] |
142 } | 142 } |
143 libs += [ "UIKit.framework" ] | 143 libs += [ "UIKit.framework" ] |
| 144 if (!defined(ldflags)) { |
| 145 ldflags = [] |
| 146 } |
| 147 ldflags += [ "-ObjC" ] |
144 } | 148 } |
145 | 149 |
146 bundle_data(_bundle_data_executable) { | 150 bundle_data(_bundle_data_executable) { |
147 forward_variables_from(invoker, [ "testonly" ]) | 151 forward_variables_from(invoker, [ "testonly" ]) |
148 visibility = [ ":$_target_name" ] | 152 visibility = [ ":$_target_name" ] |
149 sources = [ | 153 sources = [ |
150 "$target_gen_dir/$_output_name", | 154 "$target_gen_dir/$_output_name", |
151 ] | 155 ] |
152 outputs = [ | 156 outputs = [ |
153 "{{bundle_executable_dir}}/$_output_name", | 157 "{{bundle_executable_dir}}/$_output_name", |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 [ | 497 [ |
494 "testonly", | 498 "testonly", |
495 "visibility", | 499 "visibility", |
496 ]) | 500 ]) |
497 public_deps = [ | 501 public_deps = [ |
498 ":$_framework_target+link", | 502 ":$_framework_target+link", |
499 ] | 503 ] |
500 } | 504 } |
501 } | 505 } |
502 } | 506 } |
OLD | NEW |