blob: 76d70f8fbfb112b0b9cb0668a65a846b8b167d9b [file] [log] [blame]
Jakub Pawlowskic8dcd252018-10-25 15:12:43 +02001#
2# Copyright 2018 The Android Open Source Project
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("common") {
18 sources = [
19 "message_loop_thread.cc",
20 "metrics_linux.cc",
21 "time_util.cc",
22 "timer.cc",
23 ]
24
25 include_dirs = [
26 "//",
27 "//stack/include",
28 "//linux_include",
29 "//internal_include",
30 ]
31
32 deps = [
33 "//third_party/libchrome:base",
34 ]
35}
36
37executable("bt_test_common") {
38 testonly = true
39 sources = [
40 "leaky_bonded_queue_unittest.cc",
41 "state_machine_unittest.cc",
42 "time_util_unittest.cc",
43 "timer_unittest.cc"
44 ]
45
46 include_dirs = [
47 "//",
48 "//common",
49 ]
50
51 deps = [
52 "//common",
53 "//third_party/googletest:gtest_main",
54 "//third_party/googletest:gmock_main",
55 "//third_party/libchrome:base",
56 ]
57
58 libs = [
59 "-lpthread",
60 "-lrt",
61 ]
62}