aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
blob: c3a3dca1a765ee3a9874495ffc16f45e1209ee86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
cc_library {
    name: "libtinyalsa",
    host_supported: true,
    vendor_available: true,
    srcs: [
        "src/mixer.c",
        "src/mixer_hw.c",
        "src/mixer_plugin.c",
        "src/pcm.c",
        "src/pcm_hw.c",
        "src/pcm_plugin.c",
        "src/snd_card_plugin.c",
    ],
    cflags: ["-Werror", "-Wno-macro-redefined"],
    export_include_dirs: ["include"],
    local_include_dirs: ["include"],

    target: {
        darwin: {
            enabled: false,
        },
    },

    system_shared_libs: ["libc", "libdl"],
    vndk: {
        enabled: true,
    },
}

cc_binary {
    name: "tinyplay",
    host_supported: true,
    srcs: ["utils/tinyplay.c"],
    shared_libs: ["libtinyalsa"],
    cflags: ["-Werror"],
    target: {
        darwin: {
            enabled: false,
        },
    },
}

cc_binary {
    name: "tinycap",
    srcs: ["utils/tinycap.c"],
    shared_libs: ["libtinyalsa"],
    cflags: ["-Werror"],
}

cc_binary {
    name: "tinymix",
    srcs: ["utils/tinymix.c"],
    shared_libs: ["libtinyalsa"],
    cflags: ["-Werror", "-Wall"],
}

cc_binary {
    name: "tinypcminfo",
    srcs: ["utils/tinypcminfo.c"],
    shared_libs: ["libtinyalsa"],
    cflags: ["-Werror"],
}