Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / ios / chrome / ios_chrome.gyp
blob70adf6931b455725ff686d007e8d45b526fed67d
1 # Copyright 2014 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.
6   'variables': {
7     'chromium_code': 1,
8    },
9   'targets': [
10     {
11       'target_name': 'ios_chrome_app',
12       'type': 'static_library',
13       'include_dirs': [
14         '../..',
15       ],
16       'dependencies': [
17         'ios_chrome_browser',
18       ],
19       'link_settings': {
20         'libraries': [
21           '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
22         ],
23       },
24       'sources': [
25         'app/safe_mode_crashing_modules_config.h',
26         'app/safe_mode_crashing_modules_config.mm',
27         'app/safe_mode_util.h',
28         'app/safe_mode_util.cc',
29       ],
30     },
31     {
32       'target_name': 'ios_chrome_browser',
33       'type': 'static_library',
34       'include_dirs': [
35         '../..',
36       ],
37       'dependencies': [
38         '../../base/base.gyp:base',
39         '../../base/base.gyp:base_prefs',
40         '../../components/components.gyp:autofill_core_browser',
41         '../../components/components.gyp:autofill_ios_browser',
42         '../../components/components.gyp:data_reduction_proxy_core_common',
43         '../../components/components.gyp:dom_distiller_core',
44         '../../components/components.gyp:dom_distiller_ios',
45         '../../components/components.gyp:infobars_core',
46         '../../components/components.gyp:keyed_service_core',
47         '../../components/components.gyp:keyed_service_ios',
48         '../../components/components.gyp:leveldb_proto',
49         '../../components/components.gyp:pref_registry',
50         '../../components/components.gyp:suggestions',
51         '../../components/components.gyp:translate_core_browser',
52         '../../components/components.gyp:translate_ios_browser',
53         '../../components/components.gyp:sync_driver',
54         '../../components/components.gyp:web_resource',
55         '../../components/components.gyp:webp_transcode',
56         '../../components/components_strings.gyp:components_strings',
57         '../../net/net.gyp:net',
58         '../../skia/skia.gyp:skia',
59         '../../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gyp:google_toolbox_for_mac',
60         '../../ui/base/ui_base.gyp:ui_base',
61         '../../ui/gfx/gfx.gyp:gfx',
62         '../../url/url.gyp:url_lib',
63         '../provider/ios_provider_chrome.gyp:ios_provider_chrome_browser',
64         '../web/ios_web.gyp:ios_web',
65         'injected_js',
66         'ios_chrome_common',
67         'ios_chrome_resources.gyp:ios_chrome_resources',
68       ],
69       'link_settings': {
70         'libraries': [
71           '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
72           '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
73           '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
74           '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
75           '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
76         ],
77       },
78       'sources': [
79         'browser/application_context.cc',
80         'browser/application_context.h',
81         'browser/application_context_impl.cc',
82         'browser/application_context_impl.h',
83         'browser/arch_util.cc',
84         'browser/arch_util.h',
85         'browser/autofill/autofill_agent_utils.h',
86         'browser/autofill/autofill_agent_utils.mm',
87         'browser/autofill/form_input_accessory_view.h',
88         'browser/autofill/form_input_accessory_view.mm',
89         'browser/autofill/form_input_accessory_view_controller.h',
90         'browser/autofill/form_input_accessory_view_controller.mm',
91         'browser/autofill/form_input_accessory_view_delegate.h',
92         'browser/autofill/form_suggestion_controller.h',
93         'browser/autofill/form_suggestion_controller.mm',
94         'browser/autofill/form_suggestion_label.h',
95         'browser/autofill/form_suggestion_label.mm',
96         'browser/autofill/form_suggestion_provider.h',
97         'browser/autofill/form_suggestion_view.h',
98         'browser/autofill/form_suggestion_view.mm',
99         'browser/autofill/form_suggestion_view_client.h',
100         'browser/browser_state/browser_state_otr_helper.cc',
101         'browser/browser_state/browser_state_otr_helper.h',
102         'browser/browsing_data_change_listening.h',
103         'browser/chrome_paths.h',
104         'browser/chrome_paths.mm',
105         'browser/chrome_switches.cc',
106         'browser/chrome_switches.h',
107         'browser/chrome_url_constants.cc',
108         'browser/chrome_url_constants.h',
109         'browser/dom_distiller/distiller_viewer.cc',
110         'browser/dom_distiller/distiller_viewer.h',
111         'browser/dom_distiller/dom_distiller_service_factory.cc',
112         'browser/dom_distiller/dom_distiller_service_factory.h',
113         'browser/experimental_flags.h',
114         'browser/experimental_flags.mm',
115         'browser/find_in_page/find_in_page_controller.h',
116         'browser/find_in_page/find_in_page_controller.mm',
117         'browser/find_in_page/find_in_page_model.h',
118         'browser/find_in_page/find_in_page_model.mm',
119         'browser/find_in_page/js_findinpage_manager.h',
120         'browser/find_in_page/js_findinpage_manager.mm',
121         'browser/first_run/first_run.h',
122         'browser/first_run/first_run.mm',
123         'browser/infobars/confirm_infobar_controller.h',
124         'browser/infobars/confirm_infobar_controller.mm',
125         'browser/infobars/infobar.h',
126         'browser/infobars/infobar.mm',
127         'browser/infobars/infobar_container_ios.h',
128         'browser/infobars/infobar_container_ios.mm',
129         'browser/infobars/infobar_container_view.h',
130         'browser/infobars/infobar_container_view.mm',
131         'browser/infobars/infobar_controller.h',
132         'browser/infobars/infobar_controller.mm',
133         'browser/infobars/infobar_manager_impl.cc',
134         'browser/infobars/infobar_manager_impl.h',
135         'browser/infobars/infobar_utils.h',
136         'browser/infobars/infobar_utils.mm',
137         'browser/memory/memory_debugger.h',
138         'browser/memory/memory_debugger.mm',
139         'browser/memory/memory_debugger_manager.h',
140         'browser/memory/memory_debugger_manager.mm',
141         'browser/memory/memory_metrics.cc',
142         'browser/memory/memory_metrics.h',
143         'browser/net/chrome_cookie_store_ios_client.h',
144         'browser/net/chrome_cookie_store_ios_client.mm',
145         'browser/net/image_fetcher.h',
146         'browser/net/image_fetcher.mm',
147         'browser/net/metrics_network_client.h',
148         'browser/net/metrics_network_client.mm',
149         'browser/net/metrics_network_client_manager.h',
150         'browser/net/metrics_network_client_manager.mm',
151         'browser/net/retryable_url_fetcher.h',
152         'browser/net/retryable_url_fetcher.mm',
153         'browser/passwords/password_generation_utils.h',
154         'browser/passwords/password_generation_utils.mm',
155         'browser/pref_names.cc',
156         'browser/pref_names.h',
157         'browser/prefs/pref_observer_bridge.h',
158         'browser/prefs/pref_observer_bridge.mm',
159         'browser/snapshots/snapshot_cache.h',
160         'browser/snapshots/snapshot_cache.mm',
161         'browser/snapshots/snapshot_manager.h',
162         'browser/snapshots/snapshot_manager.mm',
163         'browser/snapshots/snapshot_overlay.h',
164         'browser/snapshots/snapshot_overlay.mm',
165         'browser/snapshots/snapshots_util.h',
166         'browser/snapshots/snapshots_util.mm',
167         'browser/suggestions/image_fetcher_impl.h',
168         'browser/suggestions/image_fetcher_impl.mm',
169         'browser/suggestions/suggestions_service_factory.h',
170         'browser/suggestions/suggestions_service_factory.mm',
171         'browser/sync/sync_observer_bridge.h',
172         'browser/sync/sync_observer_bridge.mm',
173         'browser/translate/after_translate_infobar_controller.h',
174         'browser/translate/after_translate_infobar_controller.mm',
175         'browser/translate/before_translate_infobar_controller.h',
176         'browser/translate/before_translate_infobar_controller.mm',
177         'browser/translate/chrome_ios_translate_client.h',
178         'browser/translate/chrome_ios_translate_client.mm',
179         'browser/translate/never_translate_infobar_controller.h',
180         'browser/translate/never_translate_infobar_controller.mm',
181         'browser/translate/translate_accept_languages_factory.cc',
182         'browser/translate/translate_accept_languages_factory.h',
183         'browser/translate/translate_infobar_tags.h',
184         'browser/translate/translate_message_infobar_controller.h',
185         'browser/translate/translate_message_infobar_controller.mm',
186         'browser/translate/translate_service_ios.cc',
187         'browser/translate/translate_service_ios.h',
188         'browser/ui/animation_util.h',
189         'browser/ui/animation_util.mm',
190         'browser/ui/background_generator.h',
191         'browser/ui/background_generator.mm',
192         'browser/ui/commands/UIKit+ChromeExecuteCommand.h',
193         'browser/ui/commands/UIKit+ChromeExecuteCommand.mm',
194         'browser/ui/commands/clear_browsing_data_command.h',
195         'browser/ui/commands/clear_browsing_data_command.mm',
196         'browser/ui/commands/generic_chrome_command.h',
197         'browser/ui/commands/generic_chrome_command.mm',
198         'browser/ui/commands/ios_command_ids.h',
199         'browser/ui/commands/open_url_command.h',
200         'browser/ui/commands/open_url_command.mm',
201         'browser/ui/commands/set_up_for_testing_command.h',
202         'browser/ui/commands/set_up_for_testing_command.mm',
203         'browser/ui/commands/show_accounts_settings_command.h',
204         'browser/ui/commands/show_accounts_settings_command.mm',
205         'browser/ui/commands/show_mail_composer_command.h',
206         'browser/ui/commands/show_mail_composer_command.mm',
207         'browser/ui/file_locations.h',
208         'browser/ui/file_locations.mm',
209         'browser/ui/image_util.h',
210         'browser/ui/image_util.mm',
211         'browser/ui/native_content_controller.h',
212         'browser/ui/native_content_controller.mm',
213         'browser/ui/orientation_limiting_navigation_controller.h',
214         'browser/ui/orientation_limiting_navigation_controller.mm',
215         'browser/ui/reversed_animation.h',
216         'browser/ui/reversed_animation.mm',
217         'browser/ui/show_mail_composer_util.h',
218         'browser/ui/show_mail_composer_util.mm',
219         'browser/ui/show_privacy_settings_util.h',
220         'browser/ui/show_privacy_settings_util.mm',
221         'browser/ui/side_swipe_gesture_recognizer.h',
222         'browser/ui/side_swipe_gesture_recognizer.mm',
223         'browser/ui/ui_util.h',
224         'browser/ui/ui_util.mm',
225         'browser/ui/uikit_ui_util.h',
226         'browser/ui/uikit_ui_util.mm',
227         'browser/ui/url_loader.h',
228         'browser/updatable_config/updatable_array.h',
229         'browser/updatable_config/updatable_array.mm',
230         'browser/updatable_config/updatable_config_base.h',
231         'browser/updatable_config/updatable_config_base.mm',
232         'browser/updatable_config/updatable_dictionary.h',
233         'browser/updatable_config/updatable_dictionary.mm',
234         'browser/web/dom_altering_lock.h',
235         'browser/web/dom_altering_lock.mm',
236         'browser/web_resource/ios_web_resource_service.cc',
237         'browser/web_resource/ios_web_resource_service.h',
238       ],
239     },
240     {
241       'target_name': 'ios_chrome_common',
242       'type': 'static_library',
243       'include_dirs': [
244         '../..',
245       ],
246       'dependencies': [
247         '../../base/base.gyp:base',
248       ],
249       'link_settings': {
250         'libraries': [
251           '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
252           '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
253         ],
254       },
255       'sources': [
256         'common/string_util.h',
257         'common/string_util.mm',
258       ]
259     },
260     {
261       'target_name': 'injected_js',
262       'type': 'none',
263       'sources': [
264         'browser/find_in_page/resources/find_in_page.js',
265       ],
266       'includes': [
267         '../../ios/web/js_compile.gypi',
268       ],
269       'link_settings': {
270         'mac_bundle_resources': [
271           '<(SHARED_INTERMEDIATE_DIR)/find_in_page.js',
272         ],
273       },
274     },
275   ],