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}
25
26cc_test {
27    name: "ExtractorUnitTest",
28    gtest: true,
29    test_suites: ["device-tests"],
30
31    srcs: ["ExtractorUnitTest.cpp"],
32
33    static_libs: [
34        "libaacextractor",
35        "libamrextractor",
36        "libmp3extractor",
37        "libwavextractor",
38        "liboggextractor",
39        "libflacextractor",
40        "libmidiextractor",
41        "libmkvextractor",
42        "libmpeg2extractor",
43        "libmp4extractor",
44        "libaudioutils",
45        "libdatasource",
46        "libwatchdog",
47
48        "libstagefright_id3",
49        "libstagefright_flacdec",
50        "libstagefright_esds",
51        "libstagefright_mpeg2support",
52        "libstagefright_foundation_colorutils_ndk",
53        "libstagefright_metadatautils",
54
55        "libmedia_midiiowrapper",
56        "libsonivoxwithoutjet",
57        "libvorbisidec",
58        "libwebm_mkvparser",
59        "libFLAC",
60    ],
61
62    shared_libs: [
63        "android.hardware.cas@1.0",
64        "android.hardware.cas.native@1.0",
65        "android.hidl.token@1.0-utils",
66        "android.hidl.allocator@1.0",
67        "libbinder",
68        "libbinder_ndk",
69        "libutils",
70        "liblog",
71        "libcutils",
72        "libmediandk",
73        "libmedia",
74        "libstagefright",
75        "libstagefright_foundation",
76        "libcrypto",
77        "libhidlmemory",
78        "libhidlbase",
79        "libbase",
80    ],
81
82    compile_multilib: "first",
83
84    cflags: [
85        "-Werror",
86        "-Wall",
87    ],
88
89    ldflags: [
90        "-Wl",
91        "-Bsymbolic",
92        // to ignore duplicate symbol: GETEXTRACTORDEF
93        "-z muldefs",
94    ],
95
96    sanitize: {
97        cfi: true,
98        misc_undefined: [
99            "unsigned-integer-overflow",
100            "signed-integer-overflow",
101        ],
102    },
103}
104