Arman Uguray | f2d6434 | 2015-07-08 15:47:39 -0700 | [diff] [blame] | 1 | # |
Jakub Pawlowski | 5b790fe | 2017-09-18 09:00:20 -0700 | [diff] [blame] | 2 | # Copyright 2015 Google |
Arman Uguray | f2d6434 | 2015-07-08 15:47:39 -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 | 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", |
Jakub Pawlowski | 5f7514d | 2016-08-25 13:14:26 -0700 | [diff] [blame] | 29 | "common/bluetooth/util/atomic_string.cc", |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 30 | "daemon.cc", |
| 31 | "gatt_client.cc", |
| 32 | "gatt_server.cc", |
| 33 | "gatt_server_old.cc", |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 34 | "hal/bluetooth_gatt_interface.cc", |
Jakub Pawlowski | 5f7514d | 2016-08-25 13:14:26 -0700 | [diff] [blame] | 35 | "hal/bluetooth_interface.cc", |
Jakub Pawlowski | 79c2ff9 | 2016-10-31 12:56:12 -0700 | [diff] [blame] | 36 | "ipc/dbus/bluetooth_adapter.cc", |
| 37 | "ipc/dbus/ipc_handler_dbus.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 | f2f207a | 2017-09-23 14:47:20 -0700 | [diff] [blame] | 53 | "//include", |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 54 | "//service/common", |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 55 | "//third_party/modp_b64/modp64", |
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 = [ |
Jakub Pawlowski | d3988fd | 2017-07-14 21:08:47 -0700 | [diff] [blame] | 59 | "//types", |
| 60 | "//third_party/libchrome:base", |
Jakub Pawlowski | 219d4b6 | 2016-02-25 12:16:31 -0800 | [diff] [blame] | 61 | ] |
Arman Uguray | 065d0f7 | 2015-07-16 18:12:13 -0700 | [diff] [blame] | 62 | } |
| 63 | |
| 64 | executable("bluetoothtbd") { |
| 65 | sources = [ |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 66 | "main.cc", |
Arman Uguray | 065d0f7 | 2015-07-16 18:12:13 -0700 | [diff] [blame] | 67 | ] |
| 68 | |
| 69 | deps = [ |
| 70 | ":service", |
| 71 | "//btcore", |
| 72 | "//third_party/libchrome:base", |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 73 | "//third_party/modp_b64", |
Arman Uguray | 065d0f7 | 2015-07-16 18:12:13 -0700 | [diff] [blame] | 74 | ] |
| 75 | |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 76 | include_dirs = [ "//" ] |
Arman Uguray | 065d0f7 | 2015-07-16 18:12:13 -0700 | [diff] [blame] | 77 | |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 78 | libs = [ |
| 79 | "-ldl", |
| 80 | "-lpthread", |
| 81 | "-lrt", |
| 82 | ] |
Arman Uguray | 065d0f7 | 2015-07-16 18:12:13 -0700 | [diff] [blame] | 83 | } |
| 84 | |
| 85 | executable("service_unittests") { |
| 86 | testonly = true |
| 87 | sources = [ |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 88 | "test/fake_hal_util.cc", |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 89 | "test/settings_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 | } |