Arman Uguray | 9ca3fb8 | 2015-05-26 14:50:36 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2015 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 | |
Arman Uguray | 2c494e1 | 2015-05-29 14:43:20 -0700 | [diff] [blame] | 17 | static_library("btcore") { |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 18 | sources = [ |
Pavlin Radoslavov | b2a292b | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 19 | "src/bdaddr.cc", |
| 20 | "src/device_class.cc", |
| 21 | "src/hal_util.cc", |
Jakub Pawlowski | 5c2c303 | 2016-05-25 15:53:45 -0700 | [diff] [blame] | 22 | "src/module.cc", |
Pavlin Radoslavov | b2a292b | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 23 | "src/property.cc", |
| 24 | "src/uuid.cc", |
| 25 | "src/osi_module.cc", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 26 | ] |
| 27 | |
| 28 | include_dirs = [ |
| 29 | "include", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 30 | "//", |
| 31 | ] |
| 32 | } |
| 33 | |
| 34 | executable("net_test_btcore") { |
Marie Janssen | b8a38cc | 2015-05-27 12:36:23 -0700 | [diff] [blame] | 35 | testonly = true |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 36 | sources = [ |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 37 | "test/device_class_test.cc", |
| 38 | "test/property_test.cc", |
| 39 | "test/uuid_test.cc", |
| 40 | "//osi/test/AllocationTestHarness.cc", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 41 | ] |
| 42 | |
| 43 | include_dirs = [ |
| 44 | "include", |
| 45 | "//", |
| 46 | ] |
| 47 | |
| 48 | deps = [ |
| 49 | "//btcore", |
| 50 | "//osi", |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 51 | "//third_party/googletest:gtest_main", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 52 | ] |
| 53 | |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 54 | libs = [ |
| 55 | "-lpthread", |
| 56 | "-lrt", |
| 57 | "-ldl", |
| 58 | ] |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 59 | } |