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 | 6 |
7 # TODO(crbug.com/297668): refactor this template to extract common behaviour | 7 # TODO(crbug.com/297668): refactor this template to extract common behaviour |
8 # between OS X and iOS bundle generation, then create a generic "app" template | 8 # between OS X and iOS bundle generation, then create a generic "app" template |
9 # that forward to "executable" on all platform except iOS/OS X. | 9 # that forward to "executable" on all platform except iOS/OS X. |
10 | 10 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 } | 93 } |
94 | 94 |
95 _generate_executable = target_name + "_generate_executable" | 95 _generate_executable = target_name + "_generate_executable" |
96 _bundle_data_executable = target_name + "_bundle_data_executable" | 96 _bundle_data_executable = target_name + "_bundle_data_executable" |
97 | 97 |
98 executable(_generate_executable) { | 98 executable(_generate_executable) { |
99 visibility = [ ":$_bundle_data_executable" ] | 99 visibility = [ ":$_bundle_data_executable" ] |
100 forward_variables_from(invoker, | 100 forward_variables_from(invoker, |
101 "*", | 101 "*", |
102 [ | 102 [ |
103 "output_name", | 103 "assert_no_deps", |
104 "code_signing_identity", | 104 "code_signing_identity", |
105 "data_deps", | 105 "data_deps", |
106 "entitlements_path", | 106 "entitlements_path", |
107 "info_plist", | 107 "info_plist", |
| 108 "output_name", |
108 "visibility", | 109 "visibility", |
109 ]) | 110 ]) |
110 | 111 |
111 output_name = rebase_path("$target_gen_dir/$_output_name", root_build_dir) | 112 output_name = rebase_path("$target_gen_dir/$_output_name", root_build_dir) |
112 if (!defined(libs)) { | 113 if (!defined(libs)) { |
113 libs = [] | 114 libs = [] |
114 } | 115 } |
115 libs += [ "UIKit.framework" ] | 116 libs += [ "UIKit.framework" ] |
116 } | 117 } |
117 | 118 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 bundle_executable_dir = bundle_root_dir | 160 bundle_executable_dir = bundle_root_dir |
160 bundle_plugins_dir = "$bundle_root_dir/Plugins" | 161 bundle_plugins_dir = "$bundle_root_dir/Plugins" |
161 } | 162 } |
162 | 163 |
163 # TODO(crbug.com/297668): | 164 # TODO(crbug.com/297668): |
164 # - add support for codesigning, | 165 # - add support for codesigning, |
165 # - find a way to make "ninja -C out/Default base_unittests.app" work as | 166 # - find a way to make "ninja -C out/Default base_unittests.app" work as |
166 # an alias to "ninja -C out/Default base_unittests" (for convenience | 167 # an alias to "ninja -C out/Default base_unittests" (for convenience |
167 # and compatibility with gyp), | 168 # and compatibility with gyp), |
168 } | 169 } |
OLD | NEW |