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