1// Build testbench for downmix module.
2package {
3    default_team: "trendy_team_media_framework_audio",
4    // See: http://go/android-license-faq
5    // A large-scale-change added 'default_applicable_licenses' to import
6    // all of the 'license_kinds' from "frameworks_av_media_libeffects_downmix_license"
7    // to get the below license kinds:
8    //   SPDX-license-identifier-Apache-2.0
9    default_applicable_licenses: [
10        "frameworks_av_media_libeffects_downmix_license",
11    ],
12}
13
14// This is a gtest unit test.
15//
16// Use "atest downmix_tests" to run.
17cc_test {
18    name: "downmix_tests",
19    gtest: true,
20    host_supported: true,
21    vendor: true,
22    header_libs: [
23        "libaudioeffects",
24    ],
25    shared_libs: [
26        "liblog",
27    ],
28    static_libs: [
29        "libaudioutils",
30        "libdownmix",
31    ],
32    srcs: [
33        "downmix_tests.cpp",
34    ],
35    cflags: [
36        "-Wall",
37        "-Werror",
38        "-Wextra",
39    ],
40}
41
42// This is a test application which generates downmixed files for regression
43// analysis.
44//
45// See build_and_run_all_unit_tests.sh for a test script that uses this
46// test application and outputs then compares files in a local directory
47// on device (/data/local/tmp/downmixtest/).
48cc_test {
49    name: "downmixtest",
50    host_supported: false,
51    proprietary: true,
52
53    header_libs: [
54        "libaudioeffects",
55    ],
56
57    shared_libs: [
58        "libaudioutils",
59        "libdownmix",
60        "liblog",
61    ],
62
63    relative_install_path: "soundfx",
64
65    srcs: [
66        "downmixtest.cpp",
67    ],
68
69    cflags: [
70        "-Werror",
71        "-Wextra",
72    ],
73}
74