Move UMA Media.VideoTrackAdapter.FramesReceived to VideoCaptureController.
[chromium-blink-merge.git] / android_webview / android_webview.gyp
blob919733bd2fa2c5d8292e91f52d44faac93f33d6d
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': 'libwebviewchromium',
11       'type': 'shared_library',
12       'android_unmangled_name': 1,
13       'dependencies': [
14         'android_webview_common',
15       ],
16       'conditions': [
17         # Avoid clashes between the versions of this library built with
18         # android_webview_build==1 by using a different name prefix.
19         [ 'android_webview_build==0', {
20           'product_prefix': 'libstandalone',
21         }],
22         [ 'android_webview_build==1', {
23           # When building inside the android tree we also need to depend on all
24           # the java sources generated from templates which will be needed by
25           # android_webview_java in android_webview/java_library_common.mk.
26           'dependencies': [
27             '../base/base.gyp:base_java_application_state',
28             '../base/base.gyp:base_java_memory_pressure_level_list',
29             '../content/content.gyp:content_gamepad_mapping',
30             '../content/content.gyp:gesture_event_type_java',
31             '../content/content.gyp:page_transition_types_java',
32             '../content/content.gyp:popup_item_type_java',
33             '../content/content.gyp:result_codes_java',
34             '../content/content.gyp:screen_orientation_values_java',
35             '../content/content.gyp:selection_event_type_java',
36             '../content/content.gyp:speech_recognition_error_java',
37             '../media/media.gyp:media_android_imageformat_list',
38             '../net/net.gyp:cert_verify_status_android_java',
39             '../net/net.gyp:certificate_mime_types_java',
40             '../net/net.gyp:net_errors_java',
41             '../net/net.gyp:private_key_types_java',
42             '../ui/android/ui_android.gyp:bitmap_format_java',
43             '../ui/android/ui_android.gyp:window_open_disposition_java',
44           ],
45         }],
46         [ 'android_webview_build==1 and use_system_skia==0', {
47           # When not using the system skia there are linker warnings about
48           # overriden hidden symbols which there's no easy way to eliminate;
49           # disable them. http://crbug.com/157326
50           'ldflags': [
51             '-Wl,--no-fatal-warnings',
52           ],
53           'ldflags!': [
54             '-Wl,--fatal-warnings',
55           ],
56         }],
57       ],
58       'sources': [
59         'lib/main/webview_entry_point.cc',
60       ],
61     },
62     {
63       'target_name': 'android_webview_pak',
64       'type': 'none',
65       'dependencies': [
66         '<(DEPTH)/content/app/resources/content_resources.gyp:content_resources',
67         '<(DEPTH)/net/net.gyp:net_resources',
68         '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resources',
69         '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
70       ],
71       'actions': [
72         {
73           'action_name': 'repack_android_webview_pack',
74           'variables': {
75             'pak_inputs': [
76               '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.pak',
77               '<(SHARED_INTERMEDIATE_DIR)/content/app/resources/content_resources_100_percent.pak',
78               '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
79               '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
80               '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
81             ],
82             'pak_output': '<(PRODUCT_DIR)/android_webview_apk/assets/webviewchromium.pak',
83           },
84          'includes': [ '../build/repack_action.gypi' ],
85         },
86         {
87           'action_name': 'add_en_US_pak_locale',
88           'variables': {
89             'pak_inputs': ['<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.pak'],
90             'pak_output': '<(PRODUCT_DIR)/android_webview_apk/assets/en-US.pak',
91           },
92          'includes': [ '../build/repack_action.gypi' ],
93         }
94       ],
95     },
96     {
97       'target_name': 'android_webview_strings_grd',
98       'android_unmangled_name': 1,
99       'type': 'none',
100       'variables': {
101         'grd_file': '../android_webview/java/strings/android_webview_strings.grd',
102       },
103       'includes': [
104           '../build/java_strings_grd.gypi',
105       ],
106     },
107     {
108       'target_name': 'android_webview_common',
109       'type': 'static_library',
110       'dependencies': [
111         '../android_webview/native/webview_native.gyp:webview_native',
112         '../components/components.gyp:auto_login_parser',
113         '../components/components.gyp:autofill_content_renderer',
114         '../components/components.gyp:cdm_browser',
115         '../components/components.gyp:cdm_renderer',
116         '../components/components.gyp:data_reduction_proxy_browser',
117         '../components/components.gyp:navigation_interception',
118         '../components/components.gyp:visitedlink_browser',
119         '../components/components.gyp:visitedlink_renderer',
120         '../components/components.gyp:web_contents_delegate_android',
121         '../content/content.gyp:content_app_both',
122         '../content/content.gyp:content_browser',
123         '../gpu/command_buffer/command_buffer.gyp:gles2_utils',
124         '../gpu/gpu.gyp:command_buffer_service',
125         '../gpu/gpu.gyp:gles2_implementation',
126         '../gpu/gpu.gyp:gl_in_process_context',
127         '../media/media.gyp:media',
128         '../printing/printing.gyp:printing',
129         '../skia/skia.gyp:skia',
130         '../third_party/WebKit/public/blink.gyp:blink',
131         '../ui/gl/gl.gyp:gl',
132         '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
133         '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
134         'android_webview_pak',
135       ],
136       'include_dirs': [
137         '..',
138         '../skia/config',
139         '<(SHARED_INTERMEDIATE_DIR)/ui/resources/',
140       ],
141       'sources': [
142         'browser/aw_browser_context.cc',
143         'browser/aw_browser_context.h',
144         'browser/aw_browser_main_parts.cc',
145         'browser/aw_browser_main_parts.h',
146         'browser/aw_browser_permission_request_delegate.h',
147         'browser/aw_contents_client_bridge_base.cc',
148         'browser/aw_contents_client_bridge_base.h',
149         'browser/aw_content_browser_client.cc',
150         'browser/aw_content_browser_client.h',
151         'browser/aw_contents_io_thread_client.h',
152         'browser/aw_cookie_access_policy.cc',
153         'browser/aw_cookie_access_policy.h',
154         'browser/aw_download_manager_delegate.cc',
155         'browser/aw_download_manager_delegate.h',
156         'browser/aw_form_database_service.cc',
157         'browser/aw_form_database_service.h',
158         'browser/aw_gl_surface.cc',
159         'browser/aw_gl_surface.h',
160         'browser/aw_http_auth_handler_base.cc',
161         'browser/aw_http_auth_handler_base.h',
162         'browser/aw_javascript_dialog_manager.cc',
163         'browser/aw_javascript_dialog_manager.h',
164         'browser/aw_login_delegate.cc',
165         'browser/aw_login_delegate.h',
166         'browser/aw_pref_store.cc',
167         'browser/aw_pref_store.h',
168         'browser/aw_quota_manager_bridge.cc',
169         'browser/aw_quota_manager_bridge.h',
170         'browser/aw_quota_permission_context.cc',
171         'browser/aw_quota_permission_context.h',
172         'browser/aw_request_interceptor.cc',
173         'browser/aw_request_interceptor.h',
174         'browser/aw_resource_context.cc',
175         'browser/aw_resource_context.h',
176         'browser/aw_result_codes.h',
177         'browser/aw_web_preferences_populater.cc',
178         'browser/aw_web_preferences_populater.h',
179         'browser/aw_web_resource_response.cc',
180         'browser/aw_web_resource_response.h',
181         'browser/browser_view_renderer.cc',
182         'browser/browser_view_renderer.h',
183         'browser/browser_view_renderer_client.h',
184         'browser/deferred_gpu_command_service.cc',
185         'browser/deferred_gpu_command_service.h',
186         'browser/find_helper.cc',
187         'browser/find_helper.h',
188         'browser/global_tile_manager.cc',
189         'browser/global_tile_manager.h',
190         'browser/global_tile_manager_client.h',
191         'browser/gpu_memory_buffer_factory_impl.cc',
192         'browser/gpu_memory_buffer_factory_impl.h',
193         'browser/hardware_renderer.cc',
194         'browser/hardware_renderer.h',
195         'browser/icon_helper.cc',
196         'browser/icon_helper.h',
197         'browser/input_stream.h',
198         'browser/jni_dependency_factory.h',
199         'browser/gl_view_renderer_manager.cc',
200         'browser/gl_view_renderer_manager.h',
201         'browser/net/android_stream_reader_url_request_job.cc',
202         'browser/net/android_stream_reader_url_request_job.h',
203         'browser/net/aw_network_delegate.cc',
204         'browser/net/aw_network_delegate.h',
205         'browser/net/aw_url_request_context_getter.cc',
206         'browser/net/aw_url_request_context_getter.h',
207         'browser/net/aw_url_request_job_factory.cc',
208         'browser/net/aw_url_request_job_factory.h',
209         'browser/net_disk_cache_remover.cc',
210         'browser/net_disk_cache_remover.h',
211         'browser/net/init_native_callback.h',
212         'browser/net/input_stream_reader.cc',
213         'browser/net/input_stream_reader.h',
214         'browser/parent_compositor_draw_constraints.cc',
215         'browser/parent_compositor_draw_constraints.h',
216         'browser/parent_output_surface.cc',
217         'browser/parent_output_surface.h',
218         'browser/renderer_host/aw_render_view_host_ext.cc',
219         'browser/renderer_host/aw_render_view_host_ext.h',
220         'browser/renderer_host/aw_resource_dispatcher_host_delegate.cc',
221         'browser/renderer_host/aw_resource_dispatcher_host_delegate.h',
222         'browser/renderer_host/print_manager.cc',
223         'browser/renderer_host/print_manager.h',
224         'browser/scoped_allow_wait_for_legacy_web_view_api.h',
225         'browser/scoped_app_gl_state_restore.cc',
226         'browser/scoped_app_gl_state_restore.h',
227         'browser/shared_renderer_state.cc',
228         'browser/shared_renderer_state.h',
229         'common/android_webview_message_generator.cc',
230         'common/android_webview_message_generator.h',
231         'common/aw_content_client.cc',
232         'common/aw_content_client.h',
233         'common/aw_hit_test_data.cc',
234         'common/aw_hit_test_data.h',
235         'common/aw_resource.h',
236         'common/aw_switches.cc',
237         'common/aw_switches.h',
238         'common/devtools_instrumentation.h',
239         'common/print_messages.cc',
240         'common/print_messages.h',
241         'common/render_view_messages.cc',
242         'common/render_view_messages.h',
243         'common/url_constants.cc',
244         'common/url_constants.h',
245         'lib/aw_browser_dependency_factory_impl.cc',
246         'lib/aw_browser_dependency_factory_impl.h',
247         'lib/main/aw_main_delegate.cc',
248         'lib/main/aw_main_delegate.h',
249         'public/browser/draw_gl.h',
250         'renderer/aw_content_renderer_client.cc',
251         'renderer/aw_content_renderer_client.h',
252         'renderer/aw_key_systems.cc',
253         'renderer/aw_key_systems.h',
254         'renderer/aw_permission_client.cc',
255         'renderer/aw_permission_client.h',
256         'renderer/aw_render_process_observer.cc',
257         'renderer/aw_render_process_observer.h',
258         'renderer/aw_render_frame_ext.cc',
259         'renderer/aw_render_frame_ext.h',
260         'renderer/aw_render_view_ext.cc',
261         'renderer/aw_render_view_ext.h',
262         'renderer/print_web_view_helper.cc',
263         'renderer/print_web_view_helper.h',
264         'renderer/print_web_view_helper_android.cc',
265         'renderer/print_web_view_helper_linux.cc',
266         'renderer/print_render_frame_observer.cc',
267         'renderer/print_render_frame_observer.h',
268       ],
269     },
270   ],
271   'conditions': [
272     ['android_webview_build==0', {
273       'includes': [
274         'android_webview_tests.gypi',
275       ],
276       'targets': [
277         {
278           'target_name': 'android_webview_java',
279           'type': 'none',
280           'dependencies': [
281             '../components/components.gyp:navigation_interception_java',
282             '../components/components.gyp:web_contents_delegate_android_java',
283             '../content/content.gyp:content_java',
284             '../ui/android/ui_android.gyp:ui_java',
285             'android_webview_strings_grd',
286           ],
287           'variables': {
288             'java_in_dir': '../android_webview/java',
289           },
290           'includes': [ '../build/java.gypi' ],
291         },
292       ],
293      }, {  # android_webview_build==1
294       'targets': [
295         {
296           'target_name': 'android_webview_jarjar_ui_resources',
297           'android_unmangled_name': 1,
298           'type': 'none',
299           'variables': {
300             'res_dir': '../ui/android/java/res',
301             'rules_file': '../android_webview/build/jarjar-rules.txt',
302           },
303           'includes': ['../android_webview/build/jarjar_resources.gypi'],
304         },
305         {
306           'target_name': 'android_webview_jarjar_content_resources',
307           'android_unmangled_name': 1,
308           'type': 'none',
309           'variables': {
310             'res_dir': '../content/public/android/java/res',
311             'rules_file': '../android_webview/build/jarjar-rules.txt',
312           },
313           'includes': ['../android_webview/build/jarjar_resources.gypi'],
314         },
315         {
316           'target_name': 'android_webview_resources',
317           'type': 'none',
318           'android_unmangled_name': 1,
319           'dependencies': [
320             '../content/content.gyp:content_strings_grd',
321             '../ui/android/ui_android.gyp:ui_strings_grd',
322             'android_webview_jarjar_content_resources',
323             'android_webview_jarjar_ui_resources',
324             'android_webview_strings_grd',
325           ],
326         },
327       ],
328     }],
329   ],