| OLD | NEW |
| 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("//device/vr/features.gni") | 7 import("//device/vr/features.gni") |
| 8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
| 9 | 9 |
| 10 assert(enable_webvr) | 10 assert(enable_webvr) |
| 11 | 11 |
| 12 if (current_cpu == "arm" || current_cpu == "arm64") { | 12 if (current_cpu == "arm" || current_cpu == "arm64") { |
| 13 static_library("vr_common") { | 13 static_library("vr_common") { |
| 14 defines = [] | 14 defines = [] |
| 15 | 15 |
| 16 sources = [ | 16 sources = [ |
| 17 "android_ui_gesture_target.cc", | 17 "android_ui_gesture_target.cc", |
| 18 "android_ui_gesture_target.h", | 18 "android_ui_gesture_target.h", |
| 19 "animation.cc", | 19 "animation.cc", |
| 20 "animation.h", | 20 "animation.h", |
| 21 "easing.cc", | 21 "easing.cc", |
| 22 "easing.h", | 22 "easing.h", |
| 23 "gltf_parser.cc", |
| 24 "gltf_parser.h", |
| 23 "mailbox_to_surface_bridge.cc", | 25 "mailbox_to_surface_bridge.cc", |
| 24 "mailbox_to_surface_bridge.h", | 26 "mailbox_to_surface_bridge.h", |
| 25 "non_presenting_gvr_delegate.cc", | 27 "non_presenting_gvr_delegate.cc", |
| 26 "non_presenting_gvr_delegate.h", | 28 "non_presenting_gvr_delegate.h", |
| 27 "ui_elements.cc", | 29 "ui_elements.cc", |
| 28 "ui_elements.h", | 30 "ui_elements.h", |
| 29 "ui_interface.cc", | 31 "ui_interface.cc", |
| 30 "ui_interface.h", | 32 "ui_interface.h", |
| 31 "ui_scene.cc", | 33 "ui_scene.cc", |
| 32 "ui_scene.h", | 34 "ui_scene.h", |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 "//chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDel
egate.java", | 97 "//chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDel
egate.java", |
| 96 "//chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImp
l.java", | 98 "//chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImp
l.java", |
| 97 ] | 99 ] |
| 98 jni_package = "vr_shell" | 100 jni_package = "vr_shell" |
| 99 } | 101 } |
| 100 } | 102 } |
| 101 | 103 |
| 102 if (enable_webvr) { | 104 if (enable_webvr) { |
| 103 test("vr_shell_unittests") { | 105 test("vr_shell_unittests") { |
| 104 sources = [ | 106 sources = [ |
| 107 "gltf_parser_unittest.cc", |
| 105 "ui_elements_unittest.cc", | 108 "ui_elements_unittest.cc", |
| 106 "ui_scene_unittest.cc", | 109 "ui_scene_unittest.cc", |
| 107 ] | 110 ] |
| 108 | 111 |
| 109 deps = [ | 112 deps = [ |
| 110 ":vr_common", | 113 ":vr_common", |
| 111 "//base/test:run_all_unittests", | 114 "//base/test:run_all_unittests", |
| 112 "//base/test:test_support", | 115 "//base/test:test_support", |
| 113 "//chrome/browser", | 116 "//chrome/browser", |
| 114 "//testing/gtest", | 117 "//testing/gtest", |
| 115 "//third_party/WebKit/public:blink", | 118 "//third_party/WebKit/public:blink", |
| 116 "//ui/gfx/geometry", | 119 "//ui/gfx/geometry", |
| 117 ] | 120 ] |
| 118 } | 121 } |
| 119 } | 122 } |
| OLD | NEW |