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