• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    },
56
57    sanitize: {
58        integer_overflow: true,
59        misc_undefined: ["bounds"],
60        diag: {
61            integer_overflow: true,
62            misc_undefined: ["bounds"],
63        },
64    },
65}
66
67cc_library_headers {
68    name: "libtinyalsav2_headers",
69    export_include_dirs: ["include"],
70    vendor_available: true,
71}
72
73cc_binary {
74    name: "tinyplay2",
75    host_supported: true,
76    srcs: ["utils/tinyplay.c"],
77    static_libs: ["libtinyalsav2"],
78    cflags: ["-Werror"],
79    target: {
80        darwin: {
81            enabled: false,
82        },
83    },
84}
85
86cc_binary {
87    name: "tinycap2",
88    srcs: ["utils/tinycap.c"],
89    static_libs: ["libtinyalsav2"],
90    cflags: ["-Werror"],
91}
92
93cc_binary {
94    name: "tinymix2",
95    srcs: ["utils/tinymix.c"],
96    static_libs: ["libtinyalsav2"],
97    cflags: ["-Werror", "-Wall"],
98}
99
100cc_binary {
101    name: "tinypcminfo2",
102    srcs: ["utils/tinypcminfo.c"],
103    static_libs: ["libtinyalsav2"],
104    cflags: ["-Werror"],
105}
106