Update {virtual,override,final} to follow C++11 style.
[chromium-blink-merge.git] / android_webview / android_webview.gyp
blobaad1cc7c325ddf1ee4da48797e5b356cead649fa
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_version',
56       'type': 'none',
57       'direct_dependent_settings': {
58         'include_dirs': [
59           '<(SHARED_INTERMEDIATE_DIR)',
60         ],
61       },
62       # Because generate_version generates a header, we must set the
63       # hard_dependency flag.
64       'hard_dependency': 1,
65       'actions': [
66         {
67           'action_name': 'generate_version',
68           'includes': [
69             '../build/util/version.gypi',
70           ],
71           'variables': {
72             'template_input_path': 'common/aw_version_info_values.h.version',
73           },
74           'inputs': [
75             '<(version_py_path)',
76             '<(template_input_path)',
77             '<(version_path)',
78             '<(lastchange_path)',
79           ],
80           'outputs': [
81             '<(SHARED_INTERMEDIATE_DIR)/android_webview/common/aw_version_info_values.h',
82           ],
83           'action': [
84             'python',
85             '<(version_py_path)',
86             '-f', '<(version_path)',
87             '-f', '<(lastchange_path)',
88             '<(template_input_path)',
89             '<@(_outputs)',
90           ],
91           'message': 'Generating version information',
92         },
93       ],
94     },
95     {
96       'target_name': 'android_webview_common',
97       'type': 'static_library',
98       'dependencies': [
99         '../android_webview/native/webview_native.gyp:webview_native',
100         '../components/components.gyp:auto_login_parser',
101         '../components/components.gyp:autofill_content_renderer',
102         '../components/components.gyp:cdm_browser',
103         '../components/components.gyp:cdm_renderer',
104         '../components/components.gyp:data_reduction_proxy_core_browser',
105         '../components/components.gyp:navigation_interception',
106         '../components/components.gyp:printing_common',
107         '../components/components.gyp:printing_renderer',
108         '../components/components.gyp:visitedlink_browser',
109         '../components/components.gyp:visitedlink_renderer',
110         '../components/components.gyp:web_contents_delegate_android',
111         '../content/content.gyp:content_app_both',
112         '../content/content.gyp:content_browser',
113         '../gin/gin.gyp:gin',
114         '../gpu/blink/gpu_blink.gyp:gpu_blink',
115         '../gpu/command_buffer/command_buffer.gyp:gles2_utils',
116         '../gpu/gpu.gyp:command_buffer_service',
117         '../gpu/gpu.gyp:gles2_implementation',
118         '../gpu/gpu.gyp:gl_in_process_context',
119         '../media/media.gyp:media',
120         '../printing/printing.gyp:printing',
121         '../skia/skia.gyp:skia',
122         '../third_party/WebKit/public/blink.gyp:blink',
123         '../ui/gl/gl.gyp:gl',
124         '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
125         '../v8/tools/gyp/v8.gyp:v8',
126         '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
127         'android_webview_pak',
128         'android_webview_version',
129       ],
130       'include_dirs': [
131         '..',
132         '../skia/config',
133         '<(SHARED_INTERMEDIATE_DIR)/ui/resources/',
134       ],
135       'sources': [
136         'browser/aw_browser_context.cc',
137         'browser/aw_browser_context.h',
138         'browser/aw_browser_main_parts.cc',
139         'browser/aw_browser_main_parts.h',
140         'browser/aw_browser_permission_request_delegate.h',
141         'browser/aw_contents_client_bridge_base.cc',
142         'browser/aw_contents_client_bridge_base.h',
143         'browser/aw_content_browser_client.cc',
144         'browser/aw_content_browser_client.h',
145         'browser/aw_contents_io_thread_client.h',
146         'browser/aw_cookie_access_policy.cc',
147         'browser/aw_cookie_access_policy.h',
148         'browser/aw_dev_tools_manager_delegate.cc',
149         'browser/aw_dev_tools_manager_delegate.h',
150         'browser/aw_download_manager_delegate.cc',
151         'browser/aw_download_manager_delegate.h',
152         'browser/aw_form_database_service.cc',
153         'browser/aw_form_database_service.h',
154         'browser/aw_gl_surface.cc',
155         'browser/aw_gl_surface.h',
156         'browser/aw_http_auth_handler_base.cc',
157         'browser/aw_http_auth_handler_base.h',
158         'browser/aw_javascript_dialog_manager.cc',
159         'browser/aw_javascript_dialog_manager.h',
160         'browser/aw_login_delegate.cc',
161         'browser/aw_login_delegate.h',
162         'browser/aw_message_port_message_filter.cc',
163         'browser/aw_message_port_message_filter.h',
164         'browser/aw_message_port_service.h',
165         'browser/aw_pref_store.cc',
166         'browser/aw_pref_store.h',
167         'browser/aw_printing_message_filter.cc',
168         'browser/aw_printing_message_filter.h',
169         'browser/aw_quota_manager_bridge.cc',
170         'browser/aw_quota_manager_bridge.h',
171         'browser/aw_quota_permission_context.cc',
172         'browser/aw_quota_permission_context.h',
173         'browser/aw_request_interceptor.cc',
174         'browser/aw_request_interceptor.h',
175         'browser/aw_resource_context.cc',
176         'browser/aw_resource_context.h',
177         'browser/aw_ssl_host_state_delegate.cc',
178         'browser/aw_ssl_host_state_delegate.h',
179         'browser/aw_result_codes.h',
180         'browser/aw_web_preferences_populater.cc',
181         'browser/aw_web_preferences_populater.h',
182         'browser/aw_web_resource_response.cc',
183         'browser/aw_web_resource_response.h',
184         'browser/browser_view_renderer.cc',
185         'browser/browser_view_renderer.h',
186         'browser/browser_view_renderer_client.h',
187         'browser/deferred_gpu_command_service.cc',
188         'browser/deferred_gpu_command_service.h',
189         'browser/find_helper.cc',
190         'browser/find_helper.h',
191         'browser/hardware_renderer.cc',
192         'browser/hardware_renderer.h',
193         'browser/icon_helper.cc',
194         'browser/icon_helper.h',
195         'browser/input_stream.h',
196         'browser/jni_dependency_factory.h',
197         'browser/gl_view_renderer_manager.cc',
198         'browser/gl_view_renderer_manager.h',
199         'browser/net/android_stream_reader_url_request_job.cc',
200         'browser/net/android_stream_reader_url_request_job.h',
201         'browser/net/aw_network_delegate.cc',
202         'browser/net/aw_network_delegate.h',
203         'browser/net/aw_url_request_context_getter.cc',
204         'browser/net/aw_url_request_context_getter.h',
205         'browser/net/aw_url_request_job_factory.cc',
206         'browser/net/aw_url_request_job_factory.h',
207         'browser/net_disk_cache_remover.cc',
208         'browser/net_disk_cache_remover.h',
209         'browser/net/init_native_callback.h',
210         'browser/net/input_stream_reader.cc',
211         'browser/net/input_stream_reader.h',
212         'browser/parent_compositor_draw_constraints.cc',
213         'browser/parent_compositor_draw_constraints.h',
214         'browser/parent_output_surface.cc',
215         'browser/parent_output_surface.h',
216         'browser/renderer_host/aw_render_view_host_ext.cc',
217         'browser/renderer_host/aw_render_view_host_ext.h',
218         'browser/renderer_host/aw_resource_dispatcher_host_delegate.cc',
219         'browser/renderer_host/aw_resource_dispatcher_host_delegate.h',
220         'browser/renderer_host/print_manager.cc',
221         'browser/renderer_host/print_manager.h',
222         'browser/scoped_allow_wait_for_legacy_web_view_api.h',
223         'browser/scoped_app_gl_state_restore.cc',
224         'browser/scoped_app_gl_state_restore.h',
225         'browser/shared_renderer_state.cc',
226         'browser/shared_renderer_state.h',
227         'common/android_webview_message_generator.cc',
228         'common/android_webview_message_generator.h',
229         'common/aw_content_client.cc',
230         'common/aw_content_client.h',
231         'common/aw_crash_handler.cc',
232         'common/aw_crash_handler.h',
233         'common/aw_hit_test_data.cc',
234         'common/aw_hit_test_data.h',
235         'common/aw_message_port_messages.h',
236         'common/aw_resource.h',
237         'common/aw_switches.cc',
238         'common/aw_switches.h',
239         'common/devtools_instrumentation.h',
240         'common/render_view_messages.cc',
241         'common/render_view_messages.h',
242         'common/url_constants.cc',
243         'common/url_constants.h',
244         'lib/aw_browser_dependency_factory_impl.cc',
245         'lib/aw_browser_dependency_factory_impl.h',
246         'lib/main/aw_main_delegate.cc',
247         'lib/main/aw_main_delegate.h',
248         'public/browser/draw_gl.h',
249         'renderer/aw_content_renderer_client.cc',
250         'renderer/aw_content_renderer_client.h',
251         'renderer/aw_key_systems.cc',
252         'renderer/aw_key_systems.h',
253         'renderer/aw_message_port_client.cc',
254         'renderer/aw_message_port_client.h',
255         'renderer/aw_permission_client.cc',
256         'renderer/aw_permission_client.h',
257         'renderer/aw_print_web_view_helper_delegate.cc',
258         'renderer/aw_print_web_view_helper_delegate.h',
259         'renderer/aw_render_process_observer.cc',
260         'renderer/aw_render_process_observer.h',
261         'renderer/aw_render_frame_ext.cc',
262         'renderer/aw_render_frame_ext.h',
263         'renderer/aw_render_view_ext.cc',
264         'renderer/aw_render_view_ext.h',
265         'renderer/print_render_frame_observer.cc',
266         'renderer/print_render_frame_observer.h',
267       ],
268     },
269     {
270       'target_name': 'libwebviewchromium',
271       'includes': [
272           'libwebviewchromium.gypi',
273       ],
274     }
275   ],
276   'conditions': [
277     ['android_webview_build==0', {
278       'includes': [
279         'android_webview_tests.gypi',
280       ],
281       'targets': [
282         {
283           'target_name': 'android_webview_java',
284           'type': 'none',
285           'dependencies': [
286             '../components/components.gyp:navigation_interception_java',
287             '../components/components.gyp:web_contents_delegate_android_java',
288             '../content/content.gyp:content_java',
289             '../ui/android/ui_android.gyp:ui_java',
290             'android_webview_strings_grd',
291           ],
292           'variables': {
293             'java_in_dir': '../android_webview/java',
294             'has_java_resources': 1,
295             'R_package': 'org.chromium.android_webview',
296             'R_package_relpath': 'org/chromium/android_webview',
297           },
298           'includes': [ '../build/java.gypi' ],
299         },
300         {
301           'target_name': 'system_webview_apk',
302           'variables': {
303             'android_sdk_jar': '<(DEPTH)/third_party/android_platform/webview/frameworks_1622219.jar',
304             'apk_name': 'SystemWebView',
305             'android_manifest_path': 'apk/java/AndroidManifest.xml',
306             'java_in_dir': '../android_webview/glue/java',
307             'resource_dir': 'apk/java/res',
308             'shared_resources': 1,
309           },
310           'includes': [ 'apk/system_webview_apk_common.gypi' ],
311         },
312       ],
313      }, {  # android_webview_build==1
314       'targets': [
315         {
316           'target_name': 'android_webview_jarjar_ui_resources',
317           'android_unmangled_name': 1,
318           'type': 'none',
319           'variables': {
320             'res_dir': '../ui/android/java/res',
321             'rules_file': '../android_webview/build/jarjar-rules.txt',
322           },
323           'includes': ['../android_webview/build/jarjar_resources.gypi'],
324         },
325         {
326           'target_name': 'android_webview_jarjar_content_resources',
327           'android_unmangled_name': 1,
328           'type': 'none',
329           'variables': {
330             'res_dir': '../content/public/android/java/res',
331             'rules_file': '../android_webview/build/jarjar-rules.txt',
332           },
333           'includes': ['../android_webview/build/jarjar_resources.gypi'],
334         },
335         {
336           'target_name': 'android_webview_resources',
337           'type': 'none',
338           'android_unmangled_name': 1,
339           'dependencies': [
340             '../content/content.gyp:content_strings_grd',
341             '../ui/android/ui_android.gyp:ui_strings_grd',
342             'android_webview_jarjar_content_resources',
343             'android_webview_jarjar_ui_resources',
344             'android_webview_strings_grd',
345           ],
346         },
347       ],
348     }],
349   ],