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 | 6 |
7 if (is_android) { | 7 if (is_android) { |
8 import("//build/config/android/rules.gni") # For generate_jni(). | 8 import("//build/config/android/rules.gni") # For generate_jni(). |
9 } | 9 } |
10 | 10 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 libs = [ | 110 libs = [ |
111 "CoreWLAN.framework", | 111 "CoreWLAN.framework", |
112 "Foundation.framework", | 112 "Foundation.framework", |
113 ] | 113 ] |
114 } | 114 } |
115 } | 115 } |
116 | 116 |
117 if (is_android) { | 117 if (is_android) { |
118 generate_jni("geolocation_jni_headers") { | 118 generate_jni("geolocation_jni_headers") { |
119 sources = [ | 119 sources = [ |
120 "android/java/org/chromium/device/geolocation/LocationProviderAdapter.java
", | 120 "android/java/src/org/chromium/device/geolocation/LocationProviderAdapter.
java", |
121 ] | 121 ] |
122 jni_package = "device" | 122 jni_package = "device" |
123 } | 123 } |
124 | 124 |
125 android_library("geolocation_java") { | 125 android_library("geolocation_java") { |
126 java_files = [ | 126 java_files = [ |
127 "android/java/org/chromium/device/geolocation/LocationProviderAdapter.java
", | 127 "android/java/src/org/chromium/device/geolocation/LocationProviderAdapter.
java", |
128 "android/java/org/chromium/device/geolocation/LocationProviderFactory.java
", | 128 "android/java/src/org/chromium/device/geolocation/LocationProviderFactory.
java", |
129 ] | 129 ] |
130 | 130 |
131 deps = [ | 131 deps = [ |
132 ":geolocation", | 132 ":geolocation", |
133 ":geolocation_jni_headers", | 133 ":geolocation_jni_headers", |
134 "//base:base_java", | 134 "//base:base_java", |
135 ] | 135 ] |
136 } | 136 } |
137 | 137 |
138 android_library("geolocation_java_test_support") { | 138 android_library("geolocation_java_test_support") { |
139 testonly = true | 139 testonly = true |
140 | 140 |
141 java_files = [ "android/java/org/chromium/device/geolocation/MockLocationPro
vider.java" ] | 141 java_files = [ "android/javatests/src/org/chromium/device/geolocation/MockLo
cationProvider.java" ] |
142 deps = [ | 142 deps = [ |
143 ":geolocation_java", | 143 ":geolocation_java", |
144 "//base:base_java", | 144 "//base:base_java", |
145 ] | 145 ] |
146 } | 146 } |
147 } | 147 } |
148 | 148 |
149 source_set("test_support") { | 149 source_set("test_support") { |
150 testonly = true | 150 testonly = true |
151 | 151 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 } | 204 } |
205 | 205 |
206 if (is_android) { | 206 if (is_android) { |
207 sources -= [ | 207 sources -= [ |
208 "network_location_provider_unittest.cc", | 208 "network_location_provider_unittest.cc", |
209 "wifi_data_provider_common_unittest.cc", | 209 "wifi_data_provider_common_unittest.cc", |
210 ] | 210 ] |
211 deps += [ ":geolocation_java_test_support" ] | 211 deps += [ ":geolocation_java_test_support" ] |
212 } | 212 } |
213 } | 213 } |
OLD | NEW |