blob: fa9a4af4c166705a367e1651154722b1c7479051 [file] [log] [blame]
Jakub Pawlowskid3988fd2017-07-14 21:08:47 -07001#
Jakub Pawlowski5b790fe2017-09-18 09:00:20 -07002# Copyright 2017 Google, Inc.
Jakub Pawlowskid3988fd2017-07-14 21:08:47 -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
17static_library("types") {
18 cflags = [
19 "-fvisibility=default",
20 ]
21
22 sources = [
Jack Hefd456112017-09-27 18:25:56 -070023 "bluetooth/uuid.cc",
Jakub Pawlowski83db4992018-11-20 19:27:11 +010024 "le_address.cc",
25 "raw_address.cc",
Jakub Pawlowskid3988fd2017-07-14 21:08:47 -070026 ]
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",
Jack Hefd456112017-09-27 18:25:56 -070041 "test/bluetooth/uuid_unittest.cc",
Jakub Pawlowskid3988fd2017-07-14 21:08:47 -070042 ]
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}