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

Side by Side Diff: chrome/browser/android/vr_shell/BUILD.gn

Issue 2343023002: Switch WebVR to handle GvrApi management through VrShellDelegate (Closed)
Patch Set: Rebase Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/android/rules.gni") 5 import("//build/config/android/rules.gni")
6 import("//chrome/common/features.gni") 6 import("//chrome/common/features.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 8
9 assert(enable_vr_shell && android_java_ui) 9 assert(enable_vr_shell && android_java_ui)
10 10
11 static_library("vr_shell") { 11 static_library("vr_shell") {
12 sources = [ 12 sources = [
13 "animation.cc", 13 "animation.cc",
14 "animation.h", 14 "animation.h",
15 "easing.cc", 15 "easing.cc",
16 "easing.h", 16 "easing.h",
17 "ui_elements.cc", 17 "ui_elements.cc",
18 "ui_elements.h", 18 "ui_elements.h",
19 "vr_gl_util.cc", 19 "vr_gl_util.cc",
20 "vr_gl_util.h", 20 "vr_gl_util.h",
21 "vr_math.cc", 21 "vr_math.cc",
22 "vr_math.h", 22 "vr_math.h",
23 "vr_shell.cc", 23 "vr_shell.cc",
24 "vr_shell.h", 24 "vr_shell.h",
25 "vr_shell_delegate.cc",
26 "vr_shell_delegate.h",
25 "vr_shell_renderer.cc", 27 "vr_shell_renderer.cc",
26 "vr_shell_renderer.h", 28 "vr_shell_renderer.h",
27 ] 29 ]
28 30
29 deps = [ 31 deps = [
30 ":vr_shell_jni_headers", 32 ":vr_shell_jni_headers",
31 "//base", 33 "//base",
32 "//device/vr", 34 "//device/vr",
33 "//third_party/gvr-android-sdk:gvr_base_java", 35 "//third_party/gvr-android-sdk:gvr_base_java",
34 "//third_party/gvr-android-sdk:gvr_common_java", 36 "//third_party/gvr-android-sdk:gvr_common_java",
35 "//third_party/gvr-android-sdk:libgvr", 37 "//third_party/gvr-android-sdk:libgvr",
36 "//ui/gl", 38 "//ui/gl",
37 "//ui/gl/init", 39 "//ui/gl/init",
38 ] 40 ]
39 41
40 configs += [ "//third_party/gvr-android-sdk:libgvr_config" ] 42 configs += [ "//third_party/gvr-android-sdk:libgvr_config" ]
41 } 43 }
42 44
43 generate_jni("vr_shell_jni_headers") { 45 generate_jni("vr_shell_jni_headers") {
44 sources = [ 46 sources = [
45 "//chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java ", 47 "//chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java ",
48 "//chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDeleg ate.java",
46 ] 49 ]
47 jni_package = "vr_shell" 50 jni_package = "vr_shell"
48 } 51 }
49 52
50 test("vr_shell_unittests") { 53 test("vr_shell_unittests") {
51 sources = [ 54 sources = [
52 "ui_elements_unittest.cc", 55 "ui_elements_unittest.cc",
53 ] 56 ]
54 57
55 deps = [ 58 deps = [
56 ":vr_shell", 59 ":vr_shell",
57 "//base/test:run_all_unittests", 60 "//base/test:run_all_unittests",
58 "//base/test:test_support", 61 "//base/test:test_support",
59 "//testing/gtest", 62 "//testing/gtest",
60 "//ui/gfx/geometry", 63 "//ui/gfx/geometry",
61 ] 64 ]
62 } 65 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698