Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: device/vr/BUILD.gn

Issue 2258513003: Revert of Migrate WebVR Cardboard implementation to GVR (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gvr_third_party
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « device/BUILD.gn ('k') | device/vr/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }
(...skipping 16 matching lines...) Expand all
27 ":mojo_bindings", 27 ":mojo_bindings",
28 "//base", 28 "//base",
29 "//mojo/public/cpp/bindings", 29 "//mojo/public/cpp/bindings",
30 "//ui/gfx", 30 "//ui/gfx",
31 ] 31 ]
32 32
33 defines = [ "DEVICE_VR_IMPLEMENTATION" ] 33 defines = [ "DEVICE_VR_IMPLEMENTATION" ]
34 34
35 if (is_android) { 35 if (is_android) {
36 sources += [ 36 sources += [
37 "android/gvr/gvr_api_manager.cc", 37 "android/cardboard/cardboard_vr_device.cc",
38 "android/gvr/gvr_api_manager.h", 38 "android/cardboard/cardboard_vr_device.h",
39 "android/gvr/gvr_device.cc", 39 "android/cardboard/cardboard_vr_device_provider.cc",
40 "android/gvr/gvr_device.h", 40 "android/cardboard/cardboard_vr_device_provider.h",
41 "android/gvr/gvr_device_provider.cc",
42 "android/gvr/gvr_device_provider.h",
43 ] 41 ]
44 42
45 deps += [ 43 deps += [ ":jni_headers" ]
46 ":jni_headers",
47 "//third_party/gvr-android-sdk:libgvr",
48 "//third_party/gvr-android-sdk:libgvr_shared_library",
49 ]
50 configs += [ "//third_party/gvr-android-sdk:libgvr_config" ]
51 data_deps = [
52 "//third_party/gvr-android-sdk:libgvr_shared_library",
53 ]
54 } 44 }
55 } 45 }
56 46
57 static_library("fakes") { 47 static_library("fakes") {
58 testonly = true 48 testonly = true
59 49
60 sources = [ 50 sources = [
61 "test/fake_vr_device.cc", 51 "test/fake_vr_device.cc",
62 "test/fake_vr_device.h", 52 "test/fake_vr_device.h",
63 "test/fake_vr_device_provider.cc", 53 "test/fake_vr_device_provider.cc",
64 "test/fake_vr_device_provider.h", 54 "test/fake_vr_device_provider.h",
65 ] 55 ]
66 56
67 public_deps = [ 57 public_deps = [
68 ":mojo_bindings",
69 ":vr", 58 ":vr",
70 "//base", 59 "//base",
71 "//mojo/public/cpp/bindings", 60 "//mojo/public/cpp/bindings",
72 ] 61 ]
73 } 62 }
74 63
75 mojom("mojo_bindings") { 64 mojom("mojo_bindings") {
76 sources = [ 65 sources = [
77 "vr_service.mojom", 66 "vr_service.mojom",
78 ] 67 ]
79 68
80 use_new_wrapper_types = false 69 use_new_wrapper_types = false
81 } 70 }
82 71
83 if (is_android) { 72 if (is_android) {
84 java_sources_needing_jni = 73 java_sources_needing_jni =
85 [ "android/java/src/org/chromium/device/vr/GvrDeviceProvider.java" ] 74 [ "android/java/src/org/chromium/device/vr/CardboardVRDevice.java" ]
86 75
87 generate_jni("jni_headers") { 76 generate_jni("jni_headers") {
88 sources = java_sources_needing_jni 77 sources = java_sources_needing_jni
89 jni_package = "vr" 78 jni_package = "vr"
90 } 79 }
91 80
92 android_library("java") { 81 android_library("java") {
93 java_files = java_sources_needing_jni 82 java_files = java_sources_needing_jni
94 deps = [ 83 deps = [
95 "//base:base_java", 84 "//base:base_java",
96 "//third_party/android_protobuf:protobuf_nano_javalib", 85 "//third_party/cardboard-java:cardboard-java",
97 "//third_party/gvr-android-sdk:gvr_common_java",
98 ] 86 ]
99 } 87 }
100 } 88 }
OLDNEW
« no previous file with comments | « device/BUILD.gn ('k') | device/vr/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698