Prevent crash in UpdateClient when passed an empty list of ids
[chromium-blink-merge.git] / android_webview / native / webview_native.gyp
blob0a1270abcc96ba940fb9fb60a44f2b396c930fa5
1 # Copyright (c) 2012 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': 'webview_native',
11       'type': 'static_library',
12       'dependencies': [
13         '../../base/base.gyp:base_static',
14         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
15         '../../cc/cc.gyp:cc',
16         '../../components/components.gyp:autofill_content_browser',
17         '../../components/components.gyp:devtools_http_handler',
18         '../../components/components.gyp:web_contents_delegate_android',
19         '../../content/content.gyp:content_common',
20         '../../media/media.gyp:player_android',
21         '../../net/net.gyp:net',
22         '../../skia/skia.gyp:skia',
23         '../../storage/storage_browser.gyp:storage',
24         '../../storage/storage_common.gyp:storage_common',
25         '../../ui/base/ui_base.gyp:ui_base',
26         '../../ui/gfx/gfx.gyp:gfx',
27         '../../ui/gfx/gfx.gyp:gfx_geometry',
28         '../../third_party/boringssl/boringssl.gyp:boringssl',
29         'android_webview_native_jni',
30       ],
31       'include_dirs': [
32         '../..',
33         '../../skia/config',
34       ],
35       'sources': [
36         'android_protocol_handler.cc',
37         'android_protocol_handler.h',
38         'android_webview_jni_registrar.cc',
39         'android_webview_jni_registrar.h',
40         'aw_autofill_client.cc',
41         'aw_autofill_client.h',
42         'aw_browser_dependency_factory.cc',
43         'aw_browser_dependency_factory.h',
44         'aw_contents.cc',
45         'aw_contents.h',
46         'aw_contents_client_bridge.cc',
47         'aw_contents_client_bridge.h',
48         'aw_contents_io_thread_client_impl.cc',
49         'aw_contents_io_thread_client_impl.h',
50         'aw_contents_statics.cc',
51         'aw_contents_statics.h',
52         'aw_dev_tools_server.cc',
53         'aw_dev_tools_server.h',
54         'aw_form_database.cc',
55         'aw_form_database.h',
56         'aw_http_auth_handler.cc',
57         'aw_http_auth_handler.h',
58         'aw_locale_manager_impl.cc',
59         'aw_locale_manager_impl.h',
60         'aw_media_url_interceptor.cc',
61         'aw_media_url_interceptor.h',
62         'aw_message_port_service_impl.cc',
63         'aw_messagE_port_service_impl.h',
64         'aw_pdf_exporter.cc',
65         'aw_pdf_exporter.h',
66         'aw_picture.cc',
67         'aw_picture.h',
68         'aw_quota_manager_bridge_impl.cc',
69         'aw_quota_manager_bridge_impl.h',
70         'aw_resource.cc',
71         'aw_resource.h',
72         'aw_settings.cc',
73         'aw_settings.h',
74         'aw_webview_lifecycle_observer.cc',
75         'aw_webview_lifecycle_observer.h',
76         'aw_web_contents_delegate.cc',
77         'aw_web_contents_delegate.h',
78         'aw_web_contents_view_delegate.cc',
79         'aw_web_contents_view_delegate.h',
80         'aw_web_preferences_populater_impl.cc',
81         'aw_web_preferences_populater_impl.h',
82         'aw_web_resource_response_impl.cc',
83         'aw_web_resource_response_impl.h',
84         'cookie_manager.cc',
85         'cookie_manager.h',
86         'input_stream_impl.cc',
87         'input_stream_impl.h',
88         'java_browser_view_renderer_helper.cc',
89         'java_browser_view_renderer_helper.h',
90         'net_init_native_callback.cc',
91         'permission/aw_permission_request.cc',
92         'permission/aw_permission_request.h',
93         'permission/aw_permission_request_delegate.cc',
94         'permission/aw_permission_request_delegate.h',
95         'permission/media_access_permission_request.cc',
96         'permission/media_access_permission_request.h',
97         'permission/permission_request_handler.cc',
98         'permission/permission_request_handler.h',
99         'permission/permission_request_handler_client.cc',
100         'permission/permission_request_handler_client.h',
101         'permission/simple_permission_request.cc',
102         'permission/simple_permission_request.h',
103         'state_serializer.cc',
104         'state_serializer.h',
105       ],
106       'conditions': [
107         ['video_hole==1', {
108           'dependencies': [
109             '../../components/components.gyp:external_video_surface',
110           ],
111         }],
112       ],
113     },
114     {
115       'target_name': 'cancellation_signal_android_jar_jni_headers',
116       'type': 'none',
117       'variables': {
118         'jni_gen_package': 'android_webview',
119         'input_java_class': 'android/os/CancellationSignal.class',
120       },
121       'includes': [ '../../build/jar_file_jni_generator.gypi' ],
122     },
123     {
124       'target_name': 'android_webview_native_jni',
125       'type': 'none',
126       'sources': [
127           '../java/src/org/chromium/android_webview/AndroidProtocolHandler.java',
128           '../java/src/org/chromium/android_webview/AwWebViewLifecycleObserver.java',
129           '../java/src/org/chromium/android_webview/AwAutofillClient.java',
130           '../java/src/org/chromium/android_webview/AwContents.java',
131           '../java/src/org/chromium/android_webview/AwContentsClientBridge.java',
132           '../java/src/org/chromium/android_webview/AwContentsIoThreadClient.java',
133           '../java/src/org/chromium/android_webview/AwContentsStatics.java',
134           '../java/src/org/chromium/android_webview/AwCookieManager.java',
135           '../java/src/org/chromium/android_webview/AwDevToolsServer.java',
136           '../java/src/org/chromium/android_webview/AwFormDatabase.java',
137           '../java/src/org/chromium/android_webview/AwHttpAuthHandler.java',
138           '../java/src/org/chromium/android_webview/AwMessagePortService.java',
139           '../java/src/org/chromium/android_webview/AwPdfExporter.java',
140           '../java/src/org/chromium/android_webview/AwPicture.java',
141           '../java/src/org/chromium/android_webview/AwQuotaManagerBridge.java',
142           '../java/src/org/chromium/android_webview/AwResource.java',
143           '../java/src/org/chromium/android_webview/AwSettings.java',
144           '../java/src/org/chromium/android_webview/AwWebContentsDelegate.java',
145           '../java/src/org/chromium/android_webview/AwWebResourceResponse.java',
146           '../java/src/org/chromium/android_webview/InputStreamUtil.java',
147           '../java/src/org/chromium/android_webview/JavaBrowserViewRendererHelper.java',
148           '../java/src/org/chromium/android_webview/permission/AwPermissionRequest.java',
149       ],
150       'variables': {
151         'jni_gen_package': 'android_webview',
152       },
153       'includes': [ '../../build/jni_generator.gypi' ],
154       'dependencies': [
155         'cancellation_signal_android_jar_jni_headers',
156       ],
157     },
158     {
159       'target_name': 'android_webview_aw_permission_request_resource',
160       'type': 'none',
161       'variables': {
162         'source_file': 'permission/aw_permission_request.h',
163       },
164       'includes': [ '../../build/android/java_cpp_enum.gypi' ],
165     },
166   ],