Add media/midi/OWNERS
[chromium-blink-merge.git] / android_webview / android_webview.gyp
blobbc28dc281e5808b45db7b42f2a9b0f227bfc3fba
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/Android.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:gesture_event_type_java',
30             '../content/content.gyp:page_transition_types_java',
31             '../content/content.gyp:popup_item_type_java',
32             '../content/content.gyp:result_codes_java',
33             '../content/content.gyp:screen_orientation_values_java',
34             '../content/content.gyp:speech_recognition_error_java',
35             '../media/media.gyp:media_android_imageformat_list',
36             '../net/net.gyp:certificate_mime_types_java',
37             '../net/net.gyp:cert_verify_status_android_java',
38             '../net/net.gyp:net_errors_java',
39             '../net/net.gyp:private_key_types_java',
40             '../ui/android/ui_android.gyp:window_open_disposition_java',
41             '../ui/android/ui_android.gyp:bitmap_format_java',
42           ],
43         }],
44         [ 'android_webview_build==1 and use_system_skia==0', {
45           # When not using the system skia there are linker warnings about
46           # overriden hidden symbols which there's no easy way to eliminate;
47           # disable them. http://crbug.com/157326
48           'ldflags': [
49             '-Wl,--no-fatal-warnings',
50           ],
51           'ldflags!': [
52             '-Wl,--fatal-warnings',
53           ],
54         }],
55       ],
56       'sources': [
57         'lib/main/webview_entry_point.cc',
58       ],
59     },
60     {
61       'target_name': 'android_webview_pak',
62       'type': 'none',
63       'dependencies': [
64         '<(DEPTH)/content/content_resources.gyp:content_resources',
65         '<(DEPTH)/net/net.gyp:net_resources',
66         '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
67         '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
68       ],
69       'actions': [
70         {
71           'action_name': 'repack_android_webview_pack',
72           'variables': {
73             'pak_inputs': [
74               '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
75               '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
76               '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_percent.pak',
77               '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.pak',
78               '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pak',
79             ],
80             'pak_output': '<(PRODUCT_DIR)/android_webview_apk/assets/webviewchromium.pak',
81           },
82          'includes': [ '../build/repack_action.gypi' ],
83         }
84       ],
85     },
86     {
87       'target_name': 'android_webview_common',
88       'type': 'static_library',
89       'dependencies': [
90         '../android_webview/native/webview_native.gyp:webview_native',
91         '../components/components.gyp:auto_login_parser',
92         '../components/components.gyp:autofill_content_renderer',
93         '../components/components.gyp:navigation_interception',
94         '../components/components.gyp:visitedlink_browser',
95         '../components/components.gyp:visitedlink_renderer',
96         '../components/components.gyp:web_contents_delegate_android',
97         '../content/content.gyp:content_app_both',
98         '../gpu/gpu.gyp:command_buffer_service',
99         '../gpu/gpu.gyp:gles2_implementation',
100         '../printing/printing.gyp:printing',
101         '../skia/skia.gyp:skia',
102         '../third_party/WebKit/public/blink.gyp:blink',
103         '../ui/gl/gl.gyp:gl',
104         '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
105         '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
106         'android_webview_pak',
107       ],
108       'include_dirs': [
109         '..',
110         '../skia/config',
111         '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/',
112       ],
113       'sources': [
114         'browser/aw_browser_context.cc',
115         'browser/aw_browser_context.h',
116         'browser/aw_browser_main_parts.cc',
117         'browser/aw_browser_main_parts.h',
118         'browser/aw_contents_client_bridge_base.cc',
119         'browser/aw_contents_client_bridge_base.h',
120         'browser/aw_content_browser_client.cc',
121         'browser/aw_content_browser_client.h',
122         'browser/aw_contents_io_thread_client.h',
123         'browser/aw_cookie_access_policy.cc',
124         'browser/aw_cookie_access_policy.h',
125         'browser/aw_download_manager_delegate.cc',
126         'browser/aw_download_manager_delegate.h',
127         'browser/aw_form_database_service.cc',
128         'browser/aw_form_database_service.h',
129         'browser/aw_gl_surface.cc',
130         'browser/aw_gl_surface.h',
131         'browser/aw_http_auth_handler_base.cc',
132         'browser/aw_http_auth_handler_base.h',
133         'browser/aw_javascript_dialog_manager.cc',
134         'browser/aw_javascript_dialog_manager.h',
135         'browser/aw_login_delegate.cc',
136         'browser/aw_login_delegate.h',
137         'browser/aw_pref_store.cc',
138         'browser/aw_pref_store.h',
139         'browser/aw_quota_manager_bridge.cc',
140         'browser/aw_quota_manager_bridge.h',
141         'browser/aw_quota_permission_context.cc',
142         'browser/aw_quota_permission_context.h',
143         'browser/aw_request_interceptor.cc',
144         'browser/aw_request_interceptor.h',
145         'browser/aw_resource_context.cc',
146         'browser/aw_resource_context.h',
147         'browser/aw_result_codes.h',
148         'browser/aw_web_preferences_populater.cc',
149         'browser/aw_web_preferences_populater.h',
150         'browser/browser_view_renderer.cc',
151         'browser/browser_view_renderer.h',
152         'browser/browser_view_renderer_client.h',
153         'browser/find_helper.cc',
154         'browser/find_helper.h',
155         'browser/gpu_memory_buffer_factory_impl.cc',
156         'browser/gpu_memory_buffer_factory_impl.h',
157         'browser/hardware_renderer.cc',
158         'browser/hardware_renderer.h',
159         'browser/icon_helper.cc',
160         'browser/icon_helper.h',
161         'browser/input_stream.h',
162         'browser/intercepted_request_data.cc',
163         'browser/intercepted_request_data.h',
164         'browser/jni_dependency_factory.h',
165         'browser/gl_view_renderer_manager.cc',
166         'browser/gl_view_renderer_manager.h',
167         'browser/net/android_stream_reader_url_request_job.cc',
168         'browser/net/android_stream_reader_url_request_job.h',
169         'browser/net/aw_network_delegate.cc',
170         'browser/net/aw_network_delegate.h',
171         'browser/net/aw_url_request_context_getter.cc',
172         'browser/net/aw_url_request_context_getter.h',
173         'browser/net/aw_url_request_job_factory.cc',
174         'browser/net/aw_url_request_job_factory.h',
175         'browser/net_disk_cache_remover.cc',
176         'browser/net_disk_cache_remover.h',
177         'browser/net/init_native_callback.h',
178         'browser/net/input_stream_reader.cc',
179         'browser/net/input_stream_reader.h',
180         'browser/renderer_host/aw_render_view_host_ext.cc',
181         'browser/renderer_host/aw_render_view_host_ext.h',
182         'browser/renderer_host/aw_resource_dispatcher_host_delegate.cc',
183         'browser/renderer_host/aw_resource_dispatcher_host_delegate.h',
184         'browser/renderer_host/print_manager.cc',
185         'browser/renderer_host/print_manager.h',
186         'browser/scoped_allow_wait_for_legacy_web_view_api.h',
187         'browser/scoped_app_gl_state_restore.cc',
188         'browser/scoped_app_gl_state_restore.h',
189         'browser/shared_renderer_state.cc',
190         'browser/shared_renderer_state.h',
191         'common/android_webview_message_generator.cc',
192         'common/android_webview_message_generator.h',
193         'common/aw_content_client.cc',
194         'common/aw_content_client.h',
195         'common/aw_hit_test_data.cc',
196         'common/aw_hit_test_data.h',
197         'common/aw_resource.h',
198         'common/devtools_instrumentation.h',
199         'common/print_messages.cc',
200         'common/print_messages.h',
201         'common/render_view_messages.cc',
202         'common/render_view_messages.h',
203         'common/url_constants.cc',
204         'common/url_constants.h',
205         'lib/aw_browser_dependency_factory_impl.cc',
206         'lib/aw_browser_dependency_factory_impl.h',
207         'lib/main/aw_main_delegate.cc',
208         'lib/main/aw_main_delegate.h',
209         'public/browser/draw_gl.h',
210         'renderer/aw_content_renderer_client.cc',
211         'renderer/aw_content_renderer_client.h',
212         'renderer/aw_key_systems.cc',
213         'renderer/aw_key_systems.h',
214         'renderer/aw_permission_client.cc',
215         'renderer/aw_permission_client.h',
216         'renderer/aw_render_frame_observer.cc',
217         'renderer/aw_render_frame_observer.h',
218         'renderer/aw_render_process_observer.cc',
219         'renderer/aw_render_process_observer.h',
220         'renderer/aw_render_view_ext.cc',
221         'renderer/aw_render_view_ext.h',
222         'renderer/print_web_view_helper.cc',
223         'renderer/print_web_view_helper.h',
224         'renderer/print_web_view_helper_android.cc',
225         'renderer/print_web_view_helper_linux.cc',
226       ],
227     },
228   ],
229   'conditions': [
230     ['android_webview_build==0', {
231       'includes': [
232         'android_webview_tests.gypi',
233       ],
234       'targets': [
235         {
236           'target_name': 'android_webview_java',
237           'type': 'none',
238           'dependencies': [
239             '../components/components.gyp:navigation_interception_java',
240             '../components/components.gyp:web_contents_delegate_android_java',
241             '../content/content.gyp:content_java',
242             '../ui/android/ui_android.gyp:ui_java',
243           ],
244           'variables': {
245             'java_in_dir': '../android_webview/java',
246           },
247           'includes': [ '../build/java.gypi' ],
248         },
249       ],
250     }],
251   ],