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 | 292ab25 | 2018-10-23 15:57:20 +0200 | [diff] [blame] | 19 | "a2dp_sink.cc", |
| 20 | "a2dp_source.cc", |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 21 | "adapter.cc", |
Jakub Pawlowski | 292ab25 | 2018-10-23 15:57:20 +0200 | [diff] [blame] | 22 | "avrcp_control.cc", |
| 23 | "avrcp_target.cc", |
| 24 | "common/bluetooth/a2dp_codec_config.cc", |
Jakub Pawlowski | 5f7514d | 2016-08-25 13:14:26 -0700 | [diff] [blame] | 25 | "common/bluetooth/adapter_state.cc", |
| 26 | "common/bluetooth/advertise_data.cc", |
| 27 | "common/bluetooth/advertise_settings.cc", |
Jakub Pawlowski | 292ab25 | 2018-10-23 15:57:20 +0200 | [diff] [blame] | 28 | "common/bluetooth/avrcp_int_value.cc", |
| 29 | "common/bluetooth/avrcp_media_attr.cc", |
| 30 | "common/bluetooth/avrcp_register_notification_response.cc", |
Jakub Pawlowski | 5f7514d | 2016-08-25 13:14:26 -0700 | [diff] [blame] | 31 | "common/bluetooth/characteristic.cc", |
| 32 | "common/bluetooth/descriptor.cc", |
Jakub Pawlowski | 292ab25 | 2018-10-23 15:57:20 +0200 | [diff] [blame] | 33 | "common/bluetooth/remote_device_props.cc", |
Jakub Pawlowski | 5f7514d | 2016-08-25 13:14:26 -0700 | [diff] [blame] | 34 | "common/bluetooth/scan_filter.cc", |
| 35 | "common/bluetooth/scan_result.cc", |
| 36 | "common/bluetooth/scan_settings.cc", |
| 37 | "common/bluetooth/service.cc", |
Jakub Pawlowski | 5f7514d | 2016-08-25 13:14:26 -0700 | [diff] [blame] | 38 | "common/bluetooth/util/atomic_string.cc", |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 39 | "daemon.cc", |
| 40 | "gatt_client.cc", |
| 41 | "gatt_server.cc", |
| 42 | "gatt_server_old.cc", |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 43 | "hal/bluetooth_gatt_interface.cc", |
Jakub Pawlowski | 5f7514d | 2016-08-25 13:14:26 -0700 | [diff] [blame] | 44 | "hal/bluetooth_interface.cc", |
Jakub Pawlowski | 79c2ff9 | 2016-10-31 12:56:12 -0700 | [diff] [blame] | 45 | "ipc/dbus/bluetooth_adapter.cc", |
| 46 | "ipc/dbus/ipc_handler_dbus.cc", |
Jakub Pawlowski | 292ab25 | 2018-10-23 15:57:20 +0200 | [diff] [blame] | 47 | "hal/bluetooth_av_interface.cc", |
| 48 | "hal/bluetooth_avrcp_interface.cc", |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 49 | "hal/fake_bluetooth_gatt_interface.cc", |
| 50 | "hal/fake_bluetooth_interface.cc", |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 51 | "ipc/ipc_handler.cc", |
Jack He | 1f60d2d | 2016-11-22 12:39:52 -0800 | [diff] [blame] | 52 | "ipc/ipc_handler_linux.cc", |
Jakub Pawlowski | 5f7514d | 2016-08-25 13:14:26 -0700 | [diff] [blame] | 53 | "ipc/ipc_manager.cc", |
| 54 | "ipc/linux_ipc_host.cc", |
| 55 | "logging_helpers.cc", |
Jakub Pawlowski | 67d5a25 | 2016-07-13 11:55:16 -0700 | [diff] [blame] | 56 | "low_energy_advertiser.cc", |
Jakub Pawlowski | c3f6a51 | 2016-10-27 11:49:40 -0700 | [diff] [blame] | 57 | "low_energy_scanner.cc", |
Jakub Pawlowski | 5f7514d | 2016-08-25 13:14:26 -0700 | [diff] [blame] | 58 | "low_energy_client.cc", |
| 59 | "settings.cc", |
Arman Uguray | f2d6434 | 2015-07-08 15:47:39 -0700 | [diff] [blame] | 60 | ] |
| 61 | |
| 62 | include_dirs = [ |
| 63 | "//", |
Jakub Pawlowski | 292ab25 | 2018-10-23 15:57:20 +0200 | [diff] [blame] | 64 | "//linux_include", |
Jakub Pawlowski | f2f207a | 2017-09-23 14:47:20 -0700 | [diff] [blame] | 65 | "//include", |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 66 | "//service/common", |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 67 | "//third_party/modp_b64/modp64", |
Arman Uguray | f2d6434 | 2015-07-08 15:47:39 -0700 | [diff] [blame] | 68 | ] |
Jakub Pawlowski | 219d4b6 | 2016-02-25 12:16:31 -0800 | [diff] [blame] | 69 | |
| 70 | deps = [ |
Jakub Pawlowski | d3988fd | 2017-07-14 21:08:47 -0700 | [diff] [blame] | 71 | "//types", |
Jakub Pawlowski | 9e81461 | 2018-05-25 09:31:26 -0700 | [diff] [blame] | 72 | "//osi", |
Jakub Pawlowski | d3988fd | 2017-07-14 21:08:47 -0700 | [diff] [blame] | 73 | "//third_party/libchrome:base", |
Jakub Pawlowski | 219d4b6 | 2016-02-25 12:16:31 -0800 | [diff] [blame] | 74 | ] |
Arman Uguray | 065d0f7 | 2015-07-16 18:12:13 -0700 | [diff] [blame] | 75 | } |
| 76 | |
| 77 | executable("bluetoothtbd") { |
| 78 | sources = [ |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 79 | "main.cc", |
Arman Uguray | 065d0f7 | 2015-07-16 18:12:13 -0700 | [diff] [blame] | 80 | ] |
| 81 | |
| 82 | deps = [ |
| 83 | ":service", |
| 84 | "//btcore", |
| 85 | "//third_party/libchrome:base", |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 86 | "//third_party/modp_b64", |
Arman Uguray | 065d0f7 | 2015-07-16 18:12:13 -0700 | [diff] [blame] | 87 | ] |
| 88 | |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 89 | include_dirs = [ "//" ] |
Arman Uguray | 065d0f7 | 2015-07-16 18:12:13 -0700 | [diff] [blame] | 90 | |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 91 | libs = [ |
| 92 | "-ldl", |
| 93 | "-lpthread", |
| 94 | "-lrt", |
| 95 | ] |
Arman Uguray | 065d0f7 | 2015-07-16 18:12:13 -0700 | [diff] [blame] | 96 | } |
| 97 | |
| 98 | executable("service_unittests") { |
| 99 | testonly = true |
| 100 | sources = [ |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 101 | "test/fake_hal_util.cc", |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 102 | "test/settings_unittest.cc", |
Arman Uguray | 065d0f7 | 2015-07-16 18:12:13 -0700 | [diff] [blame] | 103 | ] |
| 104 | |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 105 | include_dirs = [ "//" ] |
Arman Uguray | f2d6434 | 2015-07-08 15:47:39 -0700 | [diff] [blame] | 106 | |
| 107 | deps = [ |
Arman Uguray | 065d0f7 | 2015-07-16 18:12:13 -0700 | [diff] [blame] | 108 | ":service", |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 109 | "//third_party/googletest:gmock_main", |
Arman Uguray | f2d6434 | 2015-07-08 15:47:39 -0700 | [diff] [blame] | 110 | "//third_party/libchrome:base", |
| 111 | "//third_party/modp_b64", |
| 112 | ] |
Arman Uguray | f2d6434 | 2015-07-08 15:47:39 -0700 | [diff] [blame] | 113 | } |