blob: b09f455d51701c09f9fa90de4fbc11d866b84282 [file] [log] [blame]
Arman Uguray9ca3fb82015-05-26 14:50:36 -07001#
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
Arman Uguray2c494e12015-05-29 14:43:20 -070017static_library("btcore") {
Scott James Remnant4c292312015-05-12 13:58:49 -070018 sources = [
Pavlin Radoslavovb2a292b2016-10-14 19:34:48 -070019 "src/bdaddr.cc",
20 "src/device_class.cc",
21 "src/hal_util.cc",
Jakub Pawlowski5c2c3032016-05-25 15:53:45 -070022 "src/module.cc",
Pavlin Radoslavovb2a292b2016-10-14 19:34:48 -070023 "src/property.cc",
24 "src/uuid.cc",
25 "src/osi_module.cc",
Scott James Remnant4c292312015-05-12 13:58:49 -070026 ]
27
28 include_dirs = [
29 "include",
Scott James Remnant4c292312015-05-12 13:58:49 -070030 "//",
31 ]
32}
33
34executable("net_test_btcore") {
Marie Janssenb8a38cc2015-05-27 12:36:23 -070035 testonly = true
Scott James Remnant4c292312015-05-12 13:58:49 -070036 sources = [
Jakub Pawlowskie6d12022016-05-12 11:16:46 -070037 "test/device_class_test.cc",
38 "test/property_test.cc",
39 "test/uuid_test.cc",
40 "//osi/test/AllocationTestHarness.cc",
Scott James Remnant4c292312015-05-12 13:58:49 -070041 ]
42
43 include_dirs = [
44 "include",
45 "//",
46 ]
47
48 deps = [
49 "//btcore",
50 "//osi",
Jakub Pawlowskid7a05a02016-02-22 18:04:24 -080051 "//third_party/googletest:gtest_main",
Scott James Remnant4c292312015-05-12 13:58:49 -070052 ]
53
Jakub Pawlowskid7a05a02016-02-22 18:04:24 -080054 libs = [
55 "-lpthread",
56 "-lrt",
57 "-ldl",
58 ]
Scott James Remnant4c292312015-05-12 13:58:49 -070059}