[Android WebViewShell] Add inclusion test for webview exposed stable interfaces.
[chromium-blink-merge.git] / android_webview / native / webview_native.gyp
blob117fec5d09de826360a16bb6cecb5817e2bae37c
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_media_url_interceptor.cc',
59         'aw_media_url_interceptor.h',
60         'aw_message_port_service_impl.cc',
61         'aw_messagE_port_service_impl.h',
62         'aw_pdf_exporter.cc',
63         'aw_pdf_exporter.h',
64         'aw_picture.cc',
65         'aw_picture.h',
66         'aw_quota_manager_bridge_impl.cc',
67         'aw_quota_manager_bridge_impl.h',
68         'aw_resource.cc',
69         'aw_resource.h',
70         'aw_settings.cc',
71         'aw_settings.h',
72         'aw_web_contents_delegate.cc',
73         'aw_web_contents_delegate.h',
74         'aw_web_contents_view_delegate.cc',
75         'aw_web_contents_view_delegate.h',
76         'aw_web_preferences_populater_impl.cc',
77         'aw_web_preferences_populater_impl.h',
78         'aw_web_resource_response_impl.cc',
79         'aw_web_resource_response_impl.h',
80         'cookie_manager.cc',
81         'cookie_manager.h',
82         'input_stream_impl.cc',
83         'input_stream_impl.h',
84         'java_browser_view_renderer_helper.cc',
85         'java_browser_view_renderer_helper.h',
86         'net_init_native_callback.cc',
87         'permission/aw_permission_request.cc',
88         'permission/aw_permission_request.h',
89         'permission/aw_permission_request_delegate.cc',
90         'permission/aw_permission_request_delegate.h',
91         'permission/media_access_permission_request.cc',
92         'permission/media_access_permission_request.h',
93         'permission/permission_request_handler.cc',
94         'permission/permission_request_handler.h',
95         'permission/permission_request_handler_client.cc',
96         'permission/permission_request_handler_client.h',
97         'permission/simple_permission_request.cc',
98         'permission/simple_permission_request.h',
99         'state_serializer.cc',
100         'state_serializer.h',
101       ],
102       'conditions': [
103         ['video_hole==1', {
104           'dependencies': [
105             '../../components/components.gyp:external_video_surface',
106           ],
107         }],
108       ],
109     },
110     {
111       'target_name': 'cancellation_signal_android_jar_jni_headers',
112       'type': 'none',
113       'variables': {
114         'jni_gen_package': 'android_webview',
115         'input_java_class': 'android/os/CancellationSignal.class',
116       },
117       'includes': [ '../../build/jar_file_jni_generator.gypi' ],
118     },
119     {
120       'target_name': 'android_webview_native_jni',
121       'type': 'none',
122       'sources': [
123           '../java/src/org/chromium/android_webview/AndroidProtocolHandler.java',
124           '../java/src/org/chromium/android_webview/AwAutofillClient.java',
125           '../java/src/org/chromium/android_webview/AwContents.java',
126           '../java/src/org/chromium/android_webview/AwContentsClientBridge.java',
127           '../java/src/org/chromium/android_webview/AwContentsIoThreadClient.java',
128           '../java/src/org/chromium/android_webview/AwContentsStatics.java',
129           '../java/src/org/chromium/android_webview/AwCookieManager.java',
130           '../java/src/org/chromium/android_webview/AwDevToolsServer.java',
131           '../java/src/org/chromium/android_webview/AwFormDatabase.java',
132           '../java/src/org/chromium/android_webview/AwHttpAuthHandler.java',
133           '../java/src/org/chromium/android_webview/AwMessagePortService.java',
134           '../java/src/org/chromium/android_webview/AwPdfExporter.java',
135           '../java/src/org/chromium/android_webview/AwPicture.java',
136           '../java/src/org/chromium/android_webview/AwQuotaManagerBridge.java',
137           '../java/src/org/chromium/android_webview/AwResource.java',
138           '../java/src/org/chromium/android_webview/AwSettings.java',
139           '../java/src/org/chromium/android_webview/AwWebContentsDelegate.java',
140           '../java/src/org/chromium/android_webview/AwWebResourceResponse.java',
141           '../java/src/org/chromium/android_webview/InputStreamUtil.java',
142           '../java/src/org/chromium/android_webview/JavaBrowserViewRendererHelper.java',
143           '../java/src/org/chromium/android_webview/permission/AwPermissionRequest.java',
144       ],
145       'variables': {
146         'jni_gen_package': 'android_webview',
147       },
148       'includes': [ '../../build/jni_generator.gypi' ],
149       'dependencies': [
150         'cancellation_signal_android_jar_jni_headers',
151       ],
152     },
153     {
154       'target_name': 'android_webview_aw_permission_request_resource',
155       'type': 'none',
156       'variables': {
157         'source_file': 'permission/aw_permission_request.h',
158       },
159       'includes': [ '../../build/android/java_cpp_enum.gypi' ],
160     },
161   ],