| 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_asset.cc", |
| 24 "gltf_asset.h", |
| 25 "gltf_parser.cc", |
| 26 "gltf_parser.h", |
| 23 "mailbox_to_surface_bridge.cc", | 27 "mailbox_to_surface_bridge.cc", |
| 24 "mailbox_to_surface_bridge.h", | 28 "mailbox_to_surface_bridge.h", |
| 25 "non_presenting_gvr_delegate.cc", | 29 "non_presenting_gvr_delegate.cc", |
| 26 "non_presenting_gvr_delegate.h", | 30 "non_presenting_gvr_delegate.h", |
| 27 "ui_elements.cc", | 31 "ui_elements.cc", |
| 28 "ui_elements.h", | 32 "ui_elements.h", |
| 29 "ui_interface.cc", | 33 "ui_interface.cc", |
| 30 "ui_interface.h", | 34 "ui_interface.h", |
| 31 "ui_scene.cc", | 35 "ui_scene.cc", |
| 32 "ui_scene.h", | 36 "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", | 99 "//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", | 100 "//chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImp
l.java", |
| 97 ] | 101 ] |
| 98 jni_package = "vr_shell" | 102 jni_package = "vr_shell" |
| 99 } | 103 } |
| 100 } | 104 } |
| 101 | 105 |
| 102 if (enable_webvr) { | 106 if (enable_webvr) { |
| 103 test("vr_shell_unittests") { | 107 test("vr_shell_unittests") { |
| 104 sources = [ | 108 sources = [ |
| 109 "gltf_parser_unittest.cc", |
| 105 "ui_elements_unittest.cc", | 110 "ui_elements_unittest.cc", |
| 106 "ui_scene_unittest.cc", | 111 "ui_scene_unittest.cc", |
| 107 ] | 112 ] |
| 108 | 113 |
| 109 deps = [ | 114 deps = [ |
| 110 ":vr_common", | 115 ":vr_common", |
| 111 "//base/test:run_all_unittests", | 116 "//base/test:run_all_unittests", |
| 112 "//base/test:test_support", | 117 "//base/test:test_support", |
| 113 "//chrome/browser", | 118 "//chrome/browser", |
| 114 "//testing/gtest", | 119 "//testing/gtest", |
| 115 "//third_party/WebKit/public:blink", | 120 "//third_party/WebKit/public:blink", |
| 116 "//ui/gfx/geometry", | 121 "//ui/gfx/geometry", |
| 117 ] | 122 ] |
| 118 } | 123 } |
| 119 } | 124 } |
| OLD | NEW |