Chromium Code Reviews| 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(product_type != "", "force use of product_type") | |
|
brettw
2016/05/03 20:28:14
Ah, in that case, can you add a better comment her
sdefresne
2016/05/03 21:08:01
Done.
| |
| 174 } | 176 } |
| 175 | 177 |
| 176 # TODO(crbug.com/297668): | 178 # TODO(crbug.com/297668): |
| 177 # - add support for codesigning, | 179 # - add support for codesigning, |
| 178 # - find a way to make "ninja -C out/Default base_unittests.app" work as | 180 # - 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 | 181 # an alias to "ninja -C out/Default base_unittests" (for convenience |
| 180 # and compatibility with gyp), | 182 # and compatibility with gyp), |
| 181 } | 183 } |
| 182 | 184 |
| 183 # Compile a xib or storyboard file and add it to a bundle_data so that it is | 185 # 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 [ | 421 [ |
| 420 "testonly", | 422 "testonly", |
| 421 "visibility", | 423 "visibility", |
| 422 ]) | 424 ]) |
| 423 public_deps = [ | 425 public_deps = [ |
| 424 ":$_framework_target+link", | 426 ":$_framework_target+link", |
| 425 ] | 427 ] |
| 426 } | 428 } |
| 427 } | 429 } |
| 428 } | 430 } |
| OLD | NEW |