Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Unified Diff: chrome/browser/android/vr_shell/BUILD.gn

Issue 2399533002: Pull in vr_shell code for webvr (Closed)
Patch Set: fix android_clang_dbg_receipt error Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/chrome_jni_registrar.cc ('k') | chrome/browser/browser_resources.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/BUILD.gn
diff --git a/chrome/browser/android/vr_shell/BUILD.gn b/chrome/browser/android/vr_shell/BUILD.gn
index f2e1f803d8a66a17aed972aae41e32228ff1e299..74a34ae5e00a6ae87e270fdaa0f0cd63bd66ef64 100644
--- a/chrome/browser/android/vr_shell/BUILD.gn
+++ b/chrome/browser/android/vr_shell/BUILD.gn
@@ -6,9 +6,9 @@ import("//build/config/android/rules.gni")
import("//chrome/common/features.gni")
import("//testing/test.gni")
-assert(enable_vr_shell && android_java_ui)
+assert(enable_vr_shell || enable_webvr)
-static_library("vr_shell") {
+static_library("vr_common") {
sources = [
"animation.cc",
"animation.h",
@@ -62,17 +62,19 @@ generate_jni("vr_shell_jni_headers") {
jni_package = "vr_shell"
}
-test("vr_shell_unittests") {
- sources = [
- "ui_elements_unittest.cc",
- "ui_scene_unittest.cc",
- ]
+if (enable_vr_shell) {
+ test("vr_shell_unittests") {
+ sources = [
+ "ui_elements_unittest.cc",
+ "ui_scene_unittest.cc",
+ ]
- deps = [
- ":vr_shell",
- "//base/test:run_all_unittests",
- "//base/test:test_support",
- "//testing/gtest",
- "//ui/gfx/geometry",
- ]
+ deps = [
+ ":vr_common",
+ "//base/test:run_all_unittests",
+ "//base/test:test_support",
+ "//testing/gtest",
+ "//ui/gfx/geometry",
+ ]
+ }
}
« no previous file with comments | « chrome/browser/android/chrome_jni_registrar.cc ('k') | chrome/browser/browser_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698