Index: android_webview/android_webview_tests.gypi |
diff --git a/android_webview/android_webview_tests.gypi b/android_webview/android_webview_tests.gypi |
index 151e291ffa03846c9b13c2b6bcaea4ca124dfd76..998aba33491a99e38767d50158b0d72a33476275 100644 |
--- a/android_webview/android_webview_tests.gypi |
+++ b/android_webview/android_webview_tests.gypi |
@@ -4,20 +4,33 @@ |
{ |
'targets': [ |
{ |
- 'target_name': 'android_webview_test_apk', |
+ 'target_name': 'android_webview_test_java', |
'type': 'none', |
'dependencies': [ |
'../base/base.gyp:base_java_test_support', |
'../content/content.gyp:content_java_test_support', |
'../net/net.gyp:net_java_test_support', |
- 'android_webview_java', |
+ 'android_webview_java', |
'libwebviewchromium', |
], |
'variables': { |
- 'apk_name': 'AndroidWebViewTest', |
'java_in_dir': '../android_webview/javatests', |
- 'resource_dir': 'res', |
- 'is_test_apk': 1, |
+ 'has_java_resources': 1, |
+ 'R_package': 'org.chromium.android_webview.test', |
+ 'R_package_relpath': 'org/chromium/android_webview/test', |
+ }, |
+ 'includes': [ '../build/java.gypi' ], |
+ }, |
+ { |
+ 'target_name': 'android_webview_test_apk', |
+ 'type': 'none', |
+ 'dependencies': [ |
+ 'android_webview_test_java', |
+ ], |
+ 'variables': { |
+ 'apk_name': 'AndroidWebViewTest', |
+ 'java_in_dir': '../android_webview/test_apk', |
+ 'is_test_apk': 0, # We want resources from android_webview_test_java. |
'additional_input_paths': [ |
'<(PRODUCT_DIR)/android_webview_test_apk/assets/asset_file.html', |
'<(PRODUCT_DIR)/android_webview_test_apk/assets/asset_icon.png', |
@@ -37,6 +50,25 @@ |
'includes': [ '../build/java_apk.gypi' ], |
}, |
{ |
+ 'target_name': 'android_webview_shell_apk', |
+ 'type': 'none', |
+ 'dependencies': [ |
+ 'android_webview_test_java', |
+ 'android_webview_pak', |
+ ], |
+ 'variables': { |
+ 'apk_name': 'AndroidWebViewShell', |
+ 'java_in_dir': '../android_webview/shell_apk', |
+ 'native_libs_paths': ['<(SHARED_LIB_DIR)/libwebviewchromium.so'], |
+ 'resource_dir': 'res', |
+ 'asset_location': '<(ant_build_out)/android_webview_apk/assets', |
+ 'additional_input_paths': [ |
+ '<(PRODUCT_DIR)/android_webview_apk/assets/webviewchromium.pak', |
+ ], |
+ }, |
+ 'includes': [ '../build/java_apk.gypi' ], |
+ }, |
+ { |
'target_name': 'android_webview_unittests', |
'type': '<(gtest_target_type)', |
'dependencies': [ |