blob: 845aedff4b72452ffaeddae102fd87d94a18e5aa [file] [log] [blame]
[email protected]4b31bbd2012-11-05 11:49:391# 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.
4{
5 'targets': [
6 {
[email protected]8c56afd2013-03-25 15:37:457 'target_name': 'android_webview_apk',
[email protected]4b31bbd2012-11-05 11:49:398 'type': 'none',
9 'dependencies': [
hjdaefb2792014-09-09 11:44:0210 'libstandalonelibwebviewchromium',
[email protected]8c56afd2013-03-25 15:37:4511 'android_webview_java',
12 'android_webview_pak',
sievers625a7862014-08-30 02:19:0013 'libdrawgl',
[email protected]4b31bbd2012-11-05 11:49:3914 ],
15 'variables': {
[email protected]8c56afd2013-03-25 15:37:4516 'apk_name': 'AndroidWebView',
[email protected]bd6ab3db2013-03-26 17:35:2117 'java_in_dir': 'test/shell',
[email protected]7c5e1dd2013-10-23 18:53:5218 'native_lib_target': 'libstandalonelibwebviewchromium',
[email protected]bd6ab3db2013-03-26 17:35:2119 'resource_dir': 'test/shell/res',
mkosiba3c766cc2015-01-09 13:10:2220 'extensions_to_not_compress': 'pak,dat,bin',
gsennton48f415f2015-02-10 10:32:1421 'asset_location': '<(PRODUCT_DIR)/android_webview_apk/assets',
sievers625a7862014-08-30 02:19:0022 'extra_native_libs': ['<(SHARED_LIB_DIR)/libdrawgl.>(android_product_extension)'],
gsennton48f415f2015-02-10 10:32:1423 'snapshot_copy_files': '<(snapshot_copy_files)',
[email protected]37434b42013-02-20 22:39:1724 'additional_input_paths': [
gsennton48f415f2015-02-10 10:32:1425 '<(asset_location)/webviewchromium.pak',
26 '<(asset_location)/en-US.pak',
27 '<(asset_location)/asset_file.html',
28 '<(asset_location)/cookie_test.html',
29 '<(asset_location)/asset_icon.png',
30 '<(asset_location)/full_screen_video.js',
31 '<(asset_location)/full_screen_video_test.html',
32 '<(asset_location)/full_screen_video_inside_div_test.html',
33 '<(asset_location)/multiple_videos_test.html',
34 '<(asset_location)/video.mp4',
igsolla66e59432015-02-18 15:01:3435 '<(asset_location)/visual_state_waits_for_js_test.html',
gsennton48f415f2015-02-10 10:32:1436 '<@(snapshot_additional_input_paths)',
[email protected]37434b42013-02-20 22:39:1737 ],
[email protected]c8e8781e2014-03-08 12:02:2638 'conditions': [
39 ['icu_use_data_file_flag==1', {
40 'additional_input_paths': [
gsennton48f415f2015-02-10 10:32:1441 '<(asset_location)/icudtl.dat',
baixo3a3c88a2014-10-28 11:52:2142 ],
43 }],
[email protected]c8e8781e2014-03-08 12:02:2644 ],
gsennton48f415f2015-02-10 10:32:1445 'includes': [ 'snapshot_copying.gypi' ],
[email protected]4b31bbd2012-11-05 11:49:3946 },
47 'copies': [
48 {
gsennton48f415f2015-02-10 10:32:1449 'destination': '<(asset_location)',
[email protected]68f85132013-02-06 19:09:0450 'files': [
hjdaefb2792014-09-09 11:44:0251 '<(PRODUCT_DIR)/android_webview_assets/webviewchromium.pak',
igsolla0826b6362015-02-06 12:10:0852 '<(PRODUCT_DIR)/android_webview_assets/locales/en-US.pak',
[email protected]68f85132013-02-06 19:09:0453 '<(java_in_dir)/assets/asset_file.html',
54 '<(java_in_dir)/assets/asset_icon.png',
[email protected]0a20df02014-06-30 16:40:0755 '<(java_in_dir)/assets/cookie_test.html',
igsolla2d50461c72014-10-17 15:11:2556 '<(java_in_dir)/assets/full_screen_video.js',
[email protected]c4f3aa22013-03-15 11:39:2757 '<(java_in_dir)/assets/full_screen_video_test.html',
igsolla2d50461c72014-10-17 15:11:2558 '<(java_in_dir)/assets/full_screen_video_inside_div_test.html',
hugo.holgersson02309c92015-01-19 10:47:3059 '<(java_in_dir)/assets/multiple_videos_test.html',
igsollac698e072014-10-30 16:52:1560 '<(java_in_dir)/assets/video.mp4',
igsolla66e59432015-02-18 15:01:3461 '<(java_in_dir)/assets/visual_state_waits_for_js_test.html',
gsennton48f415f2015-02-10 10:32:1462 '<@(snapshot_copy_files)',
[email protected]68f85132013-02-06 19:09:0463 ],
mkosiba3c766cc2015-01-09 13:10:2264 'conditions': [
[email protected]c8e8781e2014-03-08 12:02:2665 ['icu_use_data_file_flag==1', {
66 'files': [
67 '<(PRODUCT_DIR)/icudtl.dat',
68 ],
baixo3a3c88a2014-10-28 11:52:2169 }],
[email protected]c8e8781e2014-03-08 12:02:2670 ],
[email protected]4b31bbd2012-11-05 11:49:3971 },
72 ],
73 'includes': [ '../build/java_apk.gypi' ],
74 },
75 {
[email protected]8c56afd2013-03-25 15:37:4576 # android_webview_apk creates a .jar as a side effect. Any java
77 # targets that need that .jar in their classpath should depend on this
[email protected]efeb59e2014-03-12 01:31:2678 # target. For more details see the chrome_shell_apk_java target.
[email protected]8c56afd2013-03-25 15:37:4579 'target_name': 'android_webview_apk_java',
[email protected]13485fa2013-03-20 12:06:5380 'type': 'none',
81 'dependencies': [
[email protected]8c56afd2013-03-25 15:37:4582 'android_webview_apk',
83 ],
[email protected]b13f73e2013-03-27 23:31:2784 'includes': [ '../build/apk_fake_jar.gypi' ],
[email protected]8c56afd2013-03-25 15:37:4585 },
86 {
87 'target_name': 'android_webview_test_apk',
88 'type': 'none',
89 'dependencies': [
90 '../base/base.gyp:base_java_test_support',
[email protected]ba42b1e2013-10-19 22:13:1791 '../content/content_shell_and_tests.gyp:content_java_test_support',
[email protected]8c56afd2013-03-25 15:37:4592 '../net/net.gyp:net_java_test_support',
93 'android_webview_apk_java',
[email protected]13485fa2013-03-20 12:06:5394 ],
95 'variables': {
[email protected]8c56afd2013-03-25 15:37:4596 'apk_name': 'AndroidWebViewTest',
97 'java_in_dir': '../android_webview/javatests',
98 'is_test_apk': 1,
[email protected]13485fa2013-03-20 12:06:5399 },
100 'includes': [ '../build/java_apk.gypi' ],
101 },
102 {
[email protected]4b31bbd2012-11-05 11:49:39103 'target_name': 'android_webview_unittests',
104 'type': '<(gtest_target_type)',
105 'dependencies': [
106 '../base/base.gyp:test_support_base',
[email protected]ba42b1e2013-10-19 22:13:17107 '../content/content_shell_and_tests.gyp:test_support_content',
[email protected]17373862012-11-22 16:21:26108 '../net/net.gyp:net_test_support',
[email protected]4b31bbd2012-11-05 11:49:39109 '../testing/android/native_test.gyp:native_test_native_code',
110 '../testing/gmock.gyp:gmock',
111 '../testing/gtest.gyp:gtest',
[email protected]ed8fd9152014-03-13 10:20:37112 '../ui/base/ui_base.gyp:ui_base_jni_headers',
boliuec5d6de2014-12-11 00:54:41113 '../ui/gl/gl.gyp:gl',
[email protected]4b31bbd2012-11-05 11:49:39114 'android_webview_common',
[email protected]ac91eda2014-01-07 23:16:52115 'android_webview_unittests_jni',
[email protected]4b31bbd2012-11-05 11:49:39116 ],
117 'include_dirs': [
118 '..',
119 '../skia/config',
[email protected]17373862012-11-22 16:21:26120 '<(SHARED_INTERMEDIATE_DIR)/android_webview_unittests',
[email protected]4b31bbd2012-11-05 11:49:39121 ],
122 'sources': [
[email protected]41d70bd2014-05-29 19:01:02123 'browser/aw_static_cookie_policy_unittest.cc',
[email protected]11401802013-05-08 16:16:37124 'browser/aw_form_database_service_unittest.cc',
boliufb2874d2014-11-11 22:59:33125 'browser/browser_view_renderer_unittest.cc',
[email protected]17373862012-11-22 16:21:26126 'browser/net/android_stream_reader_url_request_job_unittest.cc',
127 'browser/net/input_stream_reader_unittest.cc',
boliuec5d6de2014-12-11 00:54:41128 'browser/test/fake_window.cc',
129 'browser/test/fake_window.h',
boliufb2874d2014-11-11 22:59:33130 'browser/test/rendering_test.cc',
131 'browser/test/rendering_test.h',
[email protected]4b31bbd2012-11-05 11:49:39132 'lib/main/webview_tests.cc',
[email protected]353539b2014-04-22 22:22:44133 'native/aw_contents_client_bridge_unittest.cc',
[email protected]63ab5052014-08-04 10:44:11134 'native/aw_media_url_interceptor_unittest.cc',
[email protected]17373862012-11-22 16:21:26135 'native/input_stream_unittest.cc',
[email protected]32e2d4aac2014-05-01 17:54:13136 'native/permission/media_access_permission_request_unittest.cc',
137 'native/permission/permission_request_handler_unittest.cc',
[email protected]f791d5d2014-01-17 00:30:32138 'native/state_serializer_unittest.cc',
[email protected]4b31bbd2012-11-05 11:49:39139 ],
140 },
141 {
[email protected]17373862012-11-22 16:21:26142 'target_name': 'android_webview_unittest_java',
143 'type': 'none',
144 'dependencies': [
145 '../base/base.gyp:base_java_test_support',
[email protected]ba42b1e2013-10-19 22:13:17146 '../content/content_shell_and_tests.gyp:content_java_test_support',
[email protected]17373862012-11-22 16:21:26147 'android_webview_java',
148 ],
149 'variables': {
[email protected]17373862012-11-22 16:21:26150 'java_in_dir': '../android_webview/unittestjava',
151 },
152 'includes': [ '../build/java.gypi' ],
153 },
154 {
155 'target_name': 'android_webview_unittests_jni',
156 'type': 'none',
157 'sources': [
158 '../android_webview/unittestjava/src/org/chromium/android_webview/unittest/InputStreamUnittest.java',
[email protected]353539b2014-04-22 22:22:44159 '../android_webview/unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsClientBridge.java',
[email protected]17373862012-11-22 16:21:26160 ],
161 'variables': {
[email protected]521cd942013-03-07 22:34:05162 'jni_gen_package': 'android_webview_unittests',
[email protected]17373862012-11-22 16:21:26163 },
164 'includes': [ '../build/jni_generator.gypi' ],
165 },
166 {
[email protected]4b31bbd2012-11-05 11:49:39167 'target_name': 'android_webview_unittests_apk',
168 'type': 'none',
169 'dependencies': [
[email protected]17373862012-11-22 16:21:26170 'android_webview_unittest_java',
[email protected]4b31bbd2012-11-05 11:49:39171 'android_webview_unittests',
172 ],
173 'variables': {
174 'test_suite_name': 'android_webview_unittests',
[email protected]63ab5052014-08-04 10:44:11175 'additional_input_paths': [
176 '<(PRODUCT_DIR)/android_webview_unittests_apk/assets/asset_file.ogg',
177 ],
[email protected]4b31bbd2012-11-05 11:49:39178 },
[email protected]63ab5052014-08-04 10:44:11179 'copies': [
180 {
181 'destination': '<(PRODUCT_DIR)/android_webview_unittests_apk/assets',
182 'files': [
183 'test/unittest/assets/asset_file.ogg',
184 ],
185 },
186 ],
[email protected]4b31bbd2012-11-05 11:49:39187 'includes': [ '../build/apk_test.gypi' ],
188 },
sievers625a7862014-08-30 02:19:00189 {
190 'target_name': 'libdrawgl',
191 'type': 'shared_library',
192 # Do not depend on any other component here, since this target
193 # builds a separate shared library!
194 'include_dirs': [
195 '..',
196 ],
torne9d90d85f2015-02-18 21:37:16197 'variables': {
198 # This library uses native JNI exports; tell gyp so that the required
199 # symbols will be kept.
200 'use_native_jni_exports': 1,
201 },
sievers625a7862014-08-30 02:19:00202 'sources': [
203 '../android_webview/test/shell/src/draw_gl/draw_gl.cc',
204 ],
205 },
hjdaefb2792014-09-09 11:44:02206 {
207 'target_name': 'libstandalonelibwebviewchromium',
208 'includes': [
209 'libwebviewchromium.gypi',
210 ],
211 },
[email protected]4b31bbd2012-11-05 11:49:39212 ],
213}