Arman Uguray | f2d6434 | 2015-07-08 15:47:39 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2015 Google |
| 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 | 065d0f7 | 2015-07-16 18:12:13 -0700 | [diff] [blame] | 17 | source_set("service") { |
Arman Uguray | f2d6434 | 2015-07-08 15:47:39 -0700 | [diff] [blame] | 18 | sources = [ |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 19 | "adapter.cc", |
Jakub Pawlowski | 5f7514d | 2016-08-25 13:14:26 -0700 | [diff] [blame] | 20 | "common/bluetooth/adapter_state.cc", |
| 21 | "common/bluetooth/advertise_data.cc", |
| 22 | "common/bluetooth/advertise_settings.cc", |
| 23 | "common/bluetooth/characteristic.cc", |
| 24 | "common/bluetooth/descriptor.cc", |
| 25 | "common/bluetooth/scan_filter.cc", |
| 26 | "common/bluetooth/scan_result.cc", |
| 27 | "common/bluetooth/scan_settings.cc", |
| 28 | "common/bluetooth/service.cc", |
| 29 | "common/bluetooth/util/address_helper.cc", |
| 30 | "common/bluetooth/util/atomic_string.cc", |
| 31 | "common/bluetooth/uuid.cc", |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 32 | "daemon.cc", |
| 33 | "gatt_client.cc", |
| 34 | "gatt_server.cc", |
| 35 | "gatt_server_old.cc", |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 36 | "hal/bluetooth_gatt_interface.cc", |
Jakub Pawlowski | 5f7514d | 2016-08-25 13:14:26 -0700 | [diff] [blame] | 37 | "hal/bluetooth_interface.cc", |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 38 | "hal/fake_bluetooth_gatt_interface.cc", |
| 39 | "hal/fake_bluetooth_interface.cc", |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 40 | "ipc/ipc_handler.cc", |
Jack He | 1f60d2d | 2016-11-22 12:39:52 -0800 | [diff] [blame^] | 41 | "ipc/ipc_handler_linux.cc", |
Jakub Pawlowski | 5f7514d | 2016-08-25 13:14:26 -0700 | [diff] [blame] | 42 | "ipc/ipc_manager.cc", |
| 43 | "ipc/linux_ipc_host.cc", |
| 44 | "logging_helpers.cc", |
Jakub Pawlowski | 67d5a25 | 2016-07-13 11:55:16 -0700 | [diff] [blame] | 45 | "low_energy_advertiser.cc", |
Jakub Pawlowski | c3f6a51 | 2016-10-27 11:49:40 -0700 | [diff] [blame] | 46 | "low_energy_scanner.cc", |
Jakub Pawlowski | 5f7514d | 2016-08-25 13:14:26 -0700 | [diff] [blame] | 47 | "low_energy_client.cc", |
| 48 | "settings.cc", |
Arman Uguray | f2d6434 | 2015-07-08 15:47:39 -0700 | [diff] [blame] | 49 | ] |
| 50 | |
| 51 | include_dirs = [ |
| 52 | "//", |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 53 | "//service/common", |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 54 | "//third_party/modp_b64/modp64", |
Jakub Pawlowski | d550019 | 2016-10-19 18:35:18 -0700 | [diff] [blame] | 55 | "//third_party/libhardware/include", |
Arman Uguray | f2d6434 | 2015-07-08 15:47:39 -0700 | [diff] [blame] | 56 | ] |
Jakub Pawlowski | 219d4b6 | 2016-02-25 12:16:31 -0800 | [diff] [blame] | 57 | |
| 58 | deps = [ |
| 59 | "//third_party/libchrome:base" |
| 60 | ] |
Arman Uguray | 065d0f7 | 2015-07-16 18:12:13 -0700 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | executable("bluetoothtbd") { |
| 64 | sources = [ |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 65 | "main.cc", |
Arman Uguray | 065d0f7 | 2015-07-16 18:12:13 -0700 | [diff] [blame] | 66 | ] |
| 67 | |
| 68 | deps = [ |
| 69 | ":service", |
| 70 | "//btcore", |
| 71 | "//third_party/libchrome:base", |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 72 | "//third_party/modp_b64", |
Arman Uguray | 065d0f7 | 2015-07-16 18:12:13 -0700 | [diff] [blame] | 73 | ] |
| 74 | |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 75 | include_dirs = [ "//" ] |
Arman Uguray | 065d0f7 | 2015-07-16 18:12:13 -0700 | [diff] [blame] | 76 | |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 77 | libs = [ |
| 78 | "-ldl", |
| 79 | "-lpthread", |
| 80 | "-lrt", |
| 81 | ] |
Arman Uguray | 065d0f7 | 2015-07-16 18:12:13 -0700 | [diff] [blame] | 82 | } |
| 83 | |
| 84 | executable("service_unittests") { |
| 85 | testonly = true |
| 86 | sources = [ |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 87 | "test/fake_hal_util.cc", |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 88 | "test/settings_unittest.cc", |
| 89 | "test/uuid_unittest.cc", |
Arman Uguray | 065d0f7 | 2015-07-16 18:12:13 -0700 | [diff] [blame] | 90 | ] |
| 91 | |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 92 | include_dirs = [ "//" ] |
Arman Uguray | f2d6434 | 2015-07-08 15:47:39 -0700 | [diff] [blame] | 93 | |
| 94 | deps = [ |
Arman Uguray | 065d0f7 | 2015-07-16 18:12:13 -0700 | [diff] [blame] | 95 | ":service", |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 96 | "//third_party/googletest:gmock_main", |
Arman Uguray | f2d6434 | 2015-07-08 15:47:39 -0700 | [diff] [blame] | 97 | "//third_party/libchrome:base", |
| 98 | "//third_party/modp_b64", |
| 99 | ] |
Arman Uguray | f2d6434 | 2015-07-08 15:47:39 -0700 | [diff] [blame] | 100 | } |