[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 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. |
| 4 | { |
| 5 | 'targets': [ |
| 6 | { |
[email protected] | 8c56afd | 2013-03-25 15:37:45 | [diff] [blame] | 7 | 'target_name': 'android_webview_apk', |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 8 | 'type': 'none', |
| 9 | 'dependencies': [ |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 10 | 'libwebviewchromium', |
[email protected] | 8c56afd | 2013-03-25 15:37:45 | [diff] [blame] | 11 | 'android_webview_java', |
| 12 | 'android_webview_pak', |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 13 | ], |
| 14 | 'variables': { |
[email protected] | 8c56afd | 2013-03-25 15:37:45 | [diff] [blame] | 15 | 'apk_name': 'AndroidWebView', |
[email protected] | bd6ab3db | 2013-03-26 17:35:21 | [diff] [blame^] | 16 | 'java_in_dir': 'test/shell', |
[email protected] | 8c56afd | 2013-03-25 15:37:45 | [diff] [blame] | 17 | 'native_libs_paths': ['<(SHARED_LIB_DIR)/libwebviewchromium.so'], |
[email protected] | bd6ab3db | 2013-03-26 17:35:21 | [diff] [blame^] | 18 | 'resource_dir': 'test/shell/res', |
[email protected] | 37434b4 | 2013-02-20 22:39:17 | [diff] [blame] | 19 | 'additional_input_paths': [ |
[email protected] | 8c56afd | 2013-03-25 15:37:45 | [diff] [blame] | 20 | '<(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] | 37434b4 | 2013-02-20 22:39:17 | [diff] [blame] | 24 | ], |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 25 | }, |
| 26 | 'copies': [ |
| 27 | { |
[email protected] | 8c56afd | 2013-03-25 15:37:45 | [diff] [blame] | 28 | 'destination': '<(PRODUCT_DIR)/android_webview_apk/assets', |
[email protected] | 68f8513 | 2013-02-06 19:09:04 | [diff] [blame] | 29 | 'files': [ |
| 30 | '<(java_in_dir)/assets/asset_file.html', |
| 31 | '<(java_in_dir)/assets/asset_icon.png', |
[email protected] | c4f3aa2 | 2013-03-15 11:39:27 | [diff] [blame] | 32 | '<(java_in_dir)/assets/full_screen_video_test.html', |
[email protected] | 68f8513 | 2013-02-06 19:09:04 | [diff] [blame] | 33 | ], |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 34 | }, |
| 35 | ], |
| 36 | 'includes': [ '../build/java_apk.gypi' ], |
| 37 | }, |
| 38 | { |
[email protected] | 8c56afd | 2013-03-25 15:37:45 | [diff] [blame] | 39 | # 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] | 13485fa | 2013-03-20 12:06:53 | [diff] [blame] | 43 | 'type': 'none', |
| 44 | 'dependencies': [ |
[email protected] | 8c56afd | 2013-03-25 15:37:45 | [diff] [blame] | 45 | '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] | 13485fa | 2013-03-20 12:06:53 | [diff] [blame] | 69 | ], |
| 70 | 'variables': { |
[email protected] | 8c56afd | 2013-03-25 15:37:45 | [diff] [blame] | 71 | 'apk_name': 'AndroidWebViewTest', |
| 72 | 'java_in_dir': '../android_webview/javatests', |
| 73 | 'is_test_apk': 1, |
[email protected] | 13485fa | 2013-03-20 12:06:53 | [diff] [blame] | 74 | }, |
| 75 | 'includes': [ '../build/java_apk.gypi' ], |
| 76 | }, |
| 77 | { |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 78 | 'target_name': 'android_webview_unittests', |
| 79 | 'type': '<(gtest_target_type)', |
| 80 | 'dependencies': [ |
| 81 | '../base/base.gyp:test_support_base', |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 82 | '../net/net.gyp:net_test_support', |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 83 | '../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] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 91 | '<(SHARED_INTERMEDIATE_DIR)/android_webview_unittests', |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 92 | ], |
| 93 | 'sources': [ |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 94 | 'browser/net/android_stream_reader_url_request_job_unittest.cc', |
| 95 | 'browser/net/input_stream_reader_unittest.cc', |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 96 | 'lib/main/webview_tests.cc', |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 97 | 'native/input_stream_unittest.cc', |
[email protected] | 1f0d041 | 2012-11-21 12:34:09 | [diff] [blame] | 98 | 'native/state_serializer_unittests.cc', |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 99 | ], |
| 100 | }, |
| 101 | { |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 102 | '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] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 110 | '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] | 521cd94 | 2013-03-07 22:34:05 | [diff] [blame] | 121 | 'jni_gen_package': 'android_webview_unittests', |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 122 | }, |
| 123 | 'includes': [ '../build/jni_generator.gypi' ], |
| 124 | }, |
| 125 | { |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 126 | 'target_name': 'android_webview_unittests_apk', |
| 127 | 'type': 'none', |
| 128 | 'dependencies': [ |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 129 | 'android_webview_unittest_java', |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 130 | 'android_webview_unittests', |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 131 | 'android_webview_unittests_jni', |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 132 | ], |
| 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] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 136 | }, |
| 137 | 'includes': [ '../build/apk_test.gypi' ], |
| 138 | }, |
| 139 | ], |
| 140 | } |