Index: content/public/android/BUILD.gn |
diff --git a/content/public/android/BUILD.gn b/content/public/android/BUILD.gn |
index cd610f9a81639863f668e87ccb69df4e2aba1e36..b198f008df314622d3d8db85633c88f27c306257 100644 |
--- a/content/public/android/BUILD.gn |
+++ b/content/public/android/BUILD.gn |
@@ -61,6 +61,10 @@ android_library("content_java") { |
] |
DEPRECATED_java_in_dir = "java/src" |
+ |
+ if (enable_webvr) { |
+ deps += [ "//third_party/cardboard-java:cardboard-java" ] |
+ } |
} |
java_strings_grd("content_strings_grd") { |
@@ -155,6 +159,13 @@ generate_jar_jni("jar_jni") { |
generate_jni("content_jni_headers") { |
sources = rebase_path(content_jni_gypi_values.sources, "", "../..") |
jni_package = "content" |
+ |
+ if (enable_webvr) { |
+ sources += [ "//content/public/android/java/src/org/chromium/content/browser/input/CardboardVRDevice.java" ] |
+ deps = [ |
+ "//third_party/cardboard-java:cardboard-java", |
+ ] |
+ } |
} |
group("jni") { |