blob: fa39b646d3b399e844bfb8dda29f00e9429ba297 [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",
Ytai Ben-Tsvi387f2522020-02-04 15:02:32 -080036 "libwatchdog",
Manisha Jajoo5cda2c82019-11-14 17:35:07 +053037
38 "libstagefright",
39 "libstagefright_id3",
40 "libstagefright_flacdec",
41 "libstagefright_esds",
42 "libstagefright_mpeg2support",
43 "libstagefright_mpeg2extractor",
44 "libstagefright_foundation",
45 "libstagefright_metadatautils",
46
47 "libmedia_midiiowrapper",
48 "libsonivox",
49 "libvorbisidec",
50 "libwebm",
51 "libFLAC",
52 ],
53
54 shared_libs: [
55 "android.hardware.cas@1.0",
56 "android.hardware.cas.native@1.0",
57 "android.hidl.token@1.0-utils",
58 "android.hidl.allocator@1.0",
59 "libbinder",
60 "libbinder_ndk",
61 "libutils",
62 "liblog",
63 "libcutils",
64 "libmediandk",
65 "libmedia",
66 "libcrypto",
67 "libhidlmemory",
68 "libhidlbase",
Ytai Ben-Tsvi387f2522020-02-04 15:02:32 -080069 "libbase",
Manisha Jajoo5cda2c82019-11-14 17:35:07 +053070 ],
71
72 include_dirs: [
73 "frameworks/av/media/extractors/",
74 "frameworks/av/media/libstagefright/",
75 ],
76
77 compile_multilib: "first",
78
79 cflags: [
80 "-Werror",
81 "-Wall",
82 ],
83
84 ldflags: [
85 "-Wl",
86 "-Bsymbolic",
87 // to ignore duplicate symbol: GETEXTRACTORDEF
88 "-z muldefs",
89 ],
90
91 sanitize: {
92 cfi: true,
93 misc_undefined: [
94 "unsigned-integer-overflow",
95 "signed-integer-overflow",
96 ],
97 },
98}