| 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/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
| 7 | 7 |
| 8 if (is_android) { | 8 if (is_android) { |
| 9 import("//build/config/android/rules.gni") # For generate_jni(). | 9 import("//build/config/android/rules.gni") # For generate_jni(). |
| 10 } | 10 } |
| 11 | 11 |
| 12 component("vr") { | 12 component("vr") { |
| 13 output_name = "device_vr" | 13 output_name = "device_vr" |
| 14 | 14 |
| 15 sources = [ | 15 sources = [ |
| 16 "vr_device.cc", | 16 "vr_device.cc", |
| 17 "vr_device.h", | 17 "vr_device.h", |
| 18 "vr_device_manager.cc", | 18 "vr_device_manager.cc", |
| 19 "vr_device_manager.h", | 19 "vr_device_manager.h", |
| 20 "vr_device_provider.h", | 20 "vr_device_provider.h", |
| 21 ] | 21 ] |
| 22 | 22 |
| 23 deps = [ | 23 deps = [ |
| 24 ":mojo_bindings", | 24 ":mojo_bindings", |
| 25 "//base", | 25 "//base", |
| 26 "//mojo/public/cpp/bindings", | 26 "//mojo/public/cpp/bindings", |
| 27 "//third_party/WebKit/public:mojo_bindings", | |
| 28 "//ui/gfx", | 27 "//ui/gfx", |
| 29 ] | 28 ] |
| 30 | 29 |
| 31 defines = [ "DEVICE_VR_IMPLEMENTATION" ] | 30 defines = [ "DEVICE_VR_IMPLEMENTATION" ] |
| 32 | 31 |
| 33 if (is_android) { | 32 if (is_android) { |
| 34 sources += [ | 33 sources += [ |
| 35 "android/cardboard/cardboard_vr_device.cc", | 34 "android/cardboard/cardboard_vr_device.cc", |
| 36 "android/cardboard/cardboard_vr_device.h", | 35 "android/cardboard/cardboard_vr_device.h", |
| 37 "android/cardboard/cardboard_vr_device_provider.cc", | 36 "android/cardboard/cardboard_vr_device_provider.cc", |
| (...skipping 11 matching lines...) Expand all Loading... |
| 49 "test/fake_vr_device.cc", | 48 "test/fake_vr_device.cc", |
| 50 "test/fake_vr_device.h", | 49 "test/fake_vr_device.h", |
| 51 "test/fake_vr_device_provider.cc", | 50 "test/fake_vr_device_provider.cc", |
| 52 "test/fake_vr_device_provider.h", | 51 "test/fake_vr_device_provider.h", |
| 53 ] | 52 ] |
| 54 | 53 |
| 55 public_deps = [ | 54 public_deps = [ |
| 56 ":vr", | 55 ":vr", |
| 57 "//base", | 56 "//base", |
| 58 "//mojo/public/cpp/bindings", | 57 "//mojo/public/cpp/bindings", |
| 59 "//third_party/WebKit/public:mojo_bindings", | |
| 60 ] | 58 ] |
| 61 } | 59 } |
| 62 | 60 |
| 63 mojom("mojo_bindings") { | 61 mojom("mojo_bindings") { |
| 64 sources = [ | 62 sources = [ |
| 65 "vr_service.mojom", | 63 "vr_service.mojom", |
| 66 ] | 64 ] |
| 67 } | 65 } |
| 68 | 66 |
| 69 if (is_android) { | 67 if (is_android) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 80 } | 78 } |
| 81 | 79 |
| 82 android_library("java") { | 80 android_library("java") { |
| 83 java_files = java_sources_needing_jni | 81 java_files = java_sources_needing_jni |
| 84 deps = [ | 82 deps = [ |
| 85 "//base:base_java", | 83 "//base:base_java", |
| 86 "//third_party/cardboard-java:cardboard-java", | 84 "//third_party/cardboard-java:cardboard-java", |
| 87 ] | 85 ] |
| 88 } | 86 } |
| 89 } | 87 } |
| OLD | NEW |