1# 2# Copyright 2015 Google, Inc. 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at: 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17static_library("device") { 18 sources = [ 19 "src/esco_parameters.cc", 20 "src/interop.cc", 21 "src/device_iot_config.cc", 22 "src/device_iot_config_int.cc", 23 ] 24 25 include_dirs = [ 26 "//bt/system/", 27 "//bt/system/stack/include", 28 ] 29 30 configs += [ 31 "//bt/system:target_defaults", 32 "//bt/system/log:log_defaults", 33 ] 34 35 deps = [ 36 "//bt/flags:bluetooth_flags_c_lib", 37 "//bt/system/gd/rust/shim:init_flags_bridge_header", 38 "//bt/system/gd/rust/shim:libbluetooth_rust_interop", 39 "//bt/system/pdl:BluetoothGeneratedPackets_h", 40 ] 41} 42 43if (use.test) { 44 executable("net_test_device") { 45 include_dirs = [ "//bt/system" ] 46 47 deps = [ 48 "//bt/system/device", 49 "//bt/system/btcore", 50 "//bt/system/osi", 51 ] 52 53 configs += [ 54 "//bt/system:external_gtest_main", 55 "//bt/system:target_defaults", 56 ] 57 58 libs = [ 59 "pthread", 60 "rt", 61 "dl", 62 ] 63 } 64 executable("net_test_device_iot_config") { 65 include_dirs = [ 66 "//bt/system", 67 "//bt/system/stack/include", 68 "//bt/system/device/src", 69 ] 70 71 deps = [ 72 "//bt/system/device", 73 "//bt/system/btcore", 74 ] 75 76 configs += [ 77 "//bt/system:target_defaults", 78 ] 79 80 libs = [ 81 "pthread", 82 "rt", 83 "dl", 84 ] 85 } 86} 87