blob: 01b9cf7e3373da789c306518ffd801dca972117a [file] [log] [blame]
Arman Uguray9ca3fb82015-05-26 14:50:36 -07001#
Jakub Pawlowski5b790fe2017-09-18 09:00:20 -07002# Copyright 2015 Google, Inc.
Arman Uguray9ca3fb82015-05-26 14:50:36 -07003#
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/device_class.cc",
20 "src/hal_util.cc",
Jakub Pawlowski5c2c3032016-05-25 15:53:45 -070021 "src/module.cc",
Pavlin Radoslavovb2a292b2016-10-14 19:34:48 -070022 "src/property.cc",
Pavlin Radoslavovb2a292b2016-10-14 19:34:48 -070023 "src/osi_module.cc",
Scott James Remnant4c292312015-05-12 13:58:49 -070024 ]
25
26 include_dirs = [
27 "include",
Scott James Remnant4c292312015-05-12 13:58:49 -070028 "//",
29 ]
Jakub Pawlowski71f5b3e2016-12-20 12:55:51 -080030
31 deps = [
32 "//third_party/libchrome:base",
33 ]
Scott James Remnant4c292312015-05-12 13:58:49 -070034}
35
36executable("net_test_btcore") {
Marie Janssenb8a38cc2015-05-27 12:36:23 -070037 testonly = true
Scott James Remnant4c292312015-05-12 13:58:49 -070038 sources = [
Jakub Pawlowskie6d12022016-05-12 11:16:46 -070039 "test/device_class_test.cc",
40 "test/property_test.cc",
Jakub Pawlowskie6d12022016-05-12 11:16:46 -070041 "//osi/test/AllocationTestHarness.cc",
Scott James Remnant4c292312015-05-12 13:58:49 -070042 ]
43
44 include_dirs = [
45 "include",
46 "//",
47 ]
48
49 deps = [
50 "//btcore",
51 "//osi",
Jakub Pawlowskid3988fd2017-07-14 21:08:47 -070052 "//types",
Jakub Pawlowskid7a05a02016-02-22 18:04:24 -080053 "//third_party/googletest:gtest_main",
Jakub Pawlowski71f5b3e2016-12-20 12:55:51 -080054 "//third_party/libchrome:base",
Scott James Remnant4c292312015-05-12 13:58:49 -070055 ]
56
Jakub Pawlowskid7a05a02016-02-22 18:04:24 -080057 libs = [
58 "-lpthread",
59 "-lrt",
60 "-ldl",
61 ]
Scott James Remnant4c292312015-05-12 13:58:49 -070062}