| 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/edk/system", | 26 "//mojo/edk/system", |
| 27 "//mojo/public/cpp/bindings", | 27 "//mojo/public/cpp/bindings", |
| 28 "//third_party/WebKit/public:mojo_bindings", | |
| 29 "//ui/gfx", | 28 "//ui/gfx", |
| 30 ] | 29 ] |
| 31 | 30 |
| 32 defines = [ "DEVICE_VR_IMPLEMENTATION" ] | 31 defines = [ "DEVICE_VR_IMPLEMENTATION" ] |
| 33 | 32 |
| 34 if (is_android) { | 33 if (is_android) { |
| 35 sources += [ | 34 sources += [ |
| 36 "android/cardboard/cardboard_vr_device.cc", | 35 "android/cardboard/cardboard_vr_device.cc", |
| 37 "android/cardboard/cardboard_vr_device.h", | 36 "android/cardboard/cardboard_vr_device.h", |
| 38 "android/cardboard/cardboard_vr_device_provider.cc", | 37 "android/cardboard/cardboard_vr_device_provider.cc", |
| (...skipping 11 matching lines...) Expand all Loading... |
| 50 "test/fake_vr_device.cc", | 49 "test/fake_vr_device.cc", |
| 51 "test/fake_vr_device.h", | 50 "test/fake_vr_device.h", |
| 52 "test/fake_vr_device_provider.cc", | 51 "test/fake_vr_device_provider.cc", |
| 53 "test/fake_vr_device_provider.h", | 52 "test/fake_vr_device_provider.h", |
| 54 ] | 53 ] |
| 55 | 54 |
| 56 public_deps = [ | 55 public_deps = [ |
| 57 ":vr", | 56 ":vr", |
| 58 "//base", | 57 "//base", |
| 59 "//mojo/public/cpp/bindings", | 58 "//mojo/public/cpp/bindings", |
| 60 "//third_party/WebKit/public:mojo_bindings", | |
| 61 ] | 59 ] |
| 62 } | 60 } |
| 63 | 61 |
| 64 mojom("mojo_bindings") { | 62 mojom("mojo_bindings") { |
| 65 sources = [ | 63 sources = [ |
| 66 "vr_service.mojom", | 64 "vr_service.mojom", |
| 67 ] | 65 ] |
| 68 } | 66 } |
| 69 | 67 |
| 70 if (is_android) { | 68 if (is_android) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 81 } | 79 } |
| 82 | 80 |
| 83 android_library("java") { | 81 android_library("java") { |
| 84 java_files = java_sources_needing_jni | 82 java_files = java_sources_needing_jni |
| 85 deps = [ | 83 deps = [ |
| 86 "//base:base_java", | 84 "//base:base_java", |
| 87 "//third_party/cardboard-java:cardboard-java", | 85 "//third_party/cardboard-java:cardboard-java", |
| 88 ] | 86 ] |
| 89 } | 87 } |
| 90 } | 88 } |
| OLD | NEW |