blob: c9a205f6b6f91a138d793b7b9f0fa92fc6d0f5e6 [file] [log] [blame]
# Copyright 2016 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("//chrome/common/features.gni")
import("//testing/test.gni")
assert(enable_vr_shell && android_java_ui)
static_library("vr_shell") {
sources = [
"animation.cc",
"animation.h",
"easing.cc",
"easing.h",
"ui_elements.cc",
"ui_elements.h",
"vr_compositor.cc",
"vr_compositor.h",
"vr_gl_util.cc",
"vr_gl_util.h",
"vr_math.cc",
"vr_math.h",
"vr_shell.cc",
"vr_shell.h",
"vr_shell_delegate.cc",
"vr_shell_delegate.h",
"vr_shell_renderer.cc",
"vr_shell_renderer.h",
]
deps = [
":vr_shell_jni_headers",
"//base",
"//cc",
"//content/public/browser",
"//device/vr",
"//third_party/gvr-android-sdk:gvr_base_java",
"//third_party/gvr-android-sdk:gvr_common_java",
"//third_party/gvr-android-sdk:libgvr",
"//ui/android",
"//ui/gl",
"//ui/gl/init",
]
configs += [ "//third_party/gvr-android-sdk:libgvr_config" ]
}
generate_jni("vr_shell_jni_headers") {
sources = [
"//chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java",
"//chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java",
]
jni_package = "vr_shell"
}
test("vr_shell_unittests") {
sources = [
"ui_elements_unittest.cc",
]
deps = [
":vr_shell",
"//base/test:run_all_unittests",
"//base/test:test_support",
"//testing/gtest",
"//ui/gfx/geometry",
]
}