diff options
author | agrieve <agrieve@chromium.org> | 2015-12-28 18:07:26 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-29 02:08:21 +0000 |
commit | 1a3e9eb8325c618befdd8ec12346c519a8fe2dcd (patch) | |
tree | a2b67ec072c71ed25d5a8cc18cc21068c702af22 /android_webview/tools | |
parent | cafb1bf5df2fff9340fbeefb5ed3b7aaa22a4599 (diff) | |
download | chromium_src-1a3e9eb8325c618befdd8ec12346c519a8fe2dcd.zip chromium_src-1a3e9eb8325c618befdd8ec12346c519a8fe2dcd.tar.gz chromium_src-1a3e9eb8325c618befdd8ec12346c519a8fe2dcd.tar.bz2 |
Port android_webview_shell.gyp to GN.
BUG=532905
Review URL: https://codereview.chromium.org/1545763002
Cr-Commit-Position: refs/heads/master@{#367037}
Diffstat (limited to 'android_webview/tools')
-rw-r--r-- | android_webview/tools/BUILD.gn | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/android_webview/tools/BUILD.gn b/android_webview/tools/BUILD.gn new file mode 100644 index 0000000..f10f66e --- /dev/null +++ b/android_webview/tools/BUILD.gn @@ -0,0 +1,62 @@ +# 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", + ] +} |