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("btcore") { 18 sources = [ 19 "src/device_class.cc", 20 "src/module.cc", 21 "src/osi_module.cc", 22 "src/property.cc", 23 ] 24 25 include_dirs = [ 26 "include", 27 "//bt/system", 28 ] 29 30 configs += [ "//bt/system:target_defaults" ] 31 32 deps = [ 33 "//bt/system/gd/rust/shim:init_flags_bridge_header", 34 "//bt/system/gd/rust/shim:libbluetooth_rust_interop", 35 ] 36} 37 38if (use.test) { 39 executable("net_test_btcore") { 40 sources = [ 41 "//bt/system/osi/test/AllocationTestHarness.cc", 42 "test/device_class_test.cc", 43 "test/property_test.cc", 44 ] 45 46 include_dirs = [ 47 "include", 48 "//bt/system", 49 ] 50 51 deps = [ 52 "//bt/system/btcore", 53 "//bt/system/osi", 54 "//bt/system/types", 55 ] 56 57 configs += [ 58 "//bt/system:external_gtest_main", 59 "//bt/system:target_defaults", 60 ] 61 62 libs = [ 63 "pthread", 64 "rt", 65 "dl", 66 ] 67 } 68} 69