blob: ca3452c19e899c3a5d61a955a65fd137b3769bfc [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': [
[email protected]4b31bbd2012-11-05 11:49:3910 'libwebviewchromium',
[email protected]8c56afd2013-03-25 15:37:4511 'android_webview_java',
12 'android_webview_pak',
[email protected]4b31bbd2012-11-05 11:49:3913 ],
14 'variables': {
[email protected]8c56afd2013-03-25 15:37:4515 'apk_name': 'AndroidWebView',
[email protected]bd6ab3db2013-03-26 17:35:2116 'java_in_dir': 'test/shell',
[email protected]7c5e1dd2013-10-23 18:53:5217 'native_lib_target': 'libstandalonelibwebviewchromium',
[email protected]bd6ab3db2013-03-26 17:35:2118 'resource_dir': 'test/shell/res',
[email protected]37434b42013-02-20 22:39:1719 'additional_input_paths': [
[email protected]8c56afd2013-03-25 15:37:4520 '<(PRODUCT_DIR)/android_webview_apk/assets/webviewchromium.pak',
21 '<(PRODUCT_DIR)/android_webview_apk/assets/asset_file.html',
22 '<(PRODUCT_DIR)/android_webview_apk/assets/asset_icon.png',
23 '<(PRODUCT_DIR)/android_webview_apk/assets/full_screen_video_test.html',
[email protected]37434b42013-02-20 22:39:1724 ],
[email protected]4b31bbd2012-11-05 11:49:3925 },
26 'copies': [
27 {
[email protected]8c56afd2013-03-25 15:37:4528 'destination': '<(PRODUCT_DIR)/android_webview_apk/assets',
[email protected]68f85132013-02-06 19:09:0429 'files': [
30 '<(java_in_dir)/assets/asset_file.html',
31 '<(java_in_dir)/assets/asset_icon.png',
[email protected]c4f3aa22013-03-15 11:39:2732 '<(java_in_dir)/assets/full_screen_video_test.html',
[email protected]68f85132013-02-06 19:09:0433 ],
[email protected]4b31bbd2012-11-05 11:49:3934 },
35 ],
36 'includes': [ '../build/java_apk.gypi' ],
37 },
38 {
[email protected]8c56afd2013-03-25 15:37:4539 # android_webview_apk creates a .jar as a side effect. Any java
40 # targets that need that .jar in their classpath should depend on this
41 # target. For more details see the chromium_testshell_java target.
42 'target_name': 'android_webview_apk_java',
[email protected]13485fa2013-03-20 12:06:5343 'type': 'none',
44 'dependencies': [
[email protected]8c56afd2013-03-25 15:37:4545 'android_webview_apk',
46 ],
[email protected]b13f73e2013-03-27 23:31:2747 'includes': [ '../build/apk_fake_jar.gypi' ],
[email protected]8c56afd2013-03-25 15:37:4548 },
49 {
50 'target_name': 'android_webview_test_apk',
51 'type': 'none',
52 'dependencies': [
53 '../base/base.gyp:base_java_test_support',
[email protected]ba42b1e2013-10-19 22:13:1754 '../content/content_shell_and_tests.gyp:content_java_test_support',
[email protected]8c56afd2013-03-25 15:37:4555 '../net/net.gyp:net_java_test_support',
56 'android_webview_apk_java',
[email protected]13485fa2013-03-20 12:06:5357 ],
58 'variables': {
[email protected]8c56afd2013-03-25 15:37:4559 'apk_name': 'AndroidWebViewTest',
60 'java_in_dir': '../android_webview/javatests',
61 'is_test_apk': 1,
[email protected]13485fa2013-03-20 12:06:5362 },
63 'includes': [ '../build/java_apk.gypi' ],
64 },
65 {
[email protected]4b31bbd2012-11-05 11:49:3966 'target_name': 'android_webview_unittests',
67 'type': '<(gtest_target_type)',
68 'dependencies': [
69 '../base/base.gyp:test_support_base',
[email protected]ba42b1e2013-10-19 22:13:1770 '../content/content_shell_and_tests.gyp:test_support_content',
[email protected]17373862012-11-22 16:21:2671 '../net/net.gyp:net_test_support',
[email protected]4b31bbd2012-11-05 11:49:3972 '../testing/android/native_test.gyp:native_test_native_code',
73 '../testing/gmock.gyp:gmock',
74 '../testing/gtest.gyp:gtest',
[email protected]f450287d2013-11-15 17:52:5475 '../ui/ui.gyp:ui_base_jni_headers',
[email protected]4b31bbd2012-11-05 11:49:3976 'android_webview_common',
[email protected]ac91eda2014-01-07 23:16:5277 'android_webview_unittests_jni',
[email protected]4b31bbd2012-11-05 11:49:3978 ],
79 'include_dirs': [
80 '..',
81 '../skia/config',
[email protected]17373862012-11-22 16:21:2682 '<(SHARED_INTERMEDIATE_DIR)/android_webview_unittests',
[email protected]4b31bbd2012-11-05 11:49:3983 ],
84 'sources': [
[email protected]11401802013-05-08 16:16:3785 'browser/aw_form_database_service_unittest.cc',
[email protected]17373862012-11-22 16:21:2686 'browser/net/android_stream_reader_url_request_job_unittest.cc',
87 'browser/net/input_stream_reader_unittest.cc',
[email protected]4b31bbd2012-11-05 11:49:3988 'lib/main/webview_tests.cc',
[email protected]17373862012-11-22 16:21:2689 'native/input_stream_unittest.cc',
[email protected]1f0d0412012-11-21 12:34:0990 'native/state_serializer_unittests.cc',
[email protected]4b31bbd2012-11-05 11:49:3991 ],
92 },
93 {
[email protected]17373862012-11-22 16:21:2694 'target_name': 'android_webview_unittest_java',
95 'type': 'none',
96 'dependencies': [
97 '../base/base.gyp:base_java_test_support',
[email protected]ba42b1e2013-10-19 22:13:1798 '../content/content_shell_and_tests.gyp:content_java_test_support',
[email protected]17373862012-11-22 16:21:2699 'android_webview_java',
100 ],
101 'variables': {
[email protected]17373862012-11-22 16:21:26102 'java_in_dir': '../android_webview/unittestjava',
103 },
104 'includes': [ '../build/java.gypi' ],
105 },
106 {
107 'target_name': 'android_webview_unittests_jni',
108 'type': 'none',
109 'sources': [
110 '../android_webview/unittestjava/src/org/chromium/android_webview/unittest/InputStreamUnittest.java',
111 ],
112 'variables': {
[email protected]521cd942013-03-07 22:34:05113 'jni_gen_package': 'android_webview_unittests',
[email protected]17373862012-11-22 16:21:26114 },
115 'includes': [ '../build/jni_generator.gypi' ],
116 },
117 {
[email protected]4b31bbd2012-11-05 11:49:39118 'target_name': 'android_webview_unittests_apk',
119 'type': 'none',
120 'dependencies': [
[email protected]17373862012-11-22 16:21:26121 'android_webview_unittest_java',
[email protected]4b31bbd2012-11-05 11:49:39122 'android_webview_unittests',
123 ],
124 'variables': {
125 'test_suite_name': 'android_webview_unittests',
126 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)android_webview_unittests<(SHARED_LIB_SUFFIX)',
[email protected]4b31bbd2012-11-05 11:49:39127 },
128 'includes': [ '../build/apk_test.gypi' ],
129 },
130 ],
131}