[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] | 7c5e1dd | 2013-10-23 18:53:52 | [diff] [blame] | 17 | 'native_lib_target': 'libstandalonelibwebviewchromium', |
[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 | ], |
[email protected] | b13f73e | 2013-03-27 23:31:27 | [diff] [blame] | 47 | 'includes': [ '../build/apk_fake_jar.gypi' ], |
[email protected] | 8c56afd | 2013-03-25 15:37:45 | [diff] [blame] | 48 | }, |
| 49 | { |
| 50 | 'target_name': 'android_webview_test_apk', |
| 51 | 'type': 'none', |
| 52 | 'dependencies': [ |
| 53 | '../base/base.gyp:base_java_test_support', |
[email protected] | ba42b1e | 2013-10-19 22:13:17 | [diff] [blame] | 54 | '../content/content_shell_and_tests.gyp:content_java_test_support', |
[email protected] | 8c56afd | 2013-03-25 15:37:45 | [diff] [blame] | 55 | '../net/net.gyp:net_java_test_support', |
| 56 | 'android_webview_apk_java', |
[email protected] | 13485fa | 2013-03-20 12:06:53 | [diff] [blame] | 57 | ], |
| 58 | 'variables': { |
[email protected] | 8c56afd | 2013-03-25 15:37:45 | [diff] [blame] | 59 | 'apk_name': 'AndroidWebViewTest', |
| 60 | 'java_in_dir': '../android_webview/javatests', |
| 61 | 'is_test_apk': 1, |
[email protected] | 13485fa | 2013-03-20 12:06:53 | [diff] [blame] | 62 | }, |
| 63 | 'includes': [ '../build/java_apk.gypi' ], |
| 64 | }, |
| 65 | { |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 66 | 'target_name': 'android_webview_unittests', |
| 67 | 'type': '<(gtest_target_type)', |
| 68 | 'dependencies': [ |
| 69 | '../base/base.gyp:test_support_base', |
[email protected] | ba42b1e | 2013-10-19 22:13:17 | [diff] [blame] | 70 | '../content/content_shell_and_tests.gyp:test_support_content', |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 71 | '../net/net.gyp:net_test_support', |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 72 | '../testing/android/native_test.gyp:native_test_native_code', |
| 73 | '../testing/gmock.gyp:gmock', |
| 74 | '../testing/gtest.gyp:gtest', |
[email protected] | f450287d | 2013-11-15 17:52:54 | [diff] [blame] | 75 | '../ui/ui.gyp:ui_base_jni_headers', |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 76 | 'android_webview_common', |
[email protected] | ac91eda | 2014-01-07 23:16:52 | [diff] [blame^] | 77 | 'android_webview_unittests_jni', |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 78 | ], |
| 79 | 'include_dirs': [ |
| 80 | '..', |
| 81 | '../skia/config', |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 82 | '<(SHARED_INTERMEDIATE_DIR)/android_webview_unittests', |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 83 | ], |
| 84 | 'sources': [ |
[email protected] | 1140180 | 2013-05-08 16:16:37 | [diff] [blame] | 85 | 'browser/aw_form_database_service_unittest.cc', |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 86 | 'browser/net/android_stream_reader_url_request_job_unittest.cc', |
| 87 | 'browser/net/input_stream_reader_unittest.cc', |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 88 | 'lib/main/webview_tests.cc', |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 89 | 'native/input_stream_unittest.cc', |
[email protected] | 1f0d041 | 2012-11-21 12:34:09 | [diff] [blame] | 90 | 'native/state_serializer_unittests.cc', |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 91 | ], |
| 92 | }, |
| 93 | { |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 94 | 'target_name': 'android_webview_unittest_java', |
| 95 | 'type': 'none', |
| 96 | 'dependencies': [ |
| 97 | '../base/base.gyp:base_java_test_support', |
[email protected] | ba42b1e | 2013-10-19 22:13:17 | [diff] [blame] | 98 | '../content/content_shell_and_tests.gyp:content_java_test_support', |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 99 | 'android_webview_java', |
| 100 | ], |
| 101 | 'variables': { |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 102 | '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] | 521cd94 | 2013-03-07 22:34:05 | [diff] [blame] | 113 | 'jni_gen_package': 'android_webview_unittests', |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 114 | }, |
| 115 | 'includes': [ '../build/jni_generator.gypi' ], |
| 116 | }, |
| 117 | { |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 118 | 'target_name': 'android_webview_unittests_apk', |
| 119 | 'type': 'none', |
| 120 | 'dependencies': [ |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 121 | 'android_webview_unittest_java', |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 122 | '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] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 127 | }, |
| 128 | 'includes': [ '../build/apk_test.gypi' ], |
| 129 | }, |
| 130 | ], |
| 131 | } |