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_vr) | 10 assert(enable_vr) |
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 "fps_meter.cc", |
| 24 "fps_meter.h", |
23 "gltf_asset.cc", | 25 "gltf_asset.cc", |
24 "gltf_asset.h", | 26 "gltf_asset.h", |
25 "gltf_parser.cc", | 27 "gltf_parser.cc", |
26 "gltf_parser.h", | 28 "gltf_parser.h", |
27 "mailbox_to_surface_bridge.cc", | 29 "mailbox_to_surface_bridge.cc", |
28 "mailbox_to_surface_bridge.h", | 30 "mailbox_to_surface_bridge.h", |
29 "non_presenting_gvr_delegate.cc", | 31 "non_presenting_gvr_delegate.cc", |
30 "non_presenting_gvr_delegate.h", | 32 "non_presenting_gvr_delegate.h", |
31 "ui_elements.cc", | 33 "ui_elements.cc", |
32 "ui_elements.h", | 34 "ui_elements.h", |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 "//chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDel
egate.java", | 104 "//chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDel
egate.java", |
103 "//chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImp
l.java", | 105 "//chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImp
l.java", |
104 ] | 106 ] |
105 jni_package = "vr_shell" | 107 jni_package = "vr_shell" |
106 } | 108 } |
107 } | 109 } |
108 | 110 |
109 if (enable_vr) { | 111 if (enable_vr) { |
110 test("vr_shell_unittests") { | 112 test("vr_shell_unittests") { |
111 sources = [ | 113 sources = [ |
| 114 "fps_meter_unittest.cc", |
112 "gltf_parser_unittest.cc", | 115 "gltf_parser_unittest.cc", |
113 "test/paths.cc", | 116 "test/paths.cc", |
114 "test/paths.h", | 117 "test/paths.h", |
115 "ui_elements_unittest.cc", | 118 "ui_elements_unittest.cc", |
116 "ui_scene_unittest.cc", | 119 "ui_scene_unittest.cc", |
117 ] | 120 ] |
118 | 121 |
119 deps = [ | 122 deps = [ |
120 ":vr_common", | 123 ":vr_common", |
121 "//base/test:run_all_unittests", | 124 "//base/test:run_all_unittests", |
122 "//base/test:test_support", | 125 "//base/test:test_support", |
123 "//chrome/browser", | 126 "//chrome/browser", |
124 "//testing/gtest", | 127 "//testing/gtest", |
125 "//third_party/WebKit/public:blink", | 128 "//third_party/WebKit/public:blink", |
126 "//ui/gfx/geometry", | 129 "//ui/gfx/geometry", |
127 ] | 130 ] |
128 | 131 |
129 # Ensure libgvr static library appears before gcc library in linking order. | 132 # Ensure libgvr static library appears before gcc library in linking order. |
130 # See https://crbug.com/704305 for details. | 133 # See https://crbug.com/704305 for details. |
131 libs = [ | 134 libs = |
132 "//third_party/gvr-android-sdk/libgvr_shim_static_${current_cpu}.a", | 135 [ "//third_party/gvr-android-sdk/libgvr_shim_static_${current_cpu}.a" ] |
133 ] | |
134 | 136 |
135 data = [ | 137 data = [ |
136 "test/data/sample_inline.gltf", | 138 "test/data/sample_inline.gltf", |
137 "test/data/sample_external.gltf", | 139 "test/data/sample_external.gltf", |
138 "test/data/sample.bin", | 140 "test/data/sample.bin", |
139 ] | 141 ] |
140 } | 142 } |
141 } | 143 } |
OLD | NEW |