Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: ios/chrome/app/BUILD.gn

Issue 2589883002: Revert of Upstream Chrome on iOS source code [11/11]. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/BUILD.gn ('k') | ios/chrome/app/application_delegate/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/rules.gni") 5 import("//build/config/ios/rules.gni")
6 import("//build/config/mac/base_rules.gni")
7 import("//build/mac/tweak_info_plist.gni") 6 import("//build/mac/tweak_info_plist.gni")
8 import("//ios/build/chrome_build.gni") 7 import("//ios/build/chrome_build.gni")
9 import("//ios/public/provider/chrome/browser/build_config.gni") 8 import("//ios/public/provider/chrome/browser/build_config.gni")
10 9
11 source_set("app") { 10 source_set("app") {
12 sources = [ 11 sources = [
13 "deferred_initialization_runner.h", 12 "deferred_initialization_runner.h",
14 "deferred_initialization_runner.mm", 13 "deferred_initialization_runner.mm",
15 "safe_mode_crashing_modules_config.h", 14 "safe_mode_crashing_modules_config.h",
16 "safe_mode_crashing_modules_config.mm", 15 "safe_mode_crashing_modules_config.mm",
17 "safe_mode_util.cc", 16 "safe_mode_util.cc",
18 "safe_mode_util.h", 17 "safe_mode_util.h",
19 ] 18 ]
20 19
21 deps = [ 20 deps = [
22 ":resources", 21 ":resources",
23 "//base", 22 "//base",
24 ios_packed_resources_target, 23 ios_packed_resources_target,
25 ] 24 ]
26 25
27 libs = [ "Foundation.framework" ] 26 libs = [ "Foundation.framework" ]
28 } 27 }
29 28
30 source_set("unit_tests") { 29 source_set("unit_tests") {
31 testonly = true 30 testonly = true
32 sources = [ 31 sources = [
33 "chrome_app_startup_parameters_unittest.mm",
34 "chrome_overlay_window_testing.h",
35 "deferred_initialization_runner_unittest.mm", 32 "deferred_initialization_runner_unittest.mm",
36 "main_application_delegate_unittest.mm",
37 "main_controller_unittest.mm",
38 "safe_mode_util_unittest.cc", 33 "safe_mode_util_unittest.cc",
39 ] 34 ]
40 deps = [ 35 deps = [
41 ":app", 36 ":app",
42 ":app_internal",
43 "//base", 37 "//base",
44 "//base/test:test_support", 38 "//base/test:test_support",
45 "//ios/chrome/app/application_delegate:application_delegate_internal",
46 "//ios/chrome/browser",
47 "//ios/chrome/browser/tabs",
48 "//ios/chrome/common/app_group",
49 "//ios/chrome/test/base",
50 "//ios/public/provider/chrome/browser",
51 "//ios/public/provider/chrome/browser/distribution",
52 "//testing/gtest", 39 "//testing/gtest",
53 "//third_party/ocmock",
54 "//url",
55 ] 40 ]
56 } 41 }
57 42
58 source_set("tests_hook") { 43 source_set("tests_hook") {
59 # This target is intentionally not test-only, as the main app depends on it. 44 # This target is intentionally not test-only, as the main app depends on it.
60 sources = [ 45 sources = [
61 "tests_hook.h", 46 "tests_hook.h",
62 ] 47 ]
63 } 48 }
64 49
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 plist_templates = [ "resources/Chrome.entitlements" ] 89 plist_templates = [ "resources/Chrome.entitlements" ]
105 if (ios_chrome_entitlements_additions != []) { 90 if (ios_chrome_entitlements_additions != []) {
106 plist_templates += ios_chrome_entitlements_additions 91 plist_templates += ios_chrome_entitlements_additions
107 } 92 }
108 if (!ios_automatically_manage_certs) { 93 if (!ios_automatically_manage_certs) {
109 plist_templates += [ "resources/AssociatedDomains.entitlements" ] 94 plist_templates += [ "resources/AssociatedDomains.entitlements" ]
110 } 95 }
111 substitutions = [ "IOS_BUNDLE_ID_PREFIX=$ios_app_bundle_id_prefix" ] 96 substitutions = [ "IOS_BUNDLE_ID_PREFIX=$ios_app_bundle_id_prefix" ]
112 output_name = "$target_gen_dir/$chromium_short_name.entitlements" 97 output_name = "$target_gen_dir/$chromium_short_name.entitlements"
113 } 98 }
114
115 source_set("app_internal") {
116 sources = [
117 "application_mode.h",
118 "chrome_app_startup_parameters.h",
119 "chrome_app_startup_parameters.mm",
120 "chrome_overlay_window.h",
121 "chrome_overlay_window.mm",
122 "main_application_delegate.h",
123 "main_application_delegate.mm",
124 "main_application_delegate_testing.h",
125 "main_controller.h",
126 "main_controller.mm",
127 "main_controller_private.h",
128 "memory_monitor.h",
129 "memory_monitor.mm",
130 "startup_tasks.h",
131 "startup_tasks.mm",
132 ]
133
134 deps = [
135 "//base",
136 "//components/bookmarks/browser",
137 "//components/browser_sync",
138 "//components/browsing_data/core",
139 "//components/component_updater",
140 "//components/content_settings/core/browser",
141 "//components/crash/core/common",
142 "//components/favicon/core",
143 "//components/favicon_base",
144 "//components/handoff",
145 "//components/history/core/browser",
146 "//components/infobars/core",
147 "//components/keyed_service/core",
148 "//components/keyed_service/ios",
149 "//components/metrics",
150 "//components/prefs",
151 "//components/proxy_config",
152 "//components/reading_list/core",
153 "//components/signin/core/browser",
154 "//components/suggestions",
155 "//components/sync",
156 "//components/url_formatter",
157 "//components/web_resource",
158 "//ios/chrome/app",
159 "//ios/chrome/app:tests_hook",
160 "//ios/chrome/app/application_delegate",
161 "//ios/chrome/app/application_delegate:application_delegate_internal",
162 "//ios/chrome/app/safe_mode",
163 "//ios/chrome/app/spotlight",
164 "//ios/chrome/app/startup",
165 "//ios/chrome/app/strings",
166 "//ios/chrome/browser",
167 "//ios/chrome/browser:browser_internal",
168 "//ios/chrome/browser/bookmarks",
169 "//ios/chrome/browser/browser_state",
170 "//ios/chrome/browser/browser_state:browser_state_impl",
171 "//ios/chrome/browser/browsing_data",
172 "//ios/chrome/browser/browsing_data:browsing_data_internal",
173 "//ios/chrome/browser/content_settings",
174 "//ios/chrome/browser/crash_report",
175 "//ios/chrome/browser/crash_report:crash_report_internal",
176 "//ios/chrome/browser/favicon",
177 "//ios/chrome/browser/first_run",
178 "//ios/chrome/browser/geolocation",
179 "//ios/chrome/browser/geolocation:geolocation_internal",
180 "//ios/chrome/browser/history",
181 "//ios/chrome/browser/memory",
182 "//ios/chrome/browser/metrics",
183 "//ios/chrome/browser/metrics:metrics_internal",
184 "//ios/chrome/browser/native_app_launcher:native_app_launcher_internal",
185 "//ios/chrome/browser/net",
186 "//ios/chrome/browser/omaha",
187 "//ios/chrome/browser/prefs",
188 "//ios/chrome/browser/reading_list",
189 "//ios/chrome/browser/search_engines",
190 "//ios/chrome/browser/share_extension",
191 "//ios/chrome/browser/signin",
192 "//ios/chrome/browser/snapshots",
193 "//ios/chrome/browser/suggestions",
194 "//ios/chrome/browser/sync",
195 "//ios/chrome/browser/tabs",
196 "//ios/chrome/browser/ui",
197 "//ios/chrome/browser/ui:ui_internal",
198 "//ios/chrome/browser/ui/authentication",
199 "//ios/chrome/browser/ui/commands",
200 "//ios/chrome/browser/ui/contextual_search",
201 "//ios/chrome/browser/ui/downloads",
202 "//ios/chrome/browser/ui/first_run",
203 "//ios/chrome/browser/ui/history",
204 "//ios/chrome/browser/ui/main",
205 "//ios/chrome/browser/ui/promos",
206 "//ios/chrome/browser/ui/settings",
207 "//ios/chrome/browser/ui/stack_view",
208 "//ios/chrome/browser/ui/tab_switcher",
209 "//ios/chrome/browser/ui/tabs",
210 "//ios/chrome/browser/ui/util",
211 "//ios/chrome/browser/ui/webui:webui_internal",
212 "//ios/chrome/browser/upgrade",
213 "//ios/chrome/browser/variations:ios_chrome_ui_string_overrider_factory",
214 "//ios/chrome/browser/voice",
215 "//ios/chrome/browser/web:web_internal",
216 "//ios/chrome/common",
217 "//ios/chrome/common/app_group",
218 "//ios/chrome/common/app_group:main_app",
219 "//ios/net",
220 "//ios/public/provider/chrome/browser",
221 "//ios/public/provider/chrome/browser/distribution",
222 "//ios/public/provider/chrome/browser/native_app_launcher",
223 "//ios/public/provider/chrome/browser/signin",
224 "//ios/public/provider/chrome/browser/user_feedback",
225 "//ios/third_party/material_roboto_font_loader_ios",
226 "//ios/web",
227 "//ios/web/public/app",
228 "//mojo/edk/system",
229 "//net",
230 "//skia",
231 "//ui/base",
232 "//ui/gfx",
233 "//ui/resources",
234 "//ui/strings:ui_strings",
235 ]
236
237 libs = [
238 "CoreSpotlight.framework",
239 "MediaPlayer.framework",
240 ]
241
242 allow_circular_includes_from =
243 [ "//ios/chrome/app/application_delegate:application_delegate_internal" ]
244 }
245
246 source_set("main") {
247 sources = [
248 "chrome_exe_main.mm",
249 ]
250
251 deps = [
252 ":app_internal",
253 "//base",
254 "//components/crash/core/common",
255 "//ios/chrome/app/startup",
256 "//ios/chrome/browser:browser_internal",
257 "//ios/chrome/browser/crash_report",
258 "//ios/chrome/common",
259 "//third_party/google_toolbox_for_mac",
260 ]
261 }
262
263 ios_app_bundle("chrome") {
264 output_name = chromium_short_name
265
266 entitlements_target = ":entitlements"
267 info_plist_target = ":info_plist"
268
269 deps = [
270 ":main",
271 "//ios/chrome/app:tests_fake_hook",
272 ]
273
274 bundle_deps = [ "//ios/chrome/app/resources" ]
275
276 if (ios_enable_today_extension && current_toolchain == default_toolchain) {
277 deps += [ ":today_extension_bundle" ]
278 }
279
280 if (ios_enable_share_extension && current_toolchain == default_toolchain) {
281 deps += [ ":share_extension_bundle" ]
282 }
283
284 extra_substitutions = [
285 "CHROMIUM_BUNDLE_ID=$chromium_bundle_id",
286 "CHROMIUM_HANDOFF_ID=$chromium_handoff_id",
287 "CHROMIUM_SHORT_NAME=$chromium_short_name",
288 "CHROMIUM_URL_SCHEME_1=$url_unsecure_scheme",
289 "CHROMIUM_URL_SCHEME_2=$url_secure_scheme",
290 "CHROMIUM_URL_SCHEME_3=$url_x_callback_scheme",
291 "CHROMIUM_URL_SCHEME_4=$url_channel_scheme",
292 "SSOAUTH_URL_SCHEME=$url_ssoauth_scheme",
293 ]
294
295 if (ios_encryption_export_compliance_code != "") {
296 extra_substitutions += [ "ENCRYPTION_EXPORT_COMPLIANCE_CODE=" +
297 ios_encryption_export_compliance_code ]
298 }
299 }
300
301 if (ios_enable_today_extension && current_toolchain == default_toolchain) {
302 bundle_data("today_extension_bundle") {
303 public_deps = [
304 "//ios/chrome/today_extension",
305 ]
306 sources = [
307 "$root_out_dir/today_extension.appex",
308 ]
309 outputs = [
310 "{{bundle_plugins_dir}}/{{source_file_part}}",
311 ]
312 }
313 }
314
315 if (ios_enable_share_extension && current_toolchain == default_toolchain) {
316 bundle_data("share_extension_bundle") {
317 public_deps = [
318 "//ios/chrome/share_extension",
319 ]
320 sources = [
321 "$root_out_dir/share_extension.appex",
322 ]
323 outputs = [
324 "{{bundle_plugins_dir}}/{{source_file_part}}",
325 ]
326 }
327 }
328
329 # Clean Skeleton targets.
330 ios_app_bundle("chrome_clean_skeleton") {
331 output_name = "CSChromium"
332
333 entitlements_path = "//ios/chrome/app/resources/Chrome.entitlements"
334 info_plist_target = ":info_plist"
335
336 deps = [
337 ":main_clean_skeleton",
338 "//ios/chrome/app:tests_fake_hook",
339 ]
340
341 bundle_deps = [ "//ios/chrome/app/resources" ]
342
343 extra_substitutions = [
344 "CHROMIUM_BUNDLE_ID=$chromium_bundle_id",
345 "CHROMIUM_SHORT_NAME=$chromium_short_name",
346 "CHROMIUM_URL_SCHEME_1=$url_unsecure_scheme",
347 "CHROMIUM_URL_SCHEME_2=$url_secure_scheme",
348 "CHROMIUM_URL_SCHEME_3=$url_x_callback_scheme",
349 "CHROMIUM_URL_SCHEME_4=$url_channel_scheme",
350 ]
351
352 if (ios_encryption_export_compliance_code != "") {
353 extra_substitutions += [ "ENCRYPTION_EXPORT_COMPLIANCE_CODE=" +
354 ios_encryption_export_compliance_code ]
355 }
356 }
357
358 source_set("main_clean_skeleton") {
359 sources = [
360 "main.mm",
361 ]
362
363 deps = [
364 ":app_clean_skeleton",
365 "//base",
366 "//components/crash/core/common",
367 "//ios/chrome/app:app_internal",
368 "//ios/chrome/app/startup",
369 "//ios/chrome/browser",
370 "//ios/chrome/browser:browser_internal",
371 "//ios/chrome/browser/crash_report",
372 "//ios/chrome/common",
373 "//third_party/google_toolbox_for_mac",
374 ]
375
376 configs += [ "//build/config/compiler:enable_arc" ]
377 }
378
379 source_set("application_state_clean_skeleton") {
380 sources = [
381 "application_phase.h",
382 "application_state.h",
383 "application_state.mm",
384 "application_step.h",
385 ]
386
387 configs += [ "//build/config/compiler:enable_arc" ]
388
389 deps = [
390 "//base",
391 "//ios/chrome/browser:browser_clean_skeleton",
392 ]
393 }
394
395 source_set("app_clean_skeleton") {
396 sources = [
397 "app_delegate.h",
398 "app_delegate.mm",
399 ]
400
401 configs += [ "//build/config/compiler:enable_arc" ]
402
403 deps = [
404 ":application_state_clean_skeleton",
405 "//ios/chrome/app/steps",
406 ]
407 }
OLDNEW
« no previous file with comments | « ios/BUILD.gn ('k') | ios/chrome/app/application_delegate/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698