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,dat,bin',
21 'extra_native_libs': ['<(SHARED_LIB_DIR)/libdrawgl.>(android_product_extension)'],
22 'additional_input_paths': [
23 '<(PRODUCT_DIR)/android_webview_apk/assets/webviewchromium.pak',
24 '<(PRODUCT_DIR)/android_webview_apk/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 '../ui/gl/gl.gyp:gl',
117 'android_webview_common',
118 'android_webview_unittests_jni',
123 '<(SHARED_INTERMEDIATE_DIR)/android_webview_unittests',
126 'browser/aw_static_cookie_policy_unittest.cc',
127 'browser/aw_form_database_service_unittest.cc',
128 'browser/browser_view_renderer_unittest.cc',
129 'browser/net/android_stream_reader_url_request_job_unittest.cc',
130 'browser/net/input_stream_reader_unittest.cc',
131 'browser/test/fake_window.cc',
132 'browser/test/fake_window.h',
133 'browser/test/rendering_test.cc',
134 'browser/test/rendering_test.h',
135 'lib/main/webview_tests.cc',
136 'native/aw_contents_client_bridge_unittest.cc',
137 'native/aw_media_url_interceptor_unittest.cc',
138 'native/input_stream_unittest.cc',
139 'native/permission/media_access_permission_request_unittest.cc',
140 'native/permission/permission_request_handler_unittest.cc',
141 'native/state_serializer_unittest.cc',
145 'target_name': 'android_webview_unittest_java',
148 '../base/base.gyp:base_java_test_support',
149 '../content/content_shell_and_tests.gyp:content_java_test_support',
150 'android_webview_java',
153 'java_in_dir': '../android_webview/unittestjava',
155 'includes': [ '../build/java.gypi' ],
158 'target_name': 'android_webview_unittests_jni',
161 '../android_webview/unittestjava/src/org/chromium/android_webview/unittest/InputStreamUnittest.java',
162 '../android_webview/unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsClientBridge.java',
165 'jni_gen_package': 'android_webview_unittests',
167 'includes': [ '../build/jni_generator.gypi' ],
170 'target_name': 'android_webview_unittests_apk',
173 'android_webview_unittest_java',
174 'android_webview_unittests',
177 'test_suite_name': 'android_webview_unittests',
178 'additional_input_paths': [
179 '<(PRODUCT_DIR)/android_webview_unittests_apk/assets/asset_file.ogg',
184 'destination': '<(PRODUCT_DIR)/android_webview_unittests_apk/assets',
186 'test/unittest/assets/asset_file.ogg',
190 'includes': [ '../build/apk_test.gypi' ],
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!
201 '../android_webview/test/shell/src/draw_gl/draw_gl.cc',
205 'target_name': 'libstandalonelibwebviewchromium',
207 'libwebviewchromium.gypi',