| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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("//tools/grit/grit_rule.gni") | |
| 6 | |
| 7 if (is_android) { | 5 if (is_android) { |
| 8 import("//build/config/android/rules.gni") # For generate_jni(). | 6 import("//build/config/android/rules.gni") # For generate_jni(). |
| 9 } | 7 } |
| 10 | 8 |
| 11 config("bluetooth_config") { | 9 config("bluetooth_config") { |
| 12 if (is_win) { | 10 if (is_win) { |
| 13 ldflags = [ | 11 ldflags = [ |
| 14 "/DELAYLOAD:BluetoothApis.dll", | 12 "/DELAYLOAD:BluetoothApis.dll", |
| 15 | 13 |
| 16 # Despite MSDN stating that Bthprops.dll contains the | 14 # Despite MSDN stating that Bthprops.dll contains the |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 "bluetooth_task_manager_win.h", | 119 "bluetooth_task_manager_win.h", |
| 122 "bluetooth_uuid.cc", | 120 "bluetooth_uuid.cc", |
| 123 "bluetooth_uuid.h", | 121 "bluetooth_uuid.h", |
| 124 ] | 122 ] |
| 125 | 123 |
| 126 defines = [ "DEVICE_BLUETOOTH_IMPLEMENTATION" ] | 124 defines = [ "DEVICE_BLUETOOTH_IMPLEMENTATION" ] |
| 127 | 125 |
| 128 all_dependent_configs = [ ":bluetooth_config" ] | 126 all_dependent_configs = [ ":bluetooth_config" ] |
| 129 | 127 |
| 130 deps = [ | 128 deps = [ |
| 131 ":strings", | 129 "strings", |
| 132 "uribeacon", | 130 "uribeacon", |
| 133 "//base", | 131 "//base", |
| 134 "//net", | 132 "//net", |
| 135 "//ui/base", | 133 "//ui/base", |
| 136 ] | 134 ] |
| 137 | 135 |
| 138 if (is_android) { | 136 if (is_android) { |
| 139 deps += [ ":jni_headers" ] | 137 deps += [ ":jni_headers" ] |
| 140 } | 138 } |
| 141 | 139 |
| 142 if (is_chromeos) { | 140 if (is_chromeos) { |
| 143 deps += [ | 141 deps += [ |
| 144 "//chromeos", | 142 "//chromeos", |
| 145 "//dbus", | 143 "//dbus", |
| 146 ] | 144 ] |
| 147 } | 145 } |
| 148 | 146 |
| 149 if (is_mac) { | 147 if (is_mac) { |
| 150 libs = [ "IOBluetooth.framework" ] | 148 libs = [ "IOBluetooth.framework" ] |
| 151 } | 149 } |
| 152 | 150 |
| 153 if (is_win) { | 151 if (is_win) { |
| 154 libs = [ "setupapi.lib" ] | 152 libs = [ "setupapi.lib" ] |
| 155 } | 153 } |
| 156 } | 154 } |
| 157 | 155 |
| 158 grit("strings") { | |
| 159 source = "bluetooth_strings.grd" | |
| 160 outputs = [ | |
| 161 "grit/device_bluetooth_strings.h", | |
| 162 "device_bluetooth_strings_am.pak", | |
| 163 "device_bluetooth_strings_ar.pak", | |
| 164 "device_bluetooth_strings_bg.pak", | |
| 165 "device_bluetooth_strings_bn.pak", | |
| 166 "device_bluetooth_strings_ca.pak", | |
| 167 "device_bluetooth_strings_cs.pak", | |
| 168 "device_bluetooth_strings_da.pak", | |
| 169 "device_bluetooth_strings_de.pak", | |
| 170 "device_bluetooth_strings_el.pak", | |
| 171 "device_bluetooth_strings_en-GB.pak", | |
| 172 "device_bluetooth_strings_en-US.pak", | |
| 173 "device_bluetooth_strings_es.pak", | |
| 174 "device_bluetooth_strings_es-419.pak", | |
| 175 "device_bluetooth_strings_et.pak", | |
| 176 "device_bluetooth_strings_fa.pak", | |
| 177 "device_bluetooth_strings_fake-bidi.pak", | |
| 178 "device_bluetooth_strings_fi.pak", | |
| 179 "device_bluetooth_strings_fil.pak", | |
| 180 "device_bluetooth_strings_fr.pak", | |
| 181 "device_bluetooth_strings_gu.pak", | |
| 182 "device_bluetooth_strings_he.pak", | |
| 183 "device_bluetooth_strings_hi.pak", | |
| 184 "device_bluetooth_strings_hr.pak", | |
| 185 "device_bluetooth_strings_hu.pak", | |
| 186 "device_bluetooth_strings_id.pak", | |
| 187 "device_bluetooth_strings_it.pak", | |
| 188 "device_bluetooth_strings_ja.pak", | |
| 189 "device_bluetooth_strings_kn.pak", | |
| 190 "device_bluetooth_strings_ko.pak", | |
| 191 "device_bluetooth_strings_lt.pak", | |
| 192 "device_bluetooth_strings_lv.pak", | |
| 193 "device_bluetooth_strings_ml.pak", | |
| 194 "device_bluetooth_strings_mr.pak", | |
| 195 "device_bluetooth_strings_ms.pak", | |
| 196 "device_bluetooth_strings_nl.pak", | |
| 197 "device_bluetooth_strings_nb.pak", | |
| 198 "device_bluetooth_strings_pl.pak", | |
| 199 "device_bluetooth_strings_pt-BR.pak", | |
| 200 "device_bluetooth_strings_pt-PT.pak", | |
| 201 "device_bluetooth_strings_ro.pak", | |
| 202 "device_bluetooth_strings_ru.pak", | |
| 203 "device_bluetooth_strings_sk.pak", | |
| 204 "device_bluetooth_strings_sl.pak", | |
| 205 "device_bluetooth_strings_sr.pak", | |
| 206 "device_bluetooth_strings_sv.pak", | |
| 207 "device_bluetooth_strings_sw.pak", | |
| 208 "device_bluetooth_strings_ta.pak", | |
| 209 "device_bluetooth_strings_te.pak", | |
| 210 "device_bluetooth_strings_th.pak", | |
| 211 "device_bluetooth_strings_tr.pak", | |
| 212 "device_bluetooth_strings_uk.pak", | |
| 213 "device_bluetooth_strings_vi.pak", | |
| 214 "device_bluetooth_strings_zh-CN.pak", | |
| 215 "device_bluetooth_strings_zh-TW.pak", | |
| 216 ] | |
| 217 } | |
| 218 | |
| 219 static_library("mocks") { | 156 static_library("mocks") { |
| 220 testonly = true | 157 testonly = true |
| 221 sources = [ | 158 sources = [ |
| 222 "test/mock_bluetooth_adapter.cc", | 159 "test/mock_bluetooth_adapter.cc", |
| 223 "test/mock_bluetooth_adapter.h", | 160 "test/mock_bluetooth_adapter.h", |
| 224 "test/mock_bluetooth_advertisement.cc", | 161 "test/mock_bluetooth_advertisement.cc", |
| 225 "test/mock_bluetooth_advertisement.h", | 162 "test/mock_bluetooth_advertisement.h", |
| 226 "test/mock_bluetooth_central_manager_mac.h", | 163 "test/mock_bluetooth_central_manager_mac.h", |
| 227 "test/mock_bluetooth_central_manager_mac.mm", | 164 "test/mock_bluetooth_central_manager_mac.mm", |
| 228 "test/mock_bluetooth_device.cc", | 165 "test/mock_bluetooth_device.cc", |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 jni_package = "bluetooth" | 199 jni_package = "bluetooth" |
| 263 } | 200 } |
| 264 | 201 |
| 265 android_library("java") { | 202 android_library("java") { |
| 266 java_files = java_sources_needing_jni | 203 java_files = java_sources_needing_jni |
| 267 deps = [ | 204 deps = [ |
| 268 "//base:base_java", | 205 "//base:base_java", |
| 269 ] | 206 ] |
| 270 } | 207 } |
| 271 } | 208 } |
| OLD | NEW |