Add conversions for EmbedObject, Figcaption and Figure
[chromium-blink-merge.git] / android_webview / android_webview.gyp
blobec1436dd85cdf612881f0c369c683eb2e6925b9c
1 # Copyright 2009 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.
5   'variables': {
6     'chromium_code': 1,
7   },
8   'targets': [
9     {
10       'target_name': 'android_webview_pak',
11       'type': 'none',
12       'dependencies': [
13         '<(DEPTH)/content/app/resources/content_resources.gyp:content_resources',
14         '<(DEPTH)/net/net.gyp:net_resources',
15         '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resources',
16         '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
17       ],
18       'actions': [
19         {
20           'action_name': 'repack_android_webview_pack',
21           'variables': {
22             'pak_inputs': [
23               '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.pak',
24               '<(SHARED_INTERMEDIATE_DIR)/content/app/resources/content_resources_100_percent.pak',
25               '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
26               '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
27               '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
28             ],
29             'pak_output': '<(PRODUCT_DIR)/android_webview_assets/webviewchromium.pak',
30           },
31          'includes': [ '../build/repack_action.gypi' ],
32         },
33         {
34           'action_name': 'add_en_US_pak_locale',
35           'variables': {
36             'pak_inputs': ['<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.pak'],
37             'pak_output': '<(PRODUCT_DIR)/android_webview_assets/en-US.pak',
38           },
39          'includes': [ '../build/repack_action.gypi' ],
40         }
41       ],
42     },
43     {
44       'target_name': 'android_webview_strings_grd',
45       'android_unmangled_name': 1,
46       'type': 'none',
47       'variables': {
48         'grd_file': '../android_webview/java/strings/android_webview_strings.grd',
49       },
50       'includes': [
51           '../build/java_strings_grd.gypi',
52       ],
53     },
54     {
55       'target_name': 'android_webview_common',
56       'type': 'static_library',
57       'dependencies': [
58         '../android_webview/native/webview_native.gyp:webview_native',
59         '../components/components.gyp:auto_login_parser',
60         '../components/components.gyp:autofill_content_renderer',
61         '../components/components.gyp:cdm_browser',
62         '../components/components.gyp:cdm_renderer',
63         '../components/components.gyp:data_reduction_proxy_browser',
64         '../components/components.gyp:navigation_interception',
65         '../components/components.gyp:visitedlink_browser',
66         '../components/components.gyp:visitedlink_renderer',
67         '../components/components.gyp:web_contents_delegate_android',
68         '../content/content.gyp:content_app_both',
69         '../content/content.gyp:content_browser',
70         '../gpu/command_buffer/command_buffer.gyp:gles2_utils',
71         '../gpu/gpu.gyp:command_buffer_service',
72         '../gpu/gpu.gyp:gles2_implementation',
73         '../gpu/gpu.gyp:gl_in_process_context',
74         '../media/media.gyp:media',
75         '../printing/printing.gyp:printing',
76         '../skia/skia.gyp:skia',
77         '../third_party/WebKit/public/blink.gyp:blink',
78         '../ui/gl/gl.gyp:gl',
79         '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
80         '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
81         'android_webview_pak',
82       ],
83       'include_dirs': [
84         '..',
85         '../skia/config',
86         '<(SHARED_INTERMEDIATE_DIR)/ui/resources/',
87       ],
88       'sources': [
89         'browser/aw_browser_context.cc',
90         'browser/aw_browser_context.h',
91         'browser/aw_browser_main_parts.cc',
92         'browser/aw_browser_main_parts.h',
93         'browser/aw_browser_permission_request_delegate.h',
94         'browser/aw_contents_client_bridge_base.cc',
95         'browser/aw_contents_client_bridge_base.h',
96         'browser/aw_content_browser_client.cc',
97         'browser/aw_content_browser_client.h',
98         'browser/aw_contents_io_thread_client.h',
99         'browser/aw_cookie_access_policy.cc',
100         'browser/aw_cookie_access_policy.h',
101         'browser/aw_dev_tools_manager_delegate.cc',
102         'browser/aw_dev_tools_manager_delegate.h',
103         'browser/aw_download_manager_delegate.cc',
104         'browser/aw_download_manager_delegate.h',
105         'browser/aw_form_database_service.cc',
106         'browser/aw_form_database_service.h',
107         'browser/aw_gl_surface.cc',
108         'browser/aw_gl_surface.h',
109         'browser/aw_http_auth_handler_base.cc',
110         'browser/aw_http_auth_handler_base.h',
111         'browser/aw_javascript_dialog_manager.cc',
112         'browser/aw_javascript_dialog_manager.h',
113         'browser/aw_login_delegate.cc',
114         'browser/aw_login_delegate.h',
115         'browser/aw_pref_store.cc',
116         'browser/aw_pref_store.h',
117         'browser/aw_quota_manager_bridge.cc',
118         'browser/aw_quota_manager_bridge.h',
119         'browser/aw_quota_permission_context.cc',
120         'browser/aw_quota_permission_context.h',
121         'browser/aw_request_interceptor.cc',
122         'browser/aw_request_interceptor.h',
123         'browser/aw_resource_context.cc',
124         'browser/aw_resource_context.h',
125         'browser/aw_result_codes.h',
126         'browser/aw_web_preferences_populater.cc',
127         'browser/aw_web_preferences_populater.h',
128         'browser/aw_web_resource_response.cc',
129         'browser/aw_web_resource_response.h',
130         'browser/browser_view_renderer.cc',
131         'browser/browser_view_renderer.h',
132         'browser/browser_view_renderer_client.h',
133         'browser/deferred_gpu_command_service.cc',
134         'browser/deferred_gpu_command_service.h',
135         'browser/find_helper.cc',
136         'browser/find_helper.h',
137         'browser/global_tile_manager.cc',
138         'browser/global_tile_manager.h',
139         'browser/global_tile_manager_client.h',
140         'browser/gpu_memory_buffer_factory_impl.cc',
141         'browser/gpu_memory_buffer_factory_impl.h',
142         'browser/hardware_renderer.cc',
143         'browser/hardware_renderer.h',
144         'browser/icon_helper.cc',
145         'browser/icon_helper.h',
146         'browser/input_stream.h',
147         'browser/jni_dependency_factory.h',
148         'browser/gl_view_renderer_manager.cc',
149         'browser/gl_view_renderer_manager.h',
150         'browser/net/android_stream_reader_url_request_job.cc',
151         'browser/net/android_stream_reader_url_request_job.h',
152         'browser/net/aw_network_delegate.cc',
153         'browser/net/aw_network_delegate.h',
154         'browser/net/aw_url_request_context_getter.cc',
155         'browser/net/aw_url_request_context_getter.h',
156         'browser/net/aw_url_request_job_factory.cc',
157         'browser/net/aw_url_request_job_factory.h',
158         'browser/net_disk_cache_remover.cc',
159         'browser/net_disk_cache_remover.h',
160         'browser/net/init_native_callback.h',
161         'browser/net/input_stream_reader.cc',
162         'browser/net/input_stream_reader.h',
163         'browser/parent_compositor_draw_constraints.cc',
164         'browser/parent_compositor_draw_constraints.h',
165         'browser/parent_output_surface.cc',
166         'browser/parent_output_surface.h',
167         'browser/renderer_host/aw_render_view_host_ext.cc',
168         'browser/renderer_host/aw_render_view_host_ext.h',
169         'browser/renderer_host/aw_resource_dispatcher_host_delegate.cc',
170         'browser/renderer_host/aw_resource_dispatcher_host_delegate.h',
171         'browser/renderer_host/print_manager.cc',
172         'browser/renderer_host/print_manager.h',
173         'browser/scoped_allow_wait_for_legacy_web_view_api.h',
174         'browser/scoped_app_gl_state_restore.cc',
175         'browser/scoped_app_gl_state_restore.h',
176         'browser/shared_renderer_state.cc',
177         'browser/shared_renderer_state.h',
178         'common/android_webview_message_generator.cc',
179         'common/android_webview_message_generator.h',
180         'common/aw_content_client.cc',
181         'common/aw_content_client.h',
182         'common/aw_hit_test_data.cc',
183         'common/aw_hit_test_data.h',
184         'common/aw_resource.h',
185         'common/aw_switches.cc',
186         'common/aw_switches.h',
187         'common/devtools_instrumentation.h',
188         'common/print_messages.cc',
189         'common/print_messages.h',
190         'common/render_view_messages.cc',
191         'common/render_view_messages.h',
192         'common/url_constants.cc',
193         'common/url_constants.h',
194         'lib/aw_browser_dependency_factory_impl.cc',
195         'lib/aw_browser_dependency_factory_impl.h',
196         'lib/main/aw_main_delegate.cc',
197         'lib/main/aw_main_delegate.h',
198         'public/browser/draw_gl.h',
199         'renderer/aw_content_renderer_client.cc',
200         'renderer/aw_content_renderer_client.h',
201         'renderer/aw_key_systems.cc',
202         'renderer/aw_key_systems.h',
203         'renderer/aw_permission_client.cc',
204         'renderer/aw_permission_client.h',
205         'renderer/aw_render_process_observer.cc',
206         'renderer/aw_render_process_observer.h',
207         'renderer/aw_render_frame_ext.cc',
208         'renderer/aw_render_frame_ext.h',
209         'renderer/aw_render_view_ext.cc',
210         'renderer/aw_render_view_ext.h',
211         'renderer/print_web_view_helper.cc',
212         'renderer/print_web_view_helper.h',
213         'renderer/print_web_view_helper_android.cc',
214         'renderer/print_web_view_helper_linux.cc',
215         'renderer/print_render_frame_observer.cc',
216         'renderer/print_render_frame_observer.h',
217       ],
218     },
219     {
220       'target_name': 'libwebviewchromium',
221       'includes': [
222           'libwebviewchromium.gypi',
223       ],
224     }
225   ],
226   'conditions': [
227     ['android_webview_build==0', {
228       'includes': [
229         'android_webview_tests.gypi',
230         '../third_party/android_webview_glue/android_webview_glue.gypi',
231       ],
232       'targets': [
233         {
234           'target_name': 'android_webview_java',
235           'type': 'none',
236           'dependencies': [
237             '../components/components.gyp:navigation_interception_java',
238             '../components/components.gyp:web_contents_delegate_android_java',
239             '../content/content.gyp:content_java',
240             '../ui/android/ui_android.gyp:ui_java',
241             'android_webview_strings_grd',
242           ],
243           'variables': {
244             'java_in_dir': '../android_webview/java',
245           },
246           'includes': [ '../build/java.gypi' ],
247         },
248       ],
249      }, {  # android_webview_build==1
250       'targets': [
251         {
252           'target_name': 'android_webview_jarjar_ui_resources',
253           'android_unmangled_name': 1,
254           'type': 'none',
255           'variables': {
256             'res_dir': '../ui/android/java/res',
257             'rules_file': '../android_webview/build/jarjar-rules.txt',
258           },
259           'includes': ['../android_webview/build/jarjar_resources.gypi'],
260         },
261         {
262           'target_name': 'android_webview_jarjar_content_resources',
263           'android_unmangled_name': 1,
264           'type': 'none',
265           'variables': {
266             'res_dir': '../content/public/android/java/res',
267             'rules_file': '../android_webview/build/jarjar-rules.txt',
268           },
269           'includes': ['../android_webview/build/jarjar_resources.gypi'],
270         },
271         {
272           'target_name': 'android_webview_resources',
273           'type': 'none',
274           'android_unmangled_name': 1,
275           'dependencies': [
276             '../content/content.gyp:content_strings_grd',
277             '../ui/android/ui_android.gyp:ui_strings_grd',
278             'android_webview_jarjar_content_resources',
279             'android_webview_jarjar_ui_resources',
280             'android_webview_strings_grd',
281           ],
282         },
283       ],
284     }],
285   ],