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_test.html',
31 ['icu_use_data_file_flag==1', {
32 'additional_input_paths': [
33 '<(PRODUCT_DIR)/icudtl.dat',
40 'destination': '<(PRODUCT_DIR)/android_webview_apk/assets',
42 '<(PRODUCT_DIR)/android_webview_assets/webviewchromium.pak',
43 '<(PRODUCT_DIR)/android_webview_assets/en-US.pak',
44 '<(java_in_dir)/assets/asset_file.html',
45 '<(java_in_dir)/assets/asset_icon.png',
46 '<(java_in_dir)/assets/cookie_test.html',
47 '<(java_in_dir)/assets/full_screen_video_test.html',
50 ['icu_use_data_file_flag==1', {
52 '<(PRODUCT_DIR)/icudtl.dat',
58 'includes': [ '../build/java_apk.gypi' ],
61 # android_webview_apk creates a .jar as a side effect. Any java
62 # targets that need that .jar in their classpath should depend on this
63 # target. For more details see the chrome_shell_apk_java target.
64 'target_name': 'android_webview_apk_java',
67 'android_webview_apk',
69 'includes': [ '../build/apk_fake_jar.gypi' ],
72 'target_name': 'android_webview_test_apk',
75 '../base/base.gyp:base_java_test_support',
76 '../content/content_shell_and_tests.gyp:content_java_test_support',
77 '../net/net.gyp:net_java_test_support',
78 'android_webview_apk_java',
81 'apk_name': 'AndroidWebViewTest',
82 'java_in_dir': '../android_webview/javatests',
85 'includes': [ '../build/java_apk.gypi' ],
88 'target_name': 'android_webview_unittests',
89 'type': '<(gtest_target_type)',
91 '../base/base.gyp:test_support_base',
92 '../content/content_shell_and_tests.gyp:test_support_content',
93 '../net/net.gyp:net_test_support',
94 '../testing/android/native_test.gyp:native_test_native_code',
95 '../testing/gmock.gyp:gmock',
96 '../testing/gtest.gyp:gtest',
97 '../ui/base/ui_base.gyp:ui_base_jni_headers',
98 'android_webview_common',
99 'android_webview_unittests_jni',
104 '<(SHARED_INTERMEDIATE_DIR)/android_webview_unittests',
107 'browser/aw_static_cookie_policy_unittest.cc',
108 'browser/aw_form_database_service_unittest.cc',
109 'browser/global_tile_manager_unittest.cc',
110 'browser/net/android_stream_reader_url_request_job_unittest.cc',
111 'browser/net/input_stream_reader_unittest.cc',
112 'lib/main/webview_tests.cc',
113 'native/aw_contents_client_bridge_unittest.cc',
114 'native/aw_media_url_interceptor_unittest.cc',
115 'native/input_stream_unittest.cc',
116 'native/permission/media_access_permission_request_unittest.cc',
117 'native/permission/permission_request_handler_unittest.cc',
118 'native/state_serializer_unittest.cc',
122 'target_name': 'android_webview_unittest_java',
125 '../base/base.gyp:base_java_test_support',
126 '../content/content_shell_and_tests.gyp:content_java_test_support',
127 'android_webview_java',
130 'java_in_dir': '../android_webview/unittestjava',
132 'includes': [ '../build/java.gypi' ],
135 'target_name': 'android_webview_unittests_jni',
138 '../android_webview/unittestjava/src/org/chromium/android_webview/unittest/InputStreamUnittest.java',
139 '../android_webview/unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsClientBridge.java',
142 'jni_gen_package': 'android_webview_unittests',
144 'includes': [ '../build/jni_generator.gypi' ],
147 'target_name': 'android_webview_unittests_apk',
150 'android_webview_unittest_java',
151 'android_webview_unittests',
154 'test_suite_name': 'android_webview_unittests',
155 'additional_input_paths': [
156 '<(PRODUCT_DIR)/android_webview_unittests_apk/assets/asset_file.ogg',
161 'destination': '<(PRODUCT_DIR)/android_webview_unittests_apk/assets',
163 'test/unittest/assets/asset_file.ogg',
167 'includes': [ '../build/apk_test.gypi' ],
170 'target_name': 'libdrawgl',
171 'type': 'shared_library',
172 # Do not depend on any other component here, since this target
173 # builds a separate shared library!
178 '../android_webview/test/shell/src/draw_gl/draw_gl.cc',
182 'target_name': 'libstandalonelibwebviewchromium',
184 'libwebviewchromium.gypi',