Save errno for logging before potentially overwriting it.
[chromium-blink-merge.git] / android_webview / native / webview_native.gyp
blob35a5cb5666f2ce660408c08a6677213cb032baac
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         '../../components/components.gyp:autofill_content_browser',
16         '../../components/components.gyp:web_contents_delegate_android',
17         '../../cc/cc.gyp:cc',
18         '../../net/net.gyp:net',
19         '../../skia/skia.gyp:skia',
20         '../../ui/ui.gyp:ui',
21         '../../webkit/common/user_agent/webkit_user_agent.gyp:user_agent',
22         '../../webkit/support/webkit_support.gyp:glue_common',
23         '../../webkit/storage_browser.gyp:webkit_storage_browser',
24         '../../webkit/storage_common.gyp:webkit_storage_common',
25         'android_webview_native_jni',
26       ],
27       'include_dirs': [
28         '../..',
29         '../../skia/config',
30         '<(SHARED_INTERMEDIATE_DIR)/android_webview',
31       ],
32       'sources': [
33         'android_protocol_handler.cc',
34         'android_protocol_handler.h',
35         'android_webview_jni_registrar.cc',
36         'android_webview_jni_registrar.h',
37         'aw_browser_dependency_factory.cc',
38         'aw_browser_dependency_factory.h',
39         'aw_contents.cc',
40         'aw_contents.h',
41         'aw_contents_client_bridge.cc',
42         'aw_contents_client_bridge.h',
43         'aw_contents_io_thread_client_impl.cc',
44         'aw_contents_io_thread_client_impl.h',
45         'aw_form_database.cc',
46         'aw_form_database.h',
47         'aw_geolocation_permission_context.cc',
48         'aw_geolocation_permission_context.h',
49         'aw_http_auth_handler.cc',
50         'aw_http_auth_handler.h',
51         'aw_quota_manager_bridge_impl.cc',
52         'aw_quota_manager_bridge_impl.h',
53         'aw_resource.cc',
54         'aw_resource.h',
55         'aw_settings.cc',
56         'aw_settings.h',
57         'aw_web_contents_delegate.cc',
58         'aw_web_contents_delegate.h',
59         'aw_web_contents_view_delegate.cc',
60         'aw_web_contents_view_delegate.h',
61         'cookie_manager.cc',
62         'cookie_manager.h',
63         'input_stream_impl.cc',
64         'input_stream_impl.h',
65         'intercepted_request_data_impl.cc',
66         'intercepted_request_data_impl.h',
67         'java_browser_view_renderer_helper.cc',
68         'java_browser_view_renderer_helper.h',
69         'net_init_native_callback.cc',
70         'state_serializer.cc',
71         'state_serializer.h',
72       ],
73     },
74     {
75       'target_name': 'android_jar_jni_headers',
76       'type': 'none',
77       'variables': {
78         'jni_gen_package': 'android_webview',
79         'input_java_class': 'java/io/InputStream.class',
80       },
81       'includes': [ '../../build/jar_file_jni_generator.gypi' ],
82     },
83     {
84       'target_name': 'android_webview_native_jni',
85       'type': 'none',
86       'sources': [
87           '../java/src/org/chromium/android_webview/AndroidProtocolHandler.java',
88           '../java/src/org/chromium/android_webview/AwContents.java',
89           '../java/src/org/chromium/android_webview/AwContentsClientBridge.java',
90           '../java/src/org/chromium/android_webview/AwContentsIoThreadClient.java',
91           '../java/src/org/chromium/android_webview/AwCookieManager.java',
92           '../java/src/org/chromium/android_webview/AwFormDatabase.java',
93           '../java/src/org/chromium/android_webview/AwHttpAuthHandler.java',
94           '../java/src/org/chromium/android_webview/AwQuotaManagerBridge.java',
95           '../java/src/org/chromium/android_webview/AwResource.java',
96           '../java/src/org/chromium/android_webview/AwSettings.java',
97           '../java/src/org/chromium/android_webview/AwWebContentsDelegate.java',
98           '../java/src/org/chromium/android_webview/InterceptedRequestData.java',
99           '../java/src/org/chromium/android_webview/JavaBrowserViewRendererHelper.java',
100       ],
101       'variables': {
102         'jni_gen_package': 'android_webview',
103       },
104       'includes': [ '../../build/jni_generator.gypi' ],
105       'dependencies': [
106         'android_jar_jni_headers',
107       ],
108     },
109   ],