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.
7 'target_name': 'android_webview_apk',
10 'libstandalonelibwebviewchromium',
11 'android_webview_java',
12 'android_webview_pak',
16 'apk_name': 'AndroidWebView',
17 'java_in_dir': 'test/shell',
18 'native_lib_target': 'libstandalonelibwebviewchromium',
19 'resource_dir': 'test/shell/res',
20 'extensions_to_not_compress': 'pak',
21 'extra_native_libs': ['<(SHARED_LIB_DIR)/libdrawgl.>(android_product_extension)'],
22 'additional_input_paths': [
23 '<(PRODUCT_DIR)/android_webview_assets/webviewchromium.pak',
24 '<(PRODUCT_DIR)/android_webview_assets/en-US.pak',
25 '<(PRODUCT_DIR)/android_webview_apk/assets/asset_file.html',
26 '<(PRODUCT_DIR)/android_webview_apk/assets/cookie_test.html',
27 '<(PRODUCT_DIR)/android_webview_apk/assets/asset_icon.png',
28 '<(PRODUCT_DIR)/android_webview_apk/assets/full_screen_video.js',
29 '<(PRODUCT_DIR)/android_webview_apk/assets/full_screen_video_test.html',
30 '<(PRODUCT_DIR)/android_webview_apk/assets/full_screen_video_inside_div_test.html',
31 '<(PRODUCT_DIR)/android_webview_apk/assets/video.mp4',
34 ['icu_use_data_file_flag==1', {
35 'additional_input_paths': [
36 '<(PRODUCT_DIR)/icudtl.dat',
39 ['v8_use_external_startup_data==1', {
40 'additional_input_paths': [
41 '<(PRODUCT_DIR)/natives_blob.bin',
42 '<(PRODUCT_DIR)/snapshot_blob.bin',
49 'destination': '<(PRODUCT_DIR)/android_webview_apk/assets',
51 '<(PRODUCT_DIR)/android_webview_assets/webviewchromium.pak',
52 '<(PRODUCT_DIR)/android_webview_assets/en-US.pak',
53 '<(java_in_dir)/assets/asset_file.html',
54 '<(java_in_dir)/assets/asset_icon.png',
55 '<(java_in_dir)/assets/cookie_test.html',
56 '<(java_in_dir)/assets/full_screen_video.js',
57 '<(java_in_dir)/assets/full_screen_video_test.html',
58 '<(java_in_dir)/assets/full_screen_video_inside_div_test.html',
59 '<(java_in_dir)/assets/video.mp4',
62 ['icu_use_data_file_flag==1', {
64 '<(PRODUCT_DIR)/icudtl.dat',
67 ['v8_use_external_startup_data==1', {
69 '<(PRODUCT_DIR)/natives_blob.bin',
70 '<(PRODUCT_DIR)/snapshot_blob.bin',
76 'includes': [ '../build/java_apk.gypi' ],
79 # 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
81 # target. For more details see the chrome_shell_apk_java target.
82 'target_name': 'android_webview_apk_java',
85 'android_webview_apk',
87 'includes': [ '../build/apk_fake_jar.gypi' ],
90 'target_name': 'android_webview_test_apk',
93 '../base/base.gyp:base_java_test_support',
94 '../content/content_shell_and_tests.gyp:content_java_test_support',
95 '../net/net.gyp:net_java_test_support',
96 'android_webview_apk_java',
99 'apk_name': 'AndroidWebViewTest',
100 'java_in_dir': '../android_webview/javatests',
103 'includes': [ '../build/java_apk.gypi' ],
106 'target_name': 'android_webview_unittests',
107 'type': '<(gtest_target_type)',
109 '../base/base.gyp:test_support_base',
110 '../content/content_shell_and_tests.gyp:test_support_content',
111 '../net/net.gyp:net_test_support',
112 '../testing/android/native_test.gyp:native_test_native_code',
113 '../testing/gmock.gyp:gmock',
114 '../testing/gtest.gyp:gtest',
115 '../ui/base/ui_base.gyp:ui_base_jni_headers',
116 'android_webview_common',
117 'android_webview_unittests_jni',
122 '<(SHARED_INTERMEDIATE_DIR)/android_webview_unittests',
125 'browser/aw_static_cookie_policy_unittest.cc',
126 'browser/aw_form_database_service_unittest.cc',
127 'browser/browser_view_renderer_unittest.cc',
128 'browser/net/android_stream_reader_url_request_job_unittest.cc',
129 'browser/net/input_stream_reader_unittest.cc',
130 'browser/test/rendering_test.cc',
131 'browser/test/rendering_test.h',
132 'lib/main/webview_tests.cc',
133 'native/aw_contents_client_bridge_unittest.cc',
134 'native/aw_media_url_interceptor_unittest.cc',
135 'native/input_stream_unittest.cc',
136 'native/permission/media_access_permission_request_unittest.cc',
137 'native/permission/permission_request_handler_unittest.cc',
138 'native/state_serializer_unittest.cc',
142 'target_name': 'android_webview_unittest_java',
145 '../base/base.gyp:base_java_test_support',
146 '../content/content_shell_and_tests.gyp:content_java_test_support',
147 'android_webview_java',
150 'java_in_dir': '../android_webview/unittestjava',
152 'includes': [ '../build/java.gypi' ],
155 'target_name': 'android_webview_unittests_jni',
158 '../android_webview/unittestjava/src/org/chromium/android_webview/unittest/InputStreamUnittest.java',
159 '../android_webview/unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsClientBridge.java',
162 'jni_gen_package': 'android_webview_unittests',
164 'includes': [ '../build/jni_generator.gypi' ],
167 'target_name': 'android_webview_unittests_apk',
170 'android_webview_unittest_java',
171 'android_webview_unittests',
174 'test_suite_name': 'android_webview_unittests',
175 'additional_input_paths': [
176 '<(PRODUCT_DIR)/android_webview_unittests_apk/assets/asset_file.ogg',
181 'destination': '<(PRODUCT_DIR)/android_webview_unittests_apk/assets',
183 'test/unittest/assets/asset_file.ogg',
187 'includes': [ '../build/apk_test.gypi' ],
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!
198 '../android_webview/test/shell/src/draw_gl/draw_gl.cc',
202 'target_name': 'libstandalonelibwebviewchromium',
204 'libwebviewchromium.gypi',