| 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 } |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 use_new_wrapper_types = false | 66 use_new_wrapper_types = false |
| 67 } | 67 } |
| 68 | 68 |
| 69 if (is_android) { | 69 if (is_android) { |
| 70 java_sources_needing_jni = | 70 java_sources_needing_jni = |
| 71 [ "android/java/src/org/chromium/device/vr/CardboardVRDevice.java" ] | 71 [ "android/java/src/org/chromium/device/vr/CardboardVRDevice.java" ] |
| 72 | 72 |
| 73 generate_jni("jni_headers") { | 73 generate_jni("jni_headers") { |
| 74 sources = java_sources_needing_jni | 74 sources = java_sources_needing_jni |
| 75 jni_package = "vr" | 75 jni_package = "vr" |
| 76 | |
| 77 public_deps = [ | |
| 78 "//third_party/cardboard-java:cardboard-java", | |
| 79 ] | |
| 80 } | 76 } |
| 81 | 77 |
| 82 android_library("java") { | 78 android_library("java") { |
| 83 java_files = java_sources_needing_jni | 79 java_files = java_sources_needing_jni |
| 84 deps = [ | 80 deps = [ |
| 85 "//base:base_java", | 81 "//base:base_java", |
| 86 "//third_party/cardboard-java:cardboard-java", | 82 "//third_party/cardboard-java:cardboard-java", |
| 87 ] | 83 ] |
| 88 } | 84 } |
| 89 } | 85 } |
| OLD | NEW |