Commit 1a3e9eb8 authored by agrieve's avatar agrieve Committed by Commit bot

Port android_webview_shell.gyp to GN.

BUG=532905

Review URL: https://codereview.chromium.org/1545763002

Cr-Commit-Position: refs/heads/master@{#367037}
parent cafb1bf5
...@@ -311,6 +311,7 @@ group("both_gn_and_gyp") { ...@@ -311,6 +311,7 @@ group("both_gn_and_gyp") {
deps += [ deps += [
"//android_webview", "//android_webview",
"//android_webview/test", "//android_webview/test",
"//android_webview/tools",
"//chrome/android:chrome_junit_tests", "//chrome/android:chrome_junit_tests",
"//chrome/android:chrome_public_apk", "//chrome/android:chrome_public_apk",
"//chrome/android:chrome_public_test_apk", "//chrome/android:chrome_public_test_apk",
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
# found in the LICENSE file. # found in the LICENSE file.
{ {
'targets': [ 'targets': [
# GN: //android_webview/tools:system_webview_shell_apk
{ {
'target_name': 'system_webview_shell_apk', 'target_name': 'system_webview_shell_apk',
'type': 'none', 'type': 'none',
...@@ -27,6 +28,7 @@ ...@@ -27,6 +28,7 @@
], ],
'includes': [ '../build/apk_fake_jar.gypi' ], 'includes': [ '../build/apk_fake_jar.gypi' ],
}, },
# GN: //android_webview/tools:system_webview_shell_page_cycler_apk
{ {
'target_name': 'system_webview_shell_page_cycler_apk', 'target_name': 'system_webview_shell_page_cycler_apk',
'type': 'none', 'type': 'none',
...@@ -49,6 +51,7 @@ ...@@ -49,6 +51,7 @@
'../build/android/test_runner.gypi', '../build/android/test_runner.gypi',
], ],
}, },
# GN: //android_webview/tools:system_webview_shell_layout_test_apk
{ {
'target_name': 'system_webview_shell_layout_test_apk', 'target_name': 'system_webview_shell_layout_test_apk',
'type': 'none', 'type': 'none',
......
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
import("//testing/test.gni")
# Mark all targets as test only.
testonly = true
group("tools") {
deps = [
":system_webview_shell_apk",
":system_webview_shell_layout_test_apk",
":system_webview_shell_page_cycler_apk",
]
}
# GYP: //android_webview/android_webview_shell.gypi:system_webview_shell_apk
android_apk("system_webview_shell_apk") {
apk_name = "SystemWebViewShell"
DEPRECATED_java_in_dir = "WebViewShell/src"
android_manifest = "WebViewShell/AndroidManifest.xml"
deps = [
":system_webview_shell_apk_resources",
"//base:base_java",
]
}
android_resources("system_webview_shell_apk_resources") {
resource_dirs = [ "WebViewShell/res" ]
custom_package = "org.chromium.webview_shell"
}
# GYP: //android_webview/android_webview_shell.gypi:system_webview_shell_page_cycler_apk
instrumentation_test_apk("system_webview_shell_page_cycler_apk") {
apk_name = "SystemWebViewShellPageCycler"
apk_under_test = ":system_webview_shell_apk"
android_manifest = "PageCycler/AndroidManifest.xml"
DEPRECATED_java_in_dir = "PageCycler/src"
deps = [
"//base:base_java",
"//base:base_java_test_support",
"//content/public/android:content_java",
"//content/public/test/android:content_java_test_support",
"//testing/android/reporter:reporter_java",
]
}
# GYP: //android_webview/android_webview_shell.gypi:system_webview_shell_layout_test_apk
instrumentation_test_apk("system_webview_shell_layout_test_apk") {
apk_name = "SystemWebViewShellLayoutTest"
apk_under_test = ":system_webview_shell_apk"
android_manifest = "WebViewShellTest/AndroidManifest.xml"
DEPRECATED_java_in_dir = "WebViewShellTest/src"
isolate_file = "../system_webview_shell_test_apk.isolate"
deps = [
"//base:base_java",
"//base:base_java_test_support",
"//testing/android/reporter:reporter_java",
]
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment