| 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 # TODO(crbug.com/297668): refactor this template to extract common behaviour | 8 # TODO(crbug.com/297668): refactor this template to extract common behaviour |
| 9 # between OS X and iOS bundle generation, then create a generic "app" template | 9 # between OS X and iOS bundle generation, then create a generic "app" template |
| 10 # that forward to "executable" on all platform except iOS/OS X. | 10 # that forward to "executable" on all platform except iOS/OS X. |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 } | 146 } |
| 147 deps += [ | 147 deps += [ |
| 148 ":$_bundle_data_executable", | 148 ":$_bundle_data_executable", |
| 149 ":$_bundle_data_info_plist", | 149 ":$_bundle_data_info_plist", |
| 150 ] | 150 ] |
| 151 | 151 |
| 152 if (use_ios_simulator) { | 152 if (use_ios_simulator) { |
| 153 if (!defined(data_deps)) { | 153 if (!defined(data_deps)) { |
| 154 data_deps = [] | 154 data_deps = [] |
| 155 } | 155 } |
| 156 data_deps += [ "//testing/iossim(${host_toolchain})" ] | 156 data_deps += [ "//testing/iossim" ] |
| 157 } | 157 } |
| 158 | 158 |
| 159 bundle_root_dir = "$root_out_dir/$_output_name.app" | 159 bundle_root_dir = "$root_out_dir/$_output_name.app" |
| 160 bundle_resources_dir = bundle_root_dir | 160 bundle_resources_dir = bundle_root_dir |
| 161 bundle_executable_dir = bundle_root_dir | 161 bundle_executable_dir = bundle_root_dir |
| 162 bundle_plugins_dir = "$bundle_root_dir/Plugins" | 162 bundle_plugins_dir = "$bundle_root_dir/Plugins" |
| 163 } | 163 } |
| 164 | 164 |
| 165 # TODO(crbug.com/297668): | 165 # TODO(crbug.com/297668): |
| 166 # - add support for codesigning, | 166 # - add support for codesigning, |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 | 343 |
| 344 if (defined(_public_headers)) { | 344 if (defined(_public_headers)) { |
| 345 configs += [ ":$_headers_map_config" ] | 345 configs += [ ":$_headers_map_config" ] |
| 346 if (!defined(deps)) { | 346 if (!defined(deps)) { |
| 347 deps = [] | 347 deps = [] |
| 348 } | 348 } |
| 349 deps += [ ":$_framework_headers_target" ] | 349 deps += [ ":$_framework_headers_target" ] |
| 350 } | 350 } |
| 351 } | 351 } |
| 352 } | 352 } |
| OLD | NEW |