blob: 059c308c2e0ea349ea1567abad9597a6a2648e34 [file] [log] [blame]
Manisha Jajoo5cda2c82019-11-14 17:35:07 +05301/*
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
17cc_test {
18 name: "ExtractorUnitTest",
19 gtest: true,
20
21 srcs: ["ExtractorUnitTest.cpp"],
22
23 static_libs: [
24 "libaacextractor",
25 "libamrextractor",
26 "libmp3extractor",
27 "libwavextractor",
28 "liboggextractor",
29 "libflacextractor",
30 "libmidiextractor",
31 "libmkvextractor",
32 "libmpeg2extractor",
33 "libmp4extractor",
34 "libaudioutils",
35 "libdatasource",
36
37 "libstagefright",
38 "libstagefright_id3",
39 "libstagefright_flacdec",
40 "libstagefright_esds",
41 "libstagefright_mpeg2support",
42 "libstagefright_mpeg2extractor",
43 "libstagefright_foundation",
44 "libstagefright_metadatautils",
45
46 "libmedia_midiiowrapper",
47 "libsonivox",
48 "libvorbisidec",
49 "libwebm",
50 "libFLAC",
51 ],
52
53 shared_libs: [
54 "android.hardware.cas@1.0",
55 "android.hardware.cas.native@1.0",
56 "android.hidl.token@1.0-utils",
57 "android.hidl.allocator@1.0",
58 "libbinder",
59 "libbinder_ndk",
60 "libutils",
61 "liblog",
62 "libcutils",
63 "libmediandk",
64 "libmedia",
65 "libcrypto",
66 "libhidlmemory",
67 "libhidlbase",
68 ],
69
70 include_dirs: [
71 "frameworks/av/media/extractors/",
72 "frameworks/av/media/libstagefright/",
73 ],
74
75 compile_multilib: "first",
76
77 cflags: [
78 "-Werror",
79 "-Wall",
80 ],
81
82 ldflags: [
83 "-Wl",
84 "-Bsymbolic",
85 // to ignore duplicate symbol: GETEXTRACTORDEF
86 "-z muldefs",
87 ],
88
89 sanitize: {
90 cfi: true,
91 misc_undefined: [
92 "unsigned-integer-overflow",
93 "signed-integer-overflow",
94 ],
95 },
96}