1#
2#  Copyright 2017 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("types") {
18  cflags = [
19     "-fvisibility=default",
20  ]
21
22  sources = [
23    "bluetooth/uuid.cc",
24    "le_address.cc",
25    "raw_address.cc",
26  ]
27
28  include_dirs = [
29    "//",
30  ]
31
32  deps = [
33    "//third_party/libchrome:base",
34  ]
35}
36
37executable("types_unittests") {
38  testonly = true
39  sources = [
40    "test/raw_address_unittest.cc",
41    "test/bluetooth/uuid_unittest.cc",
42  ]
43
44  include_dirs = [
45    "//",
46  ]
47
48  libs = [
49     "-ldl",
50     "-lpthread",
51     "-lresolv",
52     "-lrt",
53     "-lz",
54     "-latomic",
55  ]
56
57  deps = [
58    "//types",
59    "//third_party/googletest:gmock_main",
60    "//third_party/libchrome:base",
61  ]
62}
63