Jakub Pawlowski | d3988fd | 2017-07-14 21:08:47 -0700 | [diff] [blame] | 1 | # |
Jakub Pawlowski | 5b790fe | 2017-09-18 09:00:20 -0700 | [diff] [blame] | 2 | # Copyright 2017 Google, Inc. |
Jakub Pawlowski | d3988fd | 2017-07-14 21:08:47 -0700 | [diff] [blame] | 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 | |
| 17 | static_library("types") { |
| 18 | cflags = [ |
| 19 | "-fvisibility=default", |
| 20 | ] |
| 21 | |
| 22 | sources = [ |
Jack He | fd45611 | 2017-09-27 18:25:56 -0700 | [diff] [blame] | 23 | "bluetooth/uuid.cc", |
Jakub Pawlowski | 83db499 | 2018-11-20 19:27:11 +0100 | [diff] [blame] | 24 | "le_address.cc", |
| 25 | "raw_address.cc", |
Jakub Pawlowski | d3988fd | 2017-07-14 21:08:47 -0700 | [diff] [blame] | 26 | ] |
| 27 | |
| 28 | include_dirs = [ |
| 29 | "//", |
| 30 | ] |
| 31 | |
| 32 | deps = [ |
| 33 | "//third_party/libchrome:base", |
| 34 | ] |
| 35 | } |
| 36 | |
| 37 | executable("types_unittests") { |
| 38 | testonly = true |
| 39 | sources = [ |
| 40 | "test/raw_address_unittest.cc", |
Jack He | fd45611 | 2017-09-27 18:25:56 -0700 | [diff] [blame] | 41 | "test/bluetooth/uuid_unittest.cc", |
Jakub Pawlowski | d3988fd | 2017-07-14 21:08:47 -0700 | [diff] [blame] | 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 | } |