| 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) |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 "easing.cc", | 21 "easing.cc", |
| 22 "easing.h", | 22 "easing.h", |
| 23 "gltf_asset.cc", | 23 "gltf_asset.cc", |
| 24 "gltf_asset.h", | 24 "gltf_asset.h", |
| 25 "gltf_parser.cc", | 25 "gltf_parser.cc", |
| 26 "gltf_parser.h", | 26 "gltf_parser.h", |
| 27 "mailbox_to_surface_bridge.cc", | 27 "mailbox_to_surface_bridge.cc", |
| 28 "mailbox_to_surface_bridge.h", | 28 "mailbox_to_surface_bridge.h", |
| 29 "non_presenting_gvr_delegate.cc", | 29 "non_presenting_gvr_delegate.cc", |
| 30 "non_presenting_gvr_delegate.h", | 30 "non_presenting_gvr_delegate.h", |
| 31 "ui_elements.cc", | 31 "ui_element.cc", |
| 32 "ui_elements.h", | 32 "ui_element.h", |
| 33 "ui_interface.cc", | 33 "ui_interface.cc", |
| 34 "ui_interface.h", | 34 "ui_interface.h", |
| 35 "ui_scene.cc", | 35 "ui_scene.cc", |
| 36 "ui_scene.h", | 36 "ui_scene.h", |
| 37 "vr_compositor.cc", | 37 "vr_compositor.cc", |
| 38 "vr_compositor.h", | 38 "vr_compositor.h", |
| 39 "vr_controller.cc", | 39 "vr_controller.cc", |
| 40 "vr_controller.h", | 40 "vr_controller.h", |
| 41 "vr_controller_model.cc", | 41 "vr_controller_model.cc", |
| 42 "vr_controller_model.h", | 42 "vr_controller_model.h", |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 jni_package = "vr_shell" | 103 jni_package = "vr_shell" |
| 104 } | 104 } |
| 105 } | 105 } |
| 106 | 106 |
| 107 if (enable_vr) { | 107 if (enable_vr) { |
| 108 test("vr_shell_unittests") { | 108 test("vr_shell_unittests") { |
| 109 sources = [ | 109 sources = [ |
| 110 "gltf_parser_unittest.cc", | 110 "gltf_parser_unittest.cc", |
| 111 "test/paths.cc", | 111 "test/paths.cc", |
| 112 "test/paths.h", | 112 "test/paths.h", |
| 113 "ui_elements_unittest.cc", | 113 "ui_element_unittest.cc", |
| 114 "ui_scene_unittest.cc", | 114 "ui_scene_unittest.cc", |
| 115 ] | 115 ] |
| 116 | 116 |
| 117 deps = [ | 117 deps = [ |
| 118 ":vr_common", | 118 ":vr_common", |
| 119 "//base/test:run_all_unittests", | 119 "//base/test:run_all_unittests", |
| 120 "//base/test:test_support", | 120 "//base/test:test_support", |
| 121 "//chrome/browser", | 121 "//chrome/browser", |
| 122 "//testing/gtest", | 122 "//testing/gtest", |
| 123 "//third_party/WebKit/public:blink", | 123 "//third_party/WebKit/public:blink", |
| 124 "//ui/gfx/geometry", | 124 "//ui/gfx/geometry", |
| 125 ] | 125 ] |
| 126 | 126 |
| 127 # Ensure libgvr static library appears before gcc library in linking order. | 127 # Ensure libgvr static library appears before gcc library in linking order. |
| 128 # See https://crbug.com/704305 for details. | 128 # See https://crbug.com/704305 for details. |
| 129 libs = | 129 libs = |
| 130 [ "//third_party/gvr-android-sdk/libgvr_shim_static_${current_cpu}.a" ] | 130 [ "//third_party/gvr-android-sdk/libgvr_shim_static_${current_cpu}.a" ] |
| 131 | 131 |
| 132 data = [ | 132 data = [ |
| 133 "test/data/sample_inline.gltf", | 133 "test/data/sample_inline.gltf", |
| 134 "test/data/sample_external.gltf", | 134 "test/data/sample_external.gltf", |
| 135 "test/data/sample.bin", | 135 "test/data/sample.bin", |
| 136 ] | 136 ] |
| 137 } | 137 } |
| 138 } | 138 } |
| OLD | NEW |