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/pdl:BluetoothGeneratedPackets_h", 38 ] 39} 40 41if (use.test) { 42 executable("net_test_device") { 43 include_dirs = [ "//bt/system" ] 44 45 deps = [ 46 "//bt/system/device", 47 "//bt/system/btcore", 48 "//bt/system/osi", 49 ] 50 51 configs += [ 52 "//bt/system:external_gtest_main", 53 "//bt/system:target_defaults", 54 ] 55 56 libs = [ 57 "pthread", 58 "rt", 59 "dl", 60 ] 61 } 62 executable("net_test_device_iot_config") { 63 include_dirs = [ 64 "//bt/system", 65 "//bt/system/stack/include", 66 "//bt/system/device/src", 67 ] 68 69 deps = [ 70 "//bt/system/device", 71 "//bt/system/btcore", 72 ] 73 74 configs += [ 75 "//bt/system:target_defaults", 76 ] 77 78 libs = [ 79 "pthread", 80 "rt", 81 "dl", 82 ] 83 } 84} 85