1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
|
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'targets': [
{
'target_name': 'libwebviewchromium',
'type': 'shared_library',
'android_unmangled_name': 1,
'dependencies': [
'../chrome/chrome.gyp:browser',
'../chrome/chrome.gyp:renderer',
'../content/content.gyp:content',
'../android_webview/native/webview_native.gyp:webview_native',
'../chrome/browser/component/components.gyp:navigation_interception',
'../chrome/browser/component/components.gyp:web_contents_delegate_android',
'../chrome/browser/component/components.gyp:browser_component_jni_headers',
],
'include_dirs': [
'..',
'../skia/config',
],
'ldflags': [
# fix linking to hidden symbols and re-enable this (crbug.com/157326)
'-Wl,--no-fatal-warnings'
],
'sources': [
'common/android_webview_message_generator.cc',
'common/android_webview_message_generator.h',
'common/aw_content_client.cc',
'common/aw_content_client.h',
'common/aw_resource.h',
'common/render_view_messages.cc',
'common/render_view_messages.h',
'common/url_constants.cc',
'common/url_constants.h',
'browser/aw_contents_io_thread_client.h',
'browser/aw_cookie_access_policy.cc',
'browser/aw_cookie_access_policy.h',
'browser/aw_http_auth_handler_base.cc',
'browser/aw_http_auth_handler_base.h',
'browser/aw_login_delegate.cc',
'browser/aw_login_delegate.h',
'browser/aw_request_interceptor.cc',
'browser/aw_request_interceptor.h',
'browser/find_helper.cc',
'browser/find_helper.h',
'browser/intercepted_request_data.h',
'browser/net/aw_network_delegate.cc',
'browser/net/aw_network_delegate.h',
'browser/net/aw_url_request_job_factory.cc',
'browser/net/aw_url_request_job_factory.h',
'browser/net_disk_cache_remover.cc',
'browser/net_disk_cache_remover.h',
'browser/renderer_host/aw_render_view_host_ext.cc',
'browser/renderer_host/aw_render_view_host_ext.h',
'browser/renderer_host/aw_resource_dispatcher_host_delegate.cc',
'browser/renderer_host/aw_resource_dispatcher_host_delegate.h',
'browser/scoped_allow_wait_for_legacy_web_view_api.h',
'browser/scoped_allow_wait_for_legacy_web_view_api.h',
'lib/aw_browser_dependency_factory_impl.cc',
'lib/aw_browser_dependency_factory_impl.h',
'lib/aw_content_browser_client.cc',
'lib/aw_content_browser_client.h',
'lib/main/aw_main_delegate.cc',
'lib/main/aw_main_delegate.h',
'lib/main/webview_entry_point.cc',
'lib/main/webview_stubs.cc',
'renderer/aw_content_renderer_client.cc',
'renderer/aw_content_renderer_client.h',
'renderer/aw_render_process_observer.cc',
'renderer/aw_render_process_observer.h',
'renderer/aw_render_view_ext.cc',
'renderer/aw_render_view_ext.h',
],
},
{
'target_name': 'android_webview_java',
'type': 'none',
'dependencies': [
'../content/content.gyp:content_java',
'../chrome/browser/component/components.gyp:navigation_interception_java',
'../chrome/browser/component/components.gyp:web_contents_delegate_android_java',
'../ui/ui.gyp:ui_java',
],
'variables': {
'package_name': 'android_webview_java',
'java_in_dir': '../android_webview/java',
},
'includes': [ '../build/java.gypi' ],
},
{
'target_name': 'android_webview_apk',
'type': 'none',
'dependencies': [
'../base/base.gyp:base_java',
'../chrome/browser/component/components.gyp:navigation_interception_java',
'../chrome/browser/component/components.gyp:web_contents_delegate_android_java',
'../chrome/chrome_resources.gyp:packed_extra_resources',
'../chrome/chrome_resources.gyp:packed_resources',
'../content/content.gyp:content_java',
'../media/media.gyp:media_java',
'../net/net.gyp:net_java',
'../ui/ui.gyp:ui_java',
'libwebviewchromium',
],
'variables': {
'package_name': 'android_webview',
'apk_name': 'AndroidWebView',
'manifest_package_name': 'org.chromium.android_webview',
'java_in_dir': '../android_webview/java',
'native_libs_paths': ['<(SHARED_LIB_DIR)/libwebviewchromium.so'],
'input_pak_files': [
'<(SHARED_INTERMEDIATE_DIR)/repack/chrome.pak',
'<(SHARED_INTERMEDIATE_DIR)/repack/chrome_100_percent.pak',
'<(SHARED_INTERMEDIATE_DIR)/repack/resources.pak',
'<(SHARED_INTERMEDIATE_DIR)/repack/en-US.pak',
],
'copied_pak_files': [
'<(PRODUCT_DIR)/android_webview/assets/chrome.pak',
'<(PRODUCT_DIR)/android_webview/assets/chrome_100_percent.pak',
'<(PRODUCT_DIR)/android_webview/assets/resources.pak',
'<(PRODUCT_DIR)/android_webview/assets/en-US.pak',
],
'additional_input_paths': [ '<@(copied_pak_files)' ],
},
'copies': [
{
'destination': '<(PRODUCT_DIR)/android_webview/assets',
'files': [ '<@(input_pak_files)' ]
},
],
'includes': [ '../build/java_apk.gypi' ],
},
{
'target_name': 'android_webview_test_apk',
'type': 'none',
'dependencies': [
'../base/base.gyp:base_java',
'../base/base.gyp:base_java_test_support',
'../chrome/browser/component/components.gyp:navigation_interception_java',
'../chrome/browser/component/components.gyp:web_contents_delegate_android_java',
'../chrome/chrome_resources.gyp:packed_extra_resources',
'../chrome/chrome_resources.gyp:packed_resources',
'../content/content.gyp:content_java',
'../content/content.gyp:content_java_test_support',
'../media/media.gyp:media_java',
'../net/net.gyp:net_java',
'../ui/ui.gyp:ui_java',
'android_webview_java',
'libwebviewchromium',
],
'variables': {
'package_name': 'android_webview_test',
'apk_name': 'AndroidWebViewTest',
'java_in_dir': '../android_webview/javatests',
'resource_dir': 'res',
},
'copies': [
{
'destination': '<(PRODUCT_DIR)/android_webview_test/assets',
'files': [ '<!@(find <(java_in_dir)/assets -type f -name "*")' ]
},
],
'includes': [ '../build/java_apk.gypi' ],
},
],
}
|