OLD | NEW |
---|---|
(Empty) | |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 import("//build/config/ios/rules.gni") | |
6 import("//build/config/mac/base_rules.gni") | |
7 import("//build/mac/tweak_info_plist.gni") | |
8 import("//ios/build/chrome_build.gni") | |
9 import("//ios/public/provider/chrome/browser/build_config.gni") | |
10 | |
11 tweak_info_plist("info_plist") { | |
12 info_plists = [ | |
13 "//ios/chrome/app/resources/Info.plist", | |
14 "//ios/chrome/app/resources/ChromeAddition+Info.plist", | |
15 ] | |
16 if (ios_chrome_info_plist_additions != []) { | |
17 info_plists += ios_chrome_info_plist_additions | |
18 } | |
19 if (ios_encryption_export_compliance_code != "") { | |
20 info_plists += | |
21 [ "//ios/chrome/app/resources/EncryptionExportCompliance+Info.plist" ] | |
22 } | |
23 args = [ | |
24 "--breakpad=$breakpad_enabled_as_int", | |
25 "--branding=$chromium_short_name", | |
26 ] | |
27 } | |
28 | |
29 ios_app_bundle("chrome_clean_skeleton") { | |
30 output_name = "CSChromium" | |
31 | |
32 entitlements_path = "//ios/chrome/app/resources/Chrome.entitlements" | |
33 info_plist_target = ":info_plist" | |
34 | |
35 deps = [ | |
36 ":main_clean_skeleton", | |
37 "//ios/chrome/app:tests_fake_hook", | |
38 ] | |
39 | |
40 bundle_deps = [ "//ios/chrome/app/resources" ] | |
41 | |
42 extra_substitutions = [ | |
43 "CHROMIUM_BUNDLE_ID=$chromium_bundle_id", | |
44 "CHROMIUM_SHORT_NAME=$chromium_short_name", | |
45 "CHROMIUM_URL_SCHEME_1=$url_unsecure_scheme", | |
46 "CHROMIUM_URL_SCHEME_2=$url_secure_scheme", | |
47 "CHROMIUM_URL_SCHEME_3=$url_x_callback_scheme", | |
48 "CHROMIUM_URL_SCHEME_4=$url_channel_scheme", | |
49 ] | |
50 | |
51 if (ios_encryption_export_compliance_code != "") { | |
52 extra_substitutions += [ "ENCRYPTION_EXPORT_COMPLIANCE_CODE=" + | |
53 ios_encryption_export_compliance_code ] | |
54 } | |
55 } | |
56 | |
57 source_set("main_clean_skeleton") { | |
sdefresne
2017/01/09 09:45:04
nit: you can remove _clean_skeleton suffix of all
marq (ping after 24h)
2017/01/09 17:38:07
Done.
| |
58 sources = [ | |
59 "main.mm", | |
60 ] | |
61 | |
62 deps = [ | |
63 ":app_clean_skeleton", | |
64 "//base", | |
65 "//components/crash/core/common", | |
66 "//ios/chrome/app:app_internal", | |
67 "//ios/chrome/app/startup", | |
68 "//ios/chrome/browser", | |
69 "//ios/chrome/browser:browser_internal", | |
70 "//ios/chrome/browser/crash_report", | |
71 "//ios/chrome/common", | |
72 "//third_party/google_toolbox_for_mac", | |
73 ] | |
74 | |
75 configs += [ "//build/config/compiler:enable_arc" ] | |
76 } | |
77 | |
78 source_set("application_state_clean_skeleton") { | |
79 sources = [ | |
80 "application_phase.h", | |
sdefresne
2017/01/09 09:45:04
Can those file move to ios/chrome/app/application_
marq (ping after 24h)
2017/01/09 17:38:07
They are new-architecture files and should move to
sdefresne
2017/01/09 17:44:59
I meant ios/clean/chrome/app/application_state. Ag
| |
81 "application_state.h", | |
82 "application_state.mm", | |
83 "application_step.h", | |
84 ] | |
85 | |
86 configs += [ "//build/config/compiler:enable_arc" ] | |
87 | |
88 deps = [ | |
89 "//base", | |
90 "//ios/clean/chrome/browser:browser_clean_skeleton", | |
91 ] | |
92 } | |
93 | |
94 source_set("app_clean_skeleton") { | |
95 sources = [ | |
96 "app_delegate.h", | |
97 "app_delegate.mm", | |
98 ] | |
99 | |
100 configs += [ "//build/config/compiler:enable_arc" ] | |
101 | |
102 deps = [ | |
103 ":application_state_clean_skeleton", | |
104 "//ios/clean/chrome/app/steps", | |
105 ] | |
106 } | |
OLD | NEW |