Pavlin Radoslavov | bdd34d2 | 2017-04-05 16:18:26 -0700 | [diff] [blame] | 1 | cc_defaults { |
| 2 | name: "audio_a2dp_hw_defaults", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 3 | defaults: ["fluoride_defaults"], |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 4 | include_dirs: [ |
| 5 | "system/bt", |
Jakub Pawlowski | f2f207a | 2017-09-23 14:47:20 -0700 | [diff] [blame] | 6 | "system/bt/include", |
Pavlin Radoslavov | bdd34d2 | 2017-04-05 16:18:26 -0700 | [diff] [blame] | 7 | "system/bt/audio_a2dp_hw/include", |
Colin Cross | 6208435 | 2019-05-23 14:12:59 -0700 | [diff] [blame] | 8 | ], |
Pavlin Radoslavov | bdd34d2 | 2017-04-05 16:18:26 -0700 | [diff] [blame] | 9 | } |
| 10 | |
| 11 | // Audio A2DP shared library for target |
| 12 | // ======================================================== |
| 13 | cc_library { |
| 14 | name: "audio.a2dp.default", |
| 15 | defaults: ["audio_a2dp_hw_defaults"], |
| 16 | relative_install_path: "hw", |
| 17 | srcs: [ |
| 18 | "src/audio_a2dp_hw.cc", |
| 19 | "src/audio_a2dp_hw_utils.cc", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 20 | ], |
| 21 | shared_libs: [ |
| 22 | "liblog", |
Ajay Panicker | ef673c5 | 2016-12-21 15:37:34 -0800 | [diff] [blame] | 23 | "libcutils", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 24 | ], |
| 25 | static_libs: ["libosi"], |
| 26 | } |
| 27 | |
| 28 | cc_library_static { |
| 29 | name: "libaudio-a2dp-hw-utils", |
Pavlin Radoslavov | bdd34d2 | 2017-04-05 16:18:26 -0700 | [diff] [blame] | 30 | defaults: ["audio_a2dp_hw_defaults"], |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 31 | srcs: [ |
Pavlin Radoslavov | bdd34d2 | 2017-04-05 16:18:26 -0700 | [diff] [blame] | 32 | "src/audio_a2dp_hw_utils.cc", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 33 | ], |
| 34 | } |
Pavlin Radoslavov | bdd34d2 | 2017-04-05 16:18:26 -0700 | [diff] [blame] | 35 | |
| 36 | // Audio A2DP library unit tests for target and host |
| 37 | // ======================================================== |
| 38 | cc_test { |
| 39 | name: "net_test_audio_a2dp_hw", |
| 40 | test_suites: ["device-tests"], |
| 41 | defaults: ["audio_a2dp_hw_defaults"], |
| 42 | srcs: [ |
| 43 | "test/audio_a2dp_hw_test.cc", |
| 44 | ], |
| 45 | shared_libs: [ |
| 46 | "liblog", |
| 47 | ], |
Pavlin Radoslavov | 2ecf4ac | 2017-04-24 17:37:20 -0700 | [diff] [blame] | 48 | static_libs: [ |
| 49 | "audio.a2dp.default", |
| 50 | "libosi", |
| 51 | ], |
Pavlin Radoslavov | bdd34d2 | 2017-04-05 16:18:26 -0700 | [diff] [blame] | 52 | } |