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