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/ios/ios_sdk.gni") | 5 import("//build/config/ios/ios_sdk.gni") |
| 6 import("//build/config/mac/rules.gni") | 6 import("//build/config/mac/rules.gni") |
| 7 | 7 |
| 8 template("ios_info_plist") { | 8 template("ios_info_plist") { |
| 9 info_plist(target_name) { | 9 info_plist(target_name) { |
| 10 extra_substitutions = [] | 10 extra_substitutions = [] |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 145 ":$_bundle_data_info_plist", | 145 ":$_bundle_data_info_plist", |
| 146 ] | 146 ] |
| 147 | 147 |
| 148 if (use_ios_simulator) { | 148 if (use_ios_simulator) { |
| 149 if (!defined(data_deps)) { | 149 if (!defined(data_deps)) { |
| 150 data_deps = [] | 150 data_deps = [] |
| 151 } | 151 } |
| 152 data_deps += [ "//testing/iossim" ] | 152 data_deps += [ "//testing/iossim" ] |
| 153 } | 153 } |
| 154 | 154 |
| 155 product_type = "com.apple.product-type.application" | |
| 155 bundle_root_dir = "$root_out_dir/$_output_name.app" | 156 bundle_root_dir = "$root_out_dir/$_output_name.app" |
| 156 bundle_resources_dir = bundle_root_dir | 157 bundle_resources_dir = bundle_root_dir |
| 157 bundle_executable_dir = bundle_root_dir | 158 bundle_executable_dir = bundle_root_dir |
| 158 bundle_plugins_dir = "$bundle_root_dir/Plugins" | 159 bundle_plugins_dir = "$bundle_root_dir/Plugins" |
| 160 assert(product_type != "", "force use of product_type") | |
|
brettw
2016/04/28 21:16:17
I don't understand this line. You just set it 4 li
sdefresne
2016/04/30 11:25:02
Oh, this is because the current patchset introduce
| |
| 159 } | 161 } |
| 160 | 162 |
| 161 # TODO(crbug.com/297668): | 163 # TODO(crbug.com/297668): |
| 162 # - add support for codesigning, | 164 # - add support for codesigning, |
| 163 # - find a way to make "ninja -C out/Default base_unittests.app" work as | 165 # - find a way to make "ninja -C out/Default base_unittests.app" work as |
| 164 # an alias to "ninja -C out/Default base_unittests" (for convenience | 166 # an alias to "ninja -C out/Default base_unittests" (for convenience |
| 165 # and compatibility with gyp), | 167 # and compatibility with gyp), |
| 166 } | 168 } |
| 167 | 169 |
| 168 # Compile a xib or storyboard file and add it to a bundle_data so that it is | 170 # 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... | |
| 404 [ | 406 [ |
| 405 "testonly", | 407 "testonly", |
| 406 "visibility", | 408 "visibility", |
| 407 ]) | 409 ]) |
| 408 public_deps = [ | 410 public_deps = [ |
| 409 ":$_framework_target+link", | 411 ":$_framework_target+link", |
| 410 ] | 412 ] |
| 411 } | 413 } |
| 412 } | 414 } |
| 413 } | 415 } |
| OLD | NEW |