[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': [ |
hjd | aefb279 | 2014-09-09 11:44:02 | [diff] [blame] | 10 | 'libstandalonelibwebviewchromium', |
[email protected] | 8c56afd | 2013-03-25 15:37:45 | [diff] [blame] | 11 | 'android_webview_java', |
| 12 | 'android_webview_pak', |
sievers | 625a786 | 2014-08-30 02:19:00 | [diff] [blame] | 13 | 'libdrawgl', |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 14 | ], |
| 15 | 'variables': { |
[email protected] | 8c56afd | 2013-03-25 15:37:45 | [diff] [blame] | 16 | 'apk_name': 'AndroidWebView', |
[email protected] | bd6ab3db | 2013-03-26 17:35:21 | [diff] [blame] | 17 | 'java_in_dir': 'test/shell', |
[email protected] | 7c5e1dd | 2013-10-23 18:53:52 | [diff] [blame] | 18 | 'native_lib_target': 'libstandalonelibwebviewchromium', |
[email protected] | bd6ab3db | 2013-03-26 17:35:21 | [diff] [blame] | 19 | 'resource_dir': 'test/shell/res', |
mkosiba | 3c766cc | 2015-01-09 13:10:22 | [diff] [blame^] | 20 | 'extensions_to_not_compress': 'pak,dat,bin', |
sievers | 625a786 | 2014-08-30 02:19:00 | [diff] [blame] | 21 | 'extra_native_libs': ['<(SHARED_LIB_DIR)/libdrawgl.>(android_product_extension)'], |
[email protected] | 37434b4 | 2013-02-20 22:39:17 | [diff] [blame] | 22 | 'additional_input_paths': [ |
mkosiba | 3c766cc | 2015-01-09 13:10:22 | [diff] [blame^] | 23 | '<(PRODUCT_DIR)/android_webview_apk/assets/webviewchromium.pak', |
| 24 | '<(PRODUCT_DIR)/android_webview_apk/assets/en-US.pak', |
[email protected] | 8c56afd | 2013-03-25 15:37:45 | [diff] [blame] | 25 | '<(PRODUCT_DIR)/android_webview_apk/assets/asset_file.html', |
[email protected] | 0a20df0 | 2014-06-30 16:40:07 | [diff] [blame] | 26 | '<(PRODUCT_DIR)/android_webview_apk/assets/cookie_test.html', |
[email protected] | 8c56afd | 2013-03-25 15:37:45 | [diff] [blame] | 27 | '<(PRODUCT_DIR)/android_webview_apk/assets/asset_icon.png', |
igsolla | 2d50461c7 | 2014-10-17 15:11:25 | [diff] [blame] | 28 | '<(PRODUCT_DIR)/android_webview_apk/assets/full_screen_video.js', |
[email protected] | 8c56afd | 2013-03-25 15:37:45 | [diff] [blame] | 29 | '<(PRODUCT_DIR)/android_webview_apk/assets/full_screen_video_test.html', |
igsolla | 2d50461c7 | 2014-10-17 15:11:25 | [diff] [blame] | 30 | '<(PRODUCT_DIR)/android_webview_apk/assets/full_screen_video_inside_div_test.html', |
igsolla | c698e07 | 2014-10-30 16:52:15 | [diff] [blame] | 31 | '<(PRODUCT_DIR)/android_webview_apk/assets/video.mp4', |
[email protected] | 37434b4 | 2013-02-20 22:39:17 | [diff] [blame] | 32 | ], |
[email protected] | c8e8781e | 2014-03-08 12:02:26 | [diff] [blame] | 33 | 'conditions': [ |
| 34 | ['icu_use_data_file_flag==1', { |
| 35 | 'additional_input_paths': [ |
| 36 | '<(PRODUCT_DIR)/icudtl.dat', |
| 37 | ], |
| 38 | }], |
baixo | 3a3c88a | 2014-10-28 11:52:21 | [diff] [blame] | 39 | ['v8_use_external_startup_data==1', { |
| 40 | 'additional_input_paths': [ |
| 41 | '<(PRODUCT_DIR)/natives_blob.bin', |
| 42 | '<(PRODUCT_DIR)/snapshot_blob.bin', |
| 43 | ], |
| 44 | }], |
[email protected] | c8e8781e | 2014-03-08 12:02:26 | [diff] [blame] | 45 | ], |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 46 | }, |
| 47 | 'copies': [ |
| 48 | { |
[email protected] | 8c56afd | 2013-03-25 15:37:45 | [diff] [blame] | 49 | 'destination': '<(PRODUCT_DIR)/android_webview_apk/assets', |
[email protected] | 68f8513 | 2013-02-06 19:09:04 | [diff] [blame] | 50 | 'files': [ |
hjd | aefb279 | 2014-09-09 11:44:02 | [diff] [blame] | 51 | '<(PRODUCT_DIR)/android_webview_assets/webviewchromium.pak', |
| 52 | '<(PRODUCT_DIR)/android_webview_assets/en-US.pak', |
[email protected] | 68f8513 | 2013-02-06 19:09:04 | [diff] [blame] | 53 | '<(java_in_dir)/assets/asset_file.html', |
| 54 | '<(java_in_dir)/assets/asset_icon.png', |
[email protected] | 0a20df0 | 2014-06-30 16:40:07 | [diff] [blame] | 55 | '<(java_in_dir)/assets/cookie_test.html', |
igsolla | 2d50461c7 | 2014-10-17 15:11:25 | [diff] [blame] | 56 | '<(java_in_dir)/assets/full_screen_video.js', |
[email protected] | c4f3aa2 | 2013-03-15 11:39:27 | [diff] [blame] | 57 | '<(java_in_dir)/assets/full_screen_video_test.html', |
igsolla | 2d50461c7 | 2014-10-17 15:11:25 | [diff] [blame] | 58 | '<(java_in_dir)/assets/full_screen_video_inside_div_test.html', |
igsolla | c698e07 | 2014-10-30 16:52:15 | [diff] [blame] | 59 | '<(java_in_dir)/assets/video.mp4', |
[email protected] | 68f8513 | 2013-02-06 19:09:04 | [diff] [blame] | 60 | ], |
mkosiba | 3c766cc | 2015-01-09 13:10:22 | [diff] [blame^] | 61 | 'conditions': [ |
[email protected] | c8e8781e | 2014-03-08 12:02:26 | [diff] [blame] | 62 | ['icu_use_data_file_flag==1', { |
| 63 | 'files': [ |
| 64 | '<(PRODUCT_DIR)/icudtl.dat', |
| 65 | ], |
baixo | 3a3c88a | 2014-10-28 11:52:21 | [diff] [blame] | 66 | }], |
| 67 | ['v8_use_external_startup_data==1', { |
| 68 | 'files': [ |
| 69 | '<(PRODUCT_DIR)/natives_blob.bin', |
| 70 | '<(PRODUCT_DIR)/snapshot_blob.bin', |
| 71 | ], |
| 72 | }], |
[email protected] | c8e8781e | 2014-03-08 12:02:26 | [diff] [blame] | 73 | ], |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 74 | }, |
| 75 | ], |
| 76 | 'includes': [ '../build/java_apk.gypi' ], |
| 77 | }, |
| 78 | { |
[email protected] | 8c56afd | 2013-03-25 15:37:45 | [diff] [blame] | 79 | # android_webview_apk creates a .jar as a side effect. Any java |
| 80 | # targets that need that .jar in their classpath should depend on this |
[email protected] | efeb59e | 2014-03-12 01:31:26 | [diff] [blame] | 81 | # target. For more details see the chrome_shell_apk_java target. |
[email protected] | 8c56afd | 2013-03-25 15:37:45 | [diff] [blame] | 82 | 'target_name': 'android_webview_apk_java', |
[email protected] | 13485fa | 2013-03-20 12:06:53 | [diff] [blame] | 83 | 'type': 'none', |
| 84 | 'dependencies': [ |
[email protected] | 8c56afd | 2013-03-25 15:37:45 | [diff] [blame] | 85 | 'android_webview_apk', |
| 86 | ], |
[email protected] | b13f73e | 2013-03-27 23:31:27 | [diff] [blame] | 87 | 'includes': [ '../build/apk_fake_jar.gypi' ], |
[email protected] | 8c56afd | 2013-03-25 15:37:45 | [diff] [blame] | 88 | }, |
| 89 | { |
| 90 | 'target_name': 'android_webview_test_apk', |
| 91 | 'type': 'none', |
| 92 | 'dependencies': [ |
| 93 | '../base/base.gyp:base_java_test_support', |
[email protected] | ba42b1e | 2013-10-19 22:13:17 | [diff] [blame] | 94 | '../content/content_shell_and_tests.gyp:content_java_test_support', |
[email protected] | 8c56afd | 2013-03-25 15:37:45 | [diff] [blame] | 95 | '../net/net.gyp:net_java_test_support', |
| 96 | 'android_webview_apk_java', |
[email protected] | 13485fa | 2013-03-20 12:06:53 | [diff] [blame] | 97 | ], |
| 98 | 'variables': { |
[email protected] | 8c56afd | 2013-03-25 15:37:45 | [diff] [blame] | 99 | 'apk_name': 'AndroidWebViewTest', |
| 100 | 'java_in_dir': '../android_webview/javatests', |
| 101 | 'is_test_apk': 1, |
[email protected] | 13485fa | 2013-03-20 12:06:53 | [diff] [blame] | 102 | }, |
| 103 | 'includes': [ '../build/java_apk.gypi' ], |
| 104 | }, |
| 105 | { |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 106 | 'target_name': 'android_webview_unittests', |
| 107 | 'type': '<(gtest_target_type)', |
| 108 | 'dependencies': [ |
| 109 | '../base/base.gyp:test_support_base', |
[email protected] | ba42b1e | 2013-10-19 22:13:17 | [diff] [blame] | 110 | '../content/content_shell_and_tests.gyp:test_support_content', |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 111 | '../net/net.gyp:net_test_support', |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 112 | '../testing/android/native_test.gyp:native_test_native_code', |
| 113 | '../testing/gmock.gyp:gmock', |
| 114 | '../testing/gtest.gyp:gtest', |
[email protected] | ed8fd915 | 2014-03-13 10:20:37 | [diff] [blame] | 115 | '../ui/base/ui_base.gyp:ui_base_jni_headers', |
boliu | ec5d6de | 2014-12-11 00:54:41 | [diff] [blame] | 116 | '../ui/gl/gl.gyp:gl', |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 117 | 'android_webview_common', |
[email protected] | ac91eda | 2014-01-07 23:16:52 | [diff] [blame] | 118 | 'android_webview_unittests_jni', |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 119 | ], |
| 120 | 'include_dirs': [ |
| 121 | '..', |
| 122 | '../skia/config', |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 123 | '<(SHARED_INTERMEDIATE_DIR)/android_webview_unittests', |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 124 | ], |
| 125 | 'sources': [ |
[email protected] | 41d70bd | 2014-05-29 19:01:02 | [diff] [blame] | 126 | 'browser/aw_static_cookie_policy_unittest.cc', |
[email protected] | 1140180 | 2013-05-08 16:16:37 | [diff] [blame] | 127 | 'browser/aw_form_database_service_unittest.cc', |
boliu | fb2874d | 2014-11-11 22:59:33 | [diff] [blame] | 128 | 'browser/browser_view_renderer_unittest.cc', |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 129 | 'browser/net/android_stream_reader_url_request_job_unittest.cc', |
| 130 | 'browser/net/input_stream_reader_unittest.cc', |
boliu | ec5d6de | 2014-12-11 00:54:41 | [diff] [blame] | 131 | 'browser/test/fake_window.cc', |
| 132 | 'browser/test/fake_window.h', |
boliu | fb2874d | 2014-11-11 22:59:33 | [diff] [blame] | 133 | 'browser/test/rendering_test.cc', |
| 134 | 'browser/test/rendering_test.h', |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 135 | 'lib/main/webview_tests.cc', |
[email protected] | 353539b | 2014-04-22 22:22:44 | [diff] [blame] | 136 | 'native/aw_contents_client_bridge_unittest.cc', |
[email protected] | 63ab505 | 2014-08-04 10:44:11 | [diff] [blame] | 137 | 'native/aw_media_url_interceptor_unittest.cc', |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 138 | 'native/input_stream_unittest.cc', |
[email protected] | 32e2d4aac | 2014-05-01 17:54:13 | [diff] [blame] | 139 | 'native/permission/media_access_permission_request_unittest.cc', |
| 140 | 'native/permission/permission_request_handler_unittest.cc', |
[email protected] | f791d5d | 2014-01-17 00:30:32 | [diff] [blame] | 141 | 'native/state_serializer_unittest.cc', |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 142 | ], |
| 143 | }, |
| 144 | { |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 145 | 'target_name': 'android_webview_unittest_java', |
| 146 | 'type': 'none', |
| 147 | 'dependencies': [ |
| 148 | '../base/base.gyp:base_java_test_support', |
[email protected] | ba42b1e | 2013-10-19 22:13:17 | [diff] [blame] | 149 | '../content/content_shell_and_tests.gyp:content_java_test_support', |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 150 | 'android_webview_java', |
| 151 | ], |
| 152 | 'variables': { |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 153 | 'java_in_dir': '../android_webview/unittestjava', |
| 154 | }, |
| 155 | 'includes': [ '../build/java.gypi' ], |
| 156 | }, |
| 157 | { |
| 158 | 'target_name': 'android_webview_unittests_jni', |
| 159 | 'type': 'none', |
| 160 | 'sources': [ |
| 161 | '../android_webview/unittestjava/src/org/chromium/android_webview/unittest/InputStreamUnittest.java', |
[email protected] | 353539b | 2014-04-22 22:22:44 | [diff] [blame] | 162 | '../android_webview/unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsClientBridge.java', |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 163 | ], |
| 164 | 'variables': { |
[email protected] | 521cd94 | 2013-03-07 22:34:05 | [diff] [blame] | 165 | 'jni_gen_package': 'android_webview_unittests', |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 166 | }, |
| 167 | 'includes': [ '../build/jni_generator.gypi' ], |
| 168 | }, |
| 169 | { |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 170 | 'target_name': 'android_webview_unittests_apk', |
| 171 | 'type': 'none', |
| 172 | 'dependencies': [ |
[email protected] | 1737386 | 2012-11-22 16:21:26 | [diff] [blame] | 173 | 'android_webview_unittest_java', |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 174 | 'android_webview_unittests', |
| 175 | ], |
| 176 | 'variables': { |
| 177 | 'test_suite_name': 'android_webview_unittests', |
[email protected] | 63ab505 | 2014-08-04 10:44:11 | [diff] [blame] | 178 | 'additional_input_paths': [ |
| 179 | '<(PRODUCT_DIR)/android_webview_unittests_apk/assets/asset_file.ogg', |
| 180 | ], |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 181 | }, |
[email protected] | 63ab505 | 2014-08-04 10:44:11 | [diff] [blame] | 182 | 'copies': [ |
| 183 | { |
| 184 | 'destination': '<(PRODUCT_DIR)/android_webview_unittests_apk/assets', |
| 185 | 'files': [ |
| 186 | 'test/unittest/assets/asset_file.ogg', |
| 187 | ], |
| 188 | }, |
| 189 | ], |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 190 | 'includes': [ '../build/apk_test.gypi' ], |
| 191 | }, |
sievers | 625a786 | 2014-08-30 02:19:00 | [diff] [blame] | 192 | { |
| 193 | 'target_name': 'libdrawgl', |
| 194 | 'type': 'shared_library', |
| 195 | # Do not depend on any other component here, since this target |
| 196 | # builds a separate shared library! |
| 197 | 'include_dirs': [ |
| 198 | '..', |
| 199 | ], |
| 200 | 'sources': [ |
| 201 | '../android_webview/test/shell/src/draw_gl/draw_gl.cc', |
| 202 | ], |
| 203 | }, |
hjd | aefb279 | 2014-09-09 11:44:02 | [diff] [blame] | 204 | { |
| 205 | 'target_name': 'libstandalonelibwebviewchromium', |
| 206 | 'includes': [ |
| 207 | 'libwebviewchromium.gypi', |
| 208 | ], |
| 209 | }, |
[email protected] | 4b31bbd | 2012-11-05 11:49:39 | [diff] [blame] | 210 | ], |
| 211 | } |