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