• 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    },
53
54    system_shared_libs: ["libc", "libdl"],
55
56    sanitize: {
57        integer_overflow: true,
58        misc_undefined: ["bounds"],
59        diag: {
60            integer_overflow: true,
61            misc_undefined: ["bounds"],
62        },
63    },
64}
65
66cc_binary {
67    name: "tinyplay2",
68    host_supported: true,
69    srcs: ["utils/tinyplay.c"],
70    static_libs: ["libtinyalsav2"],
71    cflags: ["-Werror"],
72    target: {
73        darwin: {
74            enabled: false,
75        },
76    },
77}
78
79cc_binary {
80    name: "tinycap2",
81    srcs: ["utils/tinycap.c"],
82    static_libs: ["libtinyalsav2"],
83    cflags: ["-Werror"],
84}
85
86cc_binary {
87    name: "tinymix2",
88    srcs: ["utils/tinymix.c"],
89    static_libs: ["libtinyalsav2"],
90    cflags: ["-Werror", "-Wall"],
91}
92
93cc_binary {
94    name: "tinypcminfo2",
95    srcs: ["utils/tinypcminfo.c"],
96    static_libs: ["libtinyalsav2"],
97    cflags: ["-Werror"],
98}
99