Bob Badour | 3bffd87 | 2021-02-12 15:28:04 -0800 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["external_libldac_license"], |
| 3 | } |
| 4 | |
| 5 | // Added automatically by a large-scale-change |
| 6 | // |
| 7 | // large-scale-change included anything that looked like it might be a license |
| 8 | // text as a license_text. e.g. LICENSE, NOTICE, COPYING etc. |
| 9 | // |
| 10 | // Please consider removing redundant or irrelevant files from 'license_text:'. |
| 11 | // See: http://go/android-license-faq |
| 12 | license { |
| 13 | name: "external_libldac_license", |
| 14 | visibility: [":__subpackages__"], |
| 15 | license_kinds: [ |
| 16 | "SPDX-license-identifier-Apache-2.0", |
| 17 | ], |
| 18 | license_text: [ |
| 19 | "LICENSE", |
| 20 | "NOTICE", |
| 21 | ], |
| 22 | } |
| 23 | |
William Escande | 365e76c | 2022-04-28 11:53:12 -0700 | [diff] [blame] | 24 | cc_library { |
Jack He | 9a3015d | 2017-01-10 15:51:04 -0800 | [diff] [blame] | 25 | name: "libldacBT_enc", |
Vijay Venkatraman | 7f348fe | 2017-05-17 14:19:58 -0700 | [diff] [blame] | 26 | vendor_available: true, |
Justin Yun | 80947e8 | 2020-11-11 18:09:56 +0900 | [diff] [blame] | 27 | product_available: true, |
Justin Yun | aa89fab | 2017-07-24 15:19:44 +0900 | [diff] [blame] | 28 | vndk: { |
| 29 | enabled: true, |
| 30 | }, |
William Escande | 365e76c | 2022-04-28 11:53:12 -0700 | [diff] [blame] | 31 | host_supported: true, |
Jack He | 9a3015d | 2017-01-10 15:51:04 -0800 | [diff] [blame] | 32 | arch: { |
| 33 | arm: { |
| 34 | instruction_set: "arm", |
| 35 | }, |
| 36 | }, |
| 37 | export_include_dirs: ["inc"], |
| 38 | srcs: [ |
| 39 | "src/ldaclib.c", |
| 40 | "src/ldacBT.c", |
| 41 | ], |
| 42 | // -D_32BIT_FIXED_POINT should be added to cflags for devices without a FPU |
| 43 | // unit such as ARM Cortex-R series or external 32-bit DSPs. |
Pavlin Radoslavov | 9ae924d | 2017-02-23 20:54:41 -0800 | [diff] [blame] | 44 | cflags: ["-O2", "-Werror", "-Wall", "-Wextra"], |
William Escande | 365e76c | 2022-04-28 11:53:12 -0700 | [diff] [blame] | 45 | min_sdk_version: "Tiramisu", |
| 46 | apex_available: [ |
| 47 | "//apex_available:platform", |
| 48 | "com.android.bluetooth", |
| 49 | ], |
| 50 | visibility: [ |
| 51 | "//external/oss-fuzz", |
| 52 | "//packages/modules/Bluetooth:__subpackages__", |
| 53 | "//packages/modules/vndk/apex", |
| 54 | ], |
Jack He | 9a3015d | 2017-01-10 15:51:04 -0800 | [diff] [blame] | 55 | } |
Chisato Kenmochi | 878aad2 | 2017-02-28 13:55:31 +0900 | [diff] [blame] | 56 | |
William Escande | 365e76c | 2022-04-28 11:53:12 -0700 | [diff] [blame] | 57 | cc_library { |
Chisato Kenmochi | 878aad2 | 2017-02-28 13:55:31 +0900 | [diff] [blame] | 58 | name: "libldacBT_abr", |
Vijay Venkatraman | 7f348fe | 2017-05-17 14:19:58 -0700 | [diff] [blame] | 59 | vendor_available: true, |
Justin Yun | 80947e8 | 2020-11-11 18:09:56 +0900 | [diff] [blame] | 60 | product_available: true, |
Justin Yun | aa89fab | 2017-07-24 15:19:44 +0900 | [diff] [blame] | 61 | vndk: { |
| 62 | enabled: true, |
| 63 | }, |
William Escande | 365e76c | 2022-04-28 11:53:12 -0700 | [diff] [blame] | 64 | host_supported: true, |
Chisato Kenmochi | 878aad2 | 2017-02-28 13:55:31 +0900 | [diff] [blame] | 65 | arch: { |
| 66 | arm: { |
| 67 | instruction_set: "arm", |
| 68 | }, |
| 69 | }, |
| 70 | export_include_dirs: ["abr/inc"], |
| 71 | srcs: ["abr/src/ldacBT_abr.c"], |
William Escande | 365e76c | 2022-04-28 11:53:12 -0700 | [diff] [blame] | 72 | static_libs: ["libldacBT_enc"], |
| 73 | cflags: ["-O2", "-Werror", "-Wall", "-Wextra"], |
| 74 | min_sdk_version: "Tiramisu", |
| 75 | apex_available: [ |
| 76 | "//apex_available:platform", |
| 77 | "com.android.bluetooth", |
| 78 | ], |
| 79 | visibility: [ |
| 80 | "//packages/modules/Bluetooth:__subpackages__", |
| 81 | "//packages/modules/vndk/apex", |
| 82 | ], |
Chisato Kenmochi | 878aad2 | 2017-02-28 13:55:31 +0900 | [diff] [blame] | 83 | } |