| Index: device/BUILD.gn
|
| diff --git a/device/BUILD.gn b/device/BUILD.gn
|
| index 6330dacbb1e74f5c1536524e75912c2bdda02a83..d5c211d8293eee8f48367a90425c59a4b60ef8e1 100644
|
| --- a/device/BUILD.gn
|
| +++ b/device/BUILD.gn
|
| @@ -63,8 +63,6 @@ test("device_unittests") {
|
| "nfc/nfc_chromeos_unittest.cc",
|
| "nfc/nfc_ndef_record_unittest.cc",
|
| "test/run_all_unittests.cc",
|
| - "vr/vr_device_manager_unittest.cc",
|
| - "vr/vr_service_impl_unittest.cc",
|
| ]
|
|
|
| deps = [
|
| @@ -78,9 +76,6 @@ test("device_unittests") {
|
| "//device/geolocation:unittests",
|
| "//device/nfc",
|
| "//device/power_save_blocker",
|
| - "//device/vr",
|
| - "//device/vr:fakes",
|
| - "//device/vr:mojo_bindings",
|
| "//mojo/common",
|
| "//mojo/edk/system",
|
| "//mojo/public/cpp/bindings",
|
| @@ -225,6 +220,19 @@ test("device_unittests") {
|
| "bluetooth/bluetooth_low_energy_win_fake.h",
|
| ]
|
| }
|
| +
|
| + if (enable_webvr) {
|
| + sources += [
|
| + "vr/vr_device_manager_unittest.cc",
|
| + "vr/vr_service_impl_unittest.cc",
|
| + ]
|
| +
|
| + deps += [
|
| + "//device/vr",
|
| + "//device/vr:fakes",
|
| + "//device/vr:mojo_bindings",
|
| + ]
|
| + }
|
| }
|
|
|
| if (is_android) {
|
|
|