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