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