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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 if (is_chromeos) { | 105 if (is_chromeos) { |
106 deps += [ "//chromeos" ] | 106 deps += [ "//chromeos" ] |
107 } | 107 } |
108 | 108 |
109 if (is_mac) { | 109 if (is_mac) { |
110 libs = [ | 110 libs = [ |
111 "CoreWLAN.framework", | 111 "CoreWLAN.framework", |
112 "Foundation.framework", | 112 "Foundation.framework", |
113 ] | 113 ] |
114 } | 114 } |
| 115 |
| 116 if (is_win) { |
| 117 libs = [ "wlanapi.lib" ] |
| 118 ldflags = [ "/DELAYLOAD:wlanapi.dll" ] |
| 119 } |
115 } | 120 } |
116 | 121 |
117 if (is_android) { | 122 if (is_android) { |
118 generate_jni("geolocation_jni_headers") { | 123 generate_jni("geolocation_jni_headers") { |
119 sources = [ | 124 sources = [ |
120 "android/java/src/org/chromium/device/geolocation/LocationProviderAdapter.
java", | 125 "android/java/src/org/chromium/device/geolocation/LocationProviderAdapter.
java", |
121 ] | 126 ] |
122 jni_package = "device" | 127 jni_package = "device" |
123 } | 128 } |
124 | 129 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 } | 210 } |
206 | 211 |
207 if (is_android) { | 212 if (is_android) { |
208 sources -= [ | 213 sources -= [ |
209 "network_location_provider_unittest.cc", | 214 "network_location_provider_unittest.cc", |
210 "wifi_data_provider_common_unittest.cc", | 215 "wifi_data_provider_common_unittest.cc", |
211 ] | 216 ] |
212 deps += [ ":geolocation_java_test_support" ] | 217 deps += [ ":geolocation_java_test_support" ] |
213 } | 218 } |
214 } | 219 } |
OLD | NEW |