xref: /aosp_15_r20/frameworks/av/media/module/extractors/tests/Android.bp (revision ec779b8e0859a360c3d303172224686826e6e0e1)
1/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package {
18    // See: http://go/android-license-faq
19    // A large-scale-change added 'default_applicable_licenses' to import
20    // all of the 'license_kinds' from "frameworks_av_license"
21    // to get the below license kinds:
22    //   SPDX-license-identifier-Apache-2.0
23    default_applicable_licenses: ["frameworks_av_license"],
24    default_team: "trendy_team_android_media_solutions_playback",
25}
26
27cc_test {
28    name: "ExtractorUnitTest",
29    gtest: true,
30    test_suites: ["device-tests"],
31
32    srcs: ["ExtractorUnitTest.cpp"],
33
34    static_libs: [
35        "android.media.extractor.flags-aconfig-cc",
36        "libaconfig_storage_read_api_cc",
37        "libaacextractor",
38        "libamrextractor",
39        "libmp3extractor",
40        "libwavextractor",
41        "liboggextractor",
42        "libflacextractor",
43        "libmidiextractor",
44        "libmkvextractor",
45        "libmpeg2extractor",
46        "libmp4extractor",
47        "libaudioutils",
48        "libdatasource",
49        "libwatchdog",
50
51        "libstagefright_id3",
52        "libstagefright_flacdec",
53        "libstagefright_esds",
54        "libstagefright_mpeg2support",
55        "libstagefright_foundation_colorutils_ndk",
56        "libstagefright_metadatautils",
57
58        "libmedia_midiiowrapper",
59        "libsonivoxwithoutjet",
60        "libvorbisidec",
61        "libwebm_mkvparser",
62        "libFLAC",
63    ],
64
65    shared_libs: [
66        "[email protected]",
67        "[email protected]",
68        "[email protected]",
69        "[email protected]",
70        "libbinder",
71        "libbinder_ndk",
72        "libutils",
73        "liblog",
74        "libcutils",
75        "libmediandk",
76        "libmedia",
77        "libstagefright",
78        "libstagefright_foundation",
79        "libcrypto",
80        "libhidlmemory",
81        "libhidlbase",
82        "libbase",
83        "server_configurable_flags",
84    ],
85
86    compile_multilib: "first",
87
88    cflags: [
89        "-Werror",
90        "-Wall",
91    ],
92
93    ldflags: [
94        "-Wl",
95        "-Bsymbolic",
96        // to ignore duplicate symbol: GETEXTRACTORDEF
97        "-z muldefs",
98    ],
99
100    sanitize: {
101        cfi: true,
102        misc_undefined: [
103            "unsigned-integer-overflow",
104            "signed-integer-overflow",
105        ],
106    },
107}
108