blob: 10ee545af3bfe6cb5e26bb25ddb002098d14bd5f [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',
sievers625a7862014-08-30 02:19:0021 'extra_native_libs': ['<(SHARED_LIB_DIR)/libdrawgl.>(android_product_extension)'],
[email protected]37434b42013-02-20 22:39:1722 'additional_input_paths': [
mkosiba3c766cc2015-01-09 13:10:2223 '<(PRODUCT_DIR)/android_webview_apk/assets/webviewchromium.pak',
24 '<(PRODUCT_DIR)/android_webview_apk/assets/en-US.pak',
[email protected]8c56afd2013-03-25 15:37:4525 '<(PRODUCT_DIR)/android_webview_apk/assets/asset_file.html',
[email protected]0a20df02014-06-30 16:40:0726 '<(PRODUCT_DIR)/android_webview_apk/assets/cookie_test.html',
[email protected]8c56afd2013-03-25 15:37:4527 '<(PRODUCT_DIR)/android_webview_apk/assets/asset_icon.png',
igsolla2d50461c72014-10-17 15:11:2528 '<(PRODUCT_DIR)/android_webview_apk/assets/full_screen_video.js',
[email protected]8c56afd2013-03-25 15:37:4529 '<(PRODUCT_DIR)/android_webview_apk/assets/full_screen_video_test.html',
igsolla2d50461c72014-10-17 15:11:2530 '<(PRODUCT_DIR)/android_webview_apk/assets/full_screen_video_inside_div_test.html',
igsollac698e072014-10-30 16:52:1531 '<(PRODUCT_DIR)/android_webview_apk/assets/video.mp4',
[email protected]37434b42013-02-20 22:39:1732 ],
[email protected]c8e8781e2014-03-08 12:02:2633 'conditions': [
34 ['icu_use_data_file_flag==1', {
35 'additional_input_paths': [
36 '<(PRODUCT_DIR)/icudtl.dat',
37 ],
38 }],
baixo3a3c88a2014-10-28 11:52:2139 ['v8_use_external_startup_data==1', {
40 'additional_input_paths': [
41 '<(PRODUCT_DIR)/natives_blob.bin',
42 '<(PRODUCT_DIR)/snapshot_blob.bin',
43 ],
44 }],
[email protected]c8e8781e2014-03-08 12:02:2645 ],
[email protected]4b31bbd2012-11-05 11:49:3946 },
47 'copies': [
48 {
[email protected]8c56afd2013-03-25 15:37:4549 'destination': '<(PRODUCT_DIR)/android_webview_apk/assets',
[email protected]68f85132013-02-06 19:09:0450 'files': [
hjdaefb2792014-09-09 11:44:0251 '<(PRODUCT_DIR)/android_webview_assets/webviewchromium.pak',
52 '<(PRODUCT_DIR)/android_webview_assets/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',
igsollac698e072014-10-30 16:52:1559 '<(java_in_dir)/assets/video.mp4',
[email protected]68f85132013-02-06 19:09:0460 ],
mkosiba3c766cc2015-01-09 13:10:2261 'conditions': [
[email protected]c8e8781e2014-03-08 12:02:2662 ['icu_use_data_file_flag==1', {
63 'files': [
64 '<(PRODUCT_DIR)/icudtl.dat',
65 ],
baixo3a3c88a2014-10-28 11:52:2166 }],
67 ['v8_use_external_startup_data==1', {
68 'files': [
69 '<(PRODUCT_DIR)/natives_blob.bin',
70 '<(PRODUCT_DIR)/snapshot_blob.bin',
71 ],
72 }],
[email protected]c8e8781e2014-03-08 12:02:2673 ],
[email protected]4b31bbd2012-11-05 11:49:3974 },
75 ],
76 'includes': [ '../build/java_apk.gypi' ],
77 },
78 {
[email protected]8c56afd2013-03-25 15:37:4579 # android_webview_apk creates a .jar as a side effect. Any java
80 # targets that need that .jar in their classpath should depend on this
[email protected]efeb59e2014-03-12 01:31:2681 # target. For more details see the chrome_shell_apk_java target.
[email protected]8c56afd2013-03-25 15:37:4582 'target_name': 'android_webview_apk_java',
[email protected]13485fa2013-03-20 12:06:5383 'type': 'none',
84 'dependencies': [
[email protected]8c56afd2013-03-25 15:37:4585 'android_webview_apk',
86 ],
[email protected]b13f73e2013-03-27 23:31:2787 'includes': [ '../build/apk_fake_jar.gypi' ],
[email protected]8c56afd2013-03-25 15:37:4588 },
89 {
90 'target_name': 'android_webview_test_apk',
91 'type': 'none',
92 'dependencies': [
93 '../base/base.gyp:base_java_test_support',
[email protected]ba42b1e2013-10-19 22:13:1794 '../content/content_shell_and_tests.gyp:content_java_test_support',
[email protected]8c56afd2013-03-25 15:37:4595 '../net/net.gyp:net_java_test_support',
96 'android_webview_apk_java',
[email protected]13485fa2013-03-20 12:06:5397 ],
98 'variables': {
[email protected]8c56afd2013-03-25 15:37:4599 'apk_name': 'AndroidWebViewTest',
100 'java_in_dir': '../android_webview/javatests',
101 'is_test_apk': 1,
[email protected]13485fa2013-03-20 12:06:53102 },
103 'includes': [ '../build/java_apk.gypi' ],
104 },
105 {
[email protected]4b31bbd2012-11-05 11:49:39106 'target_name': 'android_webview_unittests',
107 'type': '<(gtest_target_type)',
108 'dependencies': [
109 '../base/base.gyp:test_support_base',
[email protected]ba42b1e2013-10-19 22:13:17110 '../content/content_shell_and_tests.gyp:test_support_content',
[email protected]17373862012-11-22 16:21:26111 '../net/net.gyp:net_test_support',
[email protected]4b31bbd2012-11-05 11:49:39112 '../testing/android/native_test.gyp:native_test_native_code',
113 '../testing/gmock.gyp:gmock',
114 '../testing/gtest.gyp:gtest',
[email protected]ed8fd9152014-03-13 10:20:37115 '../ui/base/ui_base.gyp:ui_base_jni_headers',
boliuec5d6de2014-12-11 00:54:41116 '../ui/gl/gl.gyp:gl',
[email protected]4b31bbd2012-11-05 11:49:39117 'android_webview_common',
[email protected]ac91eda2014-01-07 23:16:52118 'android_webview_unittests_jni',
[email protected]4b31bbd2012-11-05 11:49:39119 ],
120 'include_dirs': [
121 '..',
122 '../skia/config',
[email protected]17373862012-11-22 16:21:26123 '<(SHARED_INTERMEDIATE_DIR)/android_webview_unittests',
[email protected]4b31bbd2012-11-05 11:49:39124 ],
125 'sources': [
[email protected]41d70bd2014-05-29 19:01:02126 'browser/aw_static_cookie_policy_unittest.cc',
[email protected]11401802013-05-08 16:16:37127 'browser/aw_form_database_service_unittest.cc',
boliufb2874d2014-11-11 22:59:33128 'browser/browser_view_renderer_unittest.cc',
[email protected]17373862012-11-22 16:21:26129 'browser/net/android_stream_reader_url_request_job_unittest.cc',
130 'browser/net/input_stream_reader_unittest.cc',
boliuec5d6de2014-12-11 00:54:41131 'browser/test/fake_window.cc',
132 'browser/test/fake_window.h',
boliufb2874d2014-11-11 22:59:33133 'browser/test/rendering_test.cc',
134 'browser/test/rendering_test.h',
[email protected]4b31bbd2012-11-05 11:49:39135 'lib/main/webview_tests.cc',
[email protected]353539b2014-04-22 22:22:44136 'native/aw_contents_client_bridge_unittest.cc',
[email protected]63ab5052014-08-04 10:44:11137 'native/aw_media_url_interceptor_unittest.cc',
[email protected]17373862012-11-22 16:21:26138 'native/input_stream_unittest.cc',
[email protected]32e2d4aac2014-05-01 17:54:13139 'native/permission/media_access_permission_request_unittest.cc',
140 'native/permission/permission_request_handler_unittest.cc',
[email protected]f791d5d2014-01-17 00:30:32141 'native/state_serializer_unittest.cc',
[email protected]4b31bbd2012-11-05 11:49:39142 ],
143 },
144 {
[email protected]17373862012-11-22 16:21:26145 'target_name': 'android_webview_unittest_java',
146 'type': 'none',
147 'dependencies': [
148 '../base/base.gyp:base_java_test_support',
[email protected]ba42b1e2013-10-19 22:13:17149 '../content/content_shell_and_tests.gyp:content_java_test_support',
[email protected]17373862012-11-22 16:21:26150 'android_webview_java',
151 ],
152 'variables': {
[email protected]17373862012-11-22 16:21:26153 'java_in_dir': '../android_webview/unittestjava',
154 },
155 'includes': [ '../build/java.gypi' ],
156 },
157 {
158 'target_name': 'android_webview_unittests_jni',
159 'type': 'none',
160 'sources': [
161 '../android_webview/unittestjava/src/org/chromium/android_webview/unittest/InputStreamUnittest.java',
[email protected]353539b2014-04-22 22:22:44162 '../android_webview/unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsClientBridge.java',
[email protected]17373862012-11-22 16:21:26163 ],
164 'variables': {
[email protected]521cd942013-03-07 22:34:05165 'jni_gen_package': 'android_webview_unittests',
[email protected]17373862012-11-22 16:21:26166 },
167 'includes': [ '../build/jni_generator.gypi' ],
168 },
169 {
[email protected]4b31bbd2012-11-05 11:49:39170 'target_name': 'android_webview_unittests_apk',
171 'type': 'none',
172 'dependencies': [
[email protected]17373862012-11-22 16:21:26173 'android_webview_unittest_java',
[email protected]4b31bbd2012-11-05 11:49:39174 'android_webview_unittests',
175 ],
176 'variables': {
177 'test_suite_name': 'android_webview_unittests',
[email protected]63ab5052014-08-04 10:44:11178 'additional_input_paths': [
179 '<(PRODUCT_DIR)/android_webview_unittests_apk/assets/asset_file.ogg',
180 ],
[email protected]4b31bbd2012-11-05 11:49:39181 },
[email protected]63ab5052014-08-04 10:44:11182 'copies': [
183 {
184 'destination': '<(PRODUCT_DIR)/android_webview_unittests_apk/assets',
185 'files': [
186 'test/unittest/assets/asset_file.ogg',
187 ],
188 },
189 ],
[email protected]4b31bbd2012-11-05 11:49:39190 'includes': [ '../build/apk_test.gypi' ],
191 },
sievers625a7862014-08-30 02:19:00192 {
193 'target_name': 'libdrawgl',
194 'type': 'shared_library',
195 # Do not depend on any other component here, since this target
196 # builds a separate shared library!
197 'include_dirs': [
198 '..',
199 ],
200 'sources': [
201 '../android_webview/test/shell/src/draw_gl/draw_gl.cc',
202 ],
203 },
hjdaefb2792014-09-09 11:44:02204 {
205 'target_name': 'libstandalonelibwebviewchromium',
206 'includes': [
207 'libwebviewchromium.gypi',
208 ],
209 },
[email protected]4b31bbd2012-11-05 11:49:39210 ],
211}