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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 ":$_bundle_data_info_plist", | 160 ":$_bundle_data_info_plist", |
161 ] | 161 ] |
162 | 162 |
163 if (use_ios_simulator) { | 163 if (use_ios_simulator) { |
164 if (!defined(data_deps)) { | 164 if (!defined(data_deps)) { |
165 data_deps = [] | 165 data_deps = [] |
166 } | 166 } |
167 data_deps += [ "//testing/iossim" ] | 167 data_deps += [ "//testing/iossim" ] |
168 } | 168 } |
169 | 169 |
| 170 product_type = "com.apple.product-type.application" |
170 bundle_root_dir = "$root_out_dir/$_output_name.app" | 171 bundle_root_dir = "$root_out_dir/$_output_name.app" |
171 bundle_resources_dir = bundle_root_dir | 172 bundle_resources_dir = bundle_root_dir |
172 bundle_executable_dir = bundle_root_dir | 173 bundle_executable_dir = bundle_root_dir |
173 bundle_plugins_dir = "$bundle_root_dir/Plugins" | 174 bundle_plugins_dir = "$bundle_root_dir/Plugins" |
| 175 assert( |
| 176 product_type != "", |
| 177 "workaround to allow generation with version of gn that don't support pr
oduct_type property for create_bundle target => remove once gn has rolled this c
hange") |
174 } | 178 } |
175 | 179 |
176 # TODO(crbug.com/297668): | 180 # TODO(crbug.com/297668): |
177 # - add support for codesigning, | 181 # - add support for codesigning, |
178 # - find a way to make "ninja -C out/Default base_unittests.app" work as | 182 # - find a way to make "ninja -C out/Default base_unittests.app" work as |
179 # an alias to "ninja -C out/Default base_unittests" (for convenience | 183 # an alias to "ninja -C out/Default base_unittests" (for convenience |
180 # and compatibility with gyp), | 184 # and compatibility with gyp), |
181 } | 185 } |
182 | 186 |
183 # Compile a xib or storyboard file and add it to a bundle_data so that it is | 187 # Compile a xib or storyboard file and add it to a bundle_data so that it is |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 [ | 423 [ |
420 "testonly", | 424 "testonly", |
421 "visibility", | 425 "visibility", |
422 ]) | 426 ]) |
423 public_deps = [ | 427 public_deps = [ |
424 ":$_framework_target+link", | 428 ":$_framework_target+link", |
425 ] | 429 ] |
426 } | 430 } |
427 } | 431 } |
428 } | 432 } |
OLD | NEW |