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