1package { 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 31cc_library { 32 name: "libtinyalsav2", 33 host_supported: true, 34 vendor_available: true, 35 srcs: [ 36 "src/mixer.c", 37 "src/mixer_hw.c", 38 "src/mixer_plugin.c", 39 "src/pcm.c", 40 "src/pcm_hw.c", 41 "src/pcm_plugin.c", 42 "src/snd_card_plugin.c", 43 ], 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 }, 52 bionic: { 53 system_shared_libs: ["libc", "libdl"], 54 }, 55 android: { 56 // TODO(b/263841853): check linking error for host 57 sanitize: { 58 integer_overflow: true, 59 misc_undefined: ["bounds"], 60 diag: { 61 integer_overflow: true, 62 misc_undefined: ["bounds"], 63 }, 64 }, 65 }, 66 }, 67} 68 69cc_library_headers { 70 name: "libtinyalsav2_headers", 71 export_include_dirs: ["include"], 72 vendor_available: true, 73} 74 75cc_binary { 76 name: "tinyplay2", 77 host_supported: true, 78 srcs: ["utils/tinyplay.c"], 79 static_libs: ["libtinyalsav2"], 80 cflags: ["-Werror"], 81 target: { 82 darwin: { 83 enabled: false, 84 }, 85 }, 86} 87 88cc_binary { 89 name: "tinycap2", 90 srcs: ["utils/tinycap.c"], 91 static_libs: ["libtinyalsav2"], 92 cflags: ["-Werror"], 93} 94 95cc_binary { 96 name: "tinymix2", 97 srcs: ["utils/tinymix.c"], 98 static_libs: ["libtinyalsav2"], 99 cflags: ["-Werror", "-Wall"], 100} 101 102cc_binary { 103 name: "tinypcminfo2", 104 srcs: ["utils/tinypcminfo.c"], 105 static_libs: ["libtinyalsav2"], 106 cflags: ["-Werror"], 107} 108