blob: 8fc5ed6ae5293d0a02622d7e4dd947696e80a6ab [file] [log] [blame]
dvdli2da2fd02021-02-22 14:33:57 +08001package {
2 default_applicable_licenses: ["external_tinyalsa_new_license"],
3}
4
5// Added automatically by a large-scale-change that took the approach of
6// 'apply every license found to every target'. While this makes sure we respect
7// every license restriction, it may not be entirely correct.
8//
9// e.g. GPL in an MIT project might only apply to the contrib/ directory.
10//
11// Please consider splitting the single license below into multiple licenses,
12// taking care not to lose any license_kind information, and overriding the
13// default license using the 'licenses: [...]' property on targets as needed.
14//
15// For unused files, consider creating a 'fileGroup' with "//visibility:private"
16// to attach the license to, and including a comment whether the files may be
17// used in the current project.
18// See: http://go/android-license-faq
19license {
20 name: "external_tinyalsa_new_license",
21 visibility: [":__subpackages__"],
22 license_kinds: [
23 "SPDX-license-identifier-BSD",
24 "SPDX-license-identifier-Unlicense",
25 ],
26 license_text: [
27 "NOTICE",
28 ],
29}
30
Richard Fitzgeraldcdcc3502017-10-19 15:02:17 +010031cc_library {
dvdli50b487f2021-01-20 11:36:15 +080032 name: "libtinyalsav2",
Richard Fitzgeraldcdcc3502017-10-19 15:02:17 +010033 host_supported: true,
34 vendor_available: true,
35 srcs: [
36 "src/mixer.c",
Bhalchandra Gajaree7c627d2019-06-19 15:30:42 -070037 "src/mixer_hw.c",
38 "src/mixer_plugin.c",
Richard Fitzgeraldcdcc3502017-10-19 15:02:17 +010039 "src/pcm.c",
Bhalchandra Gajare986b8e32019-09-04 15:32:35 -070040 "src/pcm_hw.c",
41 "src/pcm_plugin.c",
42 "src/snd_card_plugin.c",
Richard Fitzgeraldcdcc3502017-10-19 15:02:17 +010043 ],
44 cflags: ["-Werror", "-Wno-macro-redefined"],
45 export_include_dirs: ["include"],
46 local_include_dirs: ["include"],
47
48 target: {
49 darwin: {
50 enabled: false,
51 },
Colin Cross22a64a32021-07-13 17:10:08 -070052 bionic: {
53 system_shared_libs: ["libc", "libdl"],
54 },
Richard Fitzgeraldcdcc3502017-10-19 15:02:17 +010055 },
Bhalchandra Gajare986b8e32019-09-04 15:32:35 -070056
dvdli50b487f2021-01-20 11:36:15 +080057 sanitize: {
58 integer_overflow: true,
59 misc_undefined: ["bounds"],
60 diag: {
61 integer_overflow: true,
62 misc_undefined: ["bounds"],
63 },
Glenn Kasten902b8c82020-09-22 08:54:56 -070064 },
Richard Fitzgeraldcdcc3502017-10-19 15:02:17 +010065}
66
Rohit kumara36069e2021-01-14 18:56:17 +053067cc_library_headers {
68 name: "libtinyalsav2_headers",
69 export_include_dirs: ["include"],
70 vendor_available: true,
71}
72
Richard Fitzgeraldcdcc3502017-10-19 15:02:17 +010073cc_binary {
dvdli50b487f2021-01-20 11:36:15 +080074 name: "tinyplay2",
Richard Fitzgeraldcdcc3502017-10-19 15:02:17 +010075 host_supported: true,
76 srcs: ["utils/tinyplay.c"],
dvdlia36d5212021-03-11 18:01:56 +080077 static_libs: ["libtinyalsav2"],
Richard Fitzgeraldcdcc3502017-10-19 15:02:17 +010078 cflags: ["-Werror"],
79 target: {
80 darwin: {
81 enabled: false,
82 },
83 },
84}
85
86cc_binary {
dvdli50b487f2021-01-20 11:36:15 +080087 name: "tinycap2",
Richard Fitzgeraldcdcc3502017-10-19 15:02:17 +010088 srcs: ["utils/tinycap.c"],
dvdlia36d5212021-03-11 18:01:56 +080089 static_libs: ["libtinyalsav2"],
Richard Fitzgeraldcdcc3502017-10-19 15:02:17 +010090 cflags: ["-Werror"],
91}
92
93cc_binary {
dvdli50b487f2021-01-20 11:36:15 +080094 name: "tinymix2",
Richard Fitzgeraldcdcc3502017-10-19 15:02:17 +010095 srcs: ["utils/tinymix.c"],
dvdlia36d5212021-03-11 18:01:56 +080096 static_libs: ["libtinyalsav2"],
Richard Fitzgeraldcdcc3502017-10-19 15:02:17 +010097 cflags: ["-Werror", "-Wall"],
98}
99
100cc_binary {
dvdli50b487f2021-01-20 11:36:15 +0800101 name: "tinypcminfo2",
Richard Fitzgeraldcdcc3502017-10-19 15:02:17 +0100102 srcs: ["utils/tinypcminfo.c"],
dvdlia36d5212021-03-11 18:01:56 +0800103 static_libs: ["libtinyalsav2"],
Richard Fitzgeraldcdcc3502017-10-19 15:02:17 +0100104 cflags: ["-Werror"],
105}