1# 2# Copyright (C) 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/bdaddr.cc", 20 "src/device_class.cc", 21 "src/hal_util.cc", 22 "src/module.cc", 23 "src/property.cc", 24 "src/uuid.cc", 25 "src/osi_module.cc", 26 ] 27 28 include_dirs = [ 29 "include", 30 "//", 31 ] 32 33 deps = [ 34 "//third_party/libchrome:base", 35 ] 36} 37 38executable("net_test_btcore") { 39 testonly = true 40 sources = [ 41 "test/device_class_test.cc", 42 "test/property_test.cc", 43 "test/uuid_test.cc", 44 "//osi/test/AllocationTestHarness.cc", 45 ] 46 47 include_dirs = [ 48 "include", 49 "//", 50 ] 51 52 deps = [ 53 "//btcore", 54 "//osi", 55 "//third_party/googletest:gtest_main", 56 "//third_party/libchrome:base", 57 ] 58 59 libs = [ 60 "-lpthread", 61 "-lrt", 62 "-ldl", 63 ] 64} 65