blob: 09ebb89e6cc954e1b4710035ca6d9b48c96eb58f [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]8c56afd2013-03-25 15:37:4517 'native_libs_paths': ['<(SHARED_LIB_DIR)/libwebviewchromium.so'],
[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 ],
47 'all_dependent_settings': {
48 'variables': {
49 'input_jars_paths': ['>(apk_output_jar_path)'],
50 },
51 },
52 'actions': [
53 {
54 'action_name': 'fake_generate_jar',
55 'inputs': [],
56 'outputs': ['>(apk_output_jar_path)'],
57 'action': [],
58 },
59 ],
60 },
61 {
62 'target_name': 'android_webview_test_apk',
63 'type': 'none',
64 'dependencies': [
65 '../base/base.gyp:base_java_test_support',
66 '../content/content.gyp:content_java_test_support',
67 '../net/net.gyp:net_java_test_support',
68 'android_webview_apk_java',
[email protected]13485fa2013-03-20 12:06:5369 ],
70 'variables': {
[email protected]8c56afd2013-03-25 15:37:4571 'apk_name': 'AndroidWebViewTest',
72 'java_in_dir': '../android_webview/javatests',
73 'is_test_apk': 1,
[email protected]13485fa2013-03-20 12:06:5374 },
75 'includes': [ '../build/java_apk.gypi' ],
76 },
77 {
[email protected]4b31bbd2012-11-05 11:49:3978 'target_name': 'android_webview_unittests',
79 'type': '<(gtest_target_type)',
80 'dependencies': [
81 '../base/base.gyp:test_support_base',
[email protected]17373862012-11-22 16:21:2682 '../net/net.gyp:net_test_support',
[email protected]4b31bbd2012-11-05 11:49:3983 '../testing/android/native_test.gyp:native_test_native_code',
84 '../testing/gmock.gyp:gmock',
85 '../testing/gtest.gyp:gtest',
86 'android_webview_common',
87 ],
88 'include_dirs': [
89 '..',
90 '../skia/config',
[email protected]17373862012-11-22 16:21:2691 '<(SHARED_INTERMEDIATE_DIR)/android_webview_unittests',
[email protected]4b31bbd2012-11-05 11:49:3992 ],
93 'sources': [
[email protected]17373862012-11-22 16:21:2694 'browser/net/android_stream_reader_url_request_job_unittest.cc',
95 'browser/net/input_stream_reader_unittest.cc',
[email protected]4b31bbd2012-11-05 11:49:3996 'lib/main/webview_tests.cc',
[email protected]17373862012-11-22 16:21:2697 'native/input_stream_unittest.cc',
[email protected]1f0d0412012-11-21 12:34:0998 'native/state_serializer_unittests.cc',
[email protected]4b31bbd2012-11-05 11:49:3999 ],
100 },
101 {
[email protected]17373862012-11-22 16:21:26102 'target_name': 'android_webview_unittest_java',
103 'type': 'none',
104 'dependencies': [
105 '../base/base.gyp:base_java_test_support',
106 '../content/content.gyp:content_java_test_support',
107 'android_webview_java',
108 ],
109 'variables': {
[email protected]17373862012-11-22 16:21:26110 'java_in_dir': '../android_webview/unittestjava',
111 },
112 'includes': [ '../build/java.gypi' ],
113 },
114 {
115 'target_name': 'android_webview_unittests_jni',
116 'type': 'none',
117 'sources': [
118 '../android_webview/unittestjava/src/org/chromium/android_webview/unittest/InputStreamUnittest.java',
119 ],
120 'variables': {
[email protected]521cd942013-03-07 22:34:05121 'jni_gen_package': 'android_webview_unittests',
[email protected]17373862012-11-22 16:21:26122 },
123 'includes': [ '../build/jni_generator.gypi' ],
124 },
125 {
[email protected]4b31bbd2012-11-05 11:49:39126 'target_name': 'android_webview_unittests_apk',
127 'type': 'none',
128 'dependencies': [
[email protected]17373862012-11-22 16:21:26129 'android_webview_unittest_java',
[email protected]4b31bbd2012-11-05 11:49:39130 'android_webview_unittests',
[email protected]17373862012-11-22 16:21:26131 'android_webview_unittests_jni',
[email protected]4b31bbd2012-11-05 11:49:39132 ],
133 'variables': {
134 'test_suite_name': 'android_webview_unittests',
135 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)android_webview_unittests<(SHARED_LIB_SUFFIX)',
[email protected]4b31bbd2012-11-05 11:49:39136 },
137 'includes': [ '../build/apk_test.gypi' ],
138 },
139 ],
140}