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 | |
Jakub Pawlowski | 121882e | 2017-10-19 19:51:57 -0700 | [diff] [blame] | 17 | config("libbluetooth_config") { |
| 18 | include_dirs = [ |
| 19 | "../include", |
| 20 | ] |
| 21 | } |
| 22 | |
| 23 | shared_library("bluetooth") { |
Jakub Pawlowski | 6ea3e14 | 2017-10-09 15:13:38 -0700 | [diff] [blame] | 24 | |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 25 | # HAL layer |
| 26 | sources = [ |
Jakub Pawlowski | 713993d | 2016-04-21 13:16:45 -0700 | [diff] [blame] | 27 | "//btif/src/bluetooth.cc", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 28 | ] |
| 29 | |
| 30 | # platform specific |
| 31 | sources += [ |
Pavlin Radoslavov | b2a292b | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 32 | "bte_conf.cc", |
| 33 | "bte_init.cc", |
Jakub Pawlowski | cc8d3ab | 2016-10-13 15:43:15 -0700 | [diff] [blame] | 34 | "bte_init_cpp_logging.cc", |
Pavlin Radoslavov | b2a292b | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 35 | "bte_logmsg.cc", |
| 36 | "bte_main.cc", |
| 37 | "stack_config.cc", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 38 | ] |
| 39 | |
Jakub Pawlowski | 121882e | 2017-10-19 19:51:57 -0700 | [diff] [blame] | 40 | public_configs = [ ":libbluetooth_config" ] |
| 41 | |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 42 | include_dirs = [ |
| 43 | "//", |
| 44 | "//bta/include", |
| 45 | "//bta/sys", |
| 46 | "//bta/dm", |
| 47 | "//btcore/include", |
Jakub Pawlowski | c451068 | 2017-10-18 04:03:41 -0700 | [diff] [blame] | 48 | "//internal_include", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 49 | "//stack/include", |
| 50 | "//stack/l2cap", |
| 51 | "//stack/a2dp", |
| 52 | "//stack/btm", |
| 53 | "//stack/avdt", |
| 54 | "//hci", |
| 55 | "//hci/include", |
| 56 | "//udrv/include", |
| 57 | "//btif/include", |
| 58 | "//btif/co", |
| 59 | "//hci/includ", |
| 60 | "//vnd/include", |
| 61 | "//brcm/include", |
| 62 | "//embdrv/sbc/encoder/include", |
| 63 | "//embdrv/sbc/decoder/include", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 64 | "//utils/include", |
Marie Janssen | 3e54b60 | 2015-06-11 15:18:01 -0700 | [diff] [blame] | 65 | "//test/suite", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 66 | ] |
| 67 | |
| 68 | deps = [ |
| 69 | "//bta", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 70 | "//btcore", |
Arman Uguray | 6c014ac | 2015-05-29 15:30:13 -0700 | [diff] [blame] | 71 | "//btif", |
| 72 | "//device", |
Jakub Pawlowski | de3c343 | 2018-05-25 21:07:38 -0700 | [diff] [blame] | 73 | "//embdrv/g722", |
Arman Uguray | 6c014ac | 2015-05-29 15:30:13 -0700 | [diff] [blame] | 74 | "//embdrv/sbc", |
Arman Uguray | 6c014ac | 2015-05-29 15:30:13 -0700 | [diff] [blame] | 75 | "//hci", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 76 | "//osi", |
Jakub Pawlowski | 9e81461 | 2018-05-25 09:31:26 -0700 | [diff] [blame] | 77 | "//packet", |
Arman Uguray | 6c014ac | 2015-05-29 15:30:13 -0700 | [diff] [blame] | 78 | "//stack", |
Jakub Pawlowski | cc8d3ab | 2016-10-13 15:43:15 -0700 | [diff] [blame] | 79 | "//third_party/libchrome:base", |
Alain Vongsouvanh | 9a58e68 | 2016-03-29 17:33:55 -0700 | [diff] [blame] | 80 | "//third_party/tinyxml2", |
Arman Uguray | 6c014ac | 2015-05-29 15:30:13 -0700 | [diff] [blame] | 81 | "//udrv", |
| 82 | "//utils", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 83 | ] |
| 84 | |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 85 | cflags_c = [ |
| 86 | "-Lobj/osi", |
| 87 | "-losi", |
| 88 | ] |
| 89 | libs = [ |
| 90 | "-ldl", |
| 91 | "-lpthread", |
| 92 | "-lresolv", |
| 93 | "-lrt", |
| 94 | "-lz", |
Jakub Pawlowski | 029a43b | 2016-10-19 23:31:13 -0700 | [diff] [blame] | 95 | "-latomic", |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 96 | ] |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 97 | } |