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

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

Issue 2219203002: 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
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/cardboard/cardboard_vr_device.cc", 37 "android/google_vr/google_vr_device.cc",
38 "android/cardboard/cardboard_vr_device.h", 38 "android/google_vr/google_vr_device.h",
39 "android/cardboard/cardboard_vr_device_provider.cc", 39 "android/google_vr/google_vr_device_provider.cc",
40 "android/cardboard/cardboard_vr_device_provider.h", 40 "android/google_vr/google_vr_device_provider.h",
41 ] 41 ]
42 42
43 deps += [ ":jni_headers" ] 43 deps += [
44 ":jni_headers",
45 "//third_party/gvr-android-sdk:libgvr",
46 "//third_party/gvr-android-sdk:libgvr_shared_library",
47 ]
48 configs += [ "//third_party/gvr-android-sdk:libgvr_config" ]
44 } 49 }
45 } 50 }
46 51
47 static_library("fakes") { 52 static_library("fakes") {
48 testonly = true 53 testonly = true
49 54
50 sources = [ 55 sources = [
51 "test/fake_vr_device.cc", 56 "test/fake_vr_device.cc",
52 "test/fake_vr_device.h", 57 "test/fake_vr_device.h",
53 "test/fake_vr_device_provider.cc", 58 "test/fake_vr_device_provider.cc",
54 "test/fake_vr_device_provider.h", 59 "test/fake_vr_device_provider.h",
55 ] 60 ]
56 61
57 public_deps = [ 62 public_deps = [
63 ":mojo_bindings",
58 ":vr", 64 ":vr",
59 "//base", 65 "//base",
60 "//mojo/public/cpp/bindings", 66 "//mojo/public/cpp/bindings",
61 ] 67 ]
62 } 68 }
63 69
64 mojom("mojo_bindings") { 70 mojom("mojo_bindings") {
65 sources = [ 71 sources = [
66 "vr_service.mojom", 72 "vr_service.mojom",
67 ] 73 ]
68 74
69 use_new_wrapper_types = false 75 use_new_wrapper_types = false
70 } 76 }
71 77
72 if (is_android) { 78 if (is_android) {
73 java_sources_needing_jni = 79 java_sources_needing_jni =
74 [ "android/java/src/org/chromium/device/vr/CardboardVRDevice.java" ] 80 [ "android/java/src/org/chromium/device/vr/GoogleVRDeviceProvider.java" ]
75 81
76 generate_jni("jni_headers") { 82 generate_jni("jni_headers") {
77 sources = java_sources_needing_jni 83 sources = java_sources_needing_jni
78 jni_package = "vr" 84 jni_package = "vr"
79 } 85 }
80 86
81 android_library("java") { 87 android_library("java") {
82 java_files = java_sources_needing_jni 88 java_files = java_sources_needing_jni
83 deps = [ 89 deps = [
84 "//base:base_java", 90 "//base:base_java",
85 "//third_party/cardboard-java:cardboard-java", 91 "//third_party/gvr-android-sdk:gvr_common_java",
86 ] 92 ]
87 } 93 }
88 } 94 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698