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