blob: 0bca6f517735aba5e70ccea7f5924962bb57e307 [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,
Ray Essickd4ef98e2020-04-23 16:28:21 -070020 test_suites: ["device-tests"],
Manisha Jajoo5cda2c82019-11-14 17:35:07 +053021
22 srcs: ["ExtractorUnitTest.cpp"],
23
24 static_libs: [
25 "libaacextractor",
26 "libamrextractor",
27 "libmp3extractor",
28 "libwavextractor",
29 "liboggextractor",
30 "libflacextractor",
31 "libmidiextractor",
32 "libmkvextractor",
33 "libmpeg2extractor",
34 "libmp4extractor",
35 "libaudioutils",
36 "libdatasource",
Ytai Ben-Tsvi387f2522020-02-04 15:02:32 -080037 "libwatchdog",
Manisha Jajoo5cda2c82019-11-14 17:35:07 +053038
39 "libstagefright",
40 "libstagefright_id3",
41 "libstagefright_flacdec",
42 "libstagefright_esds",
43 "libstagefright_mpeg2support",
44 "libstagefright_mpeg2extractor",
45 "libstagefright_foundation",
46 "libstagefright_metadatautils",
47
48 "libmedia_midiiowrapper",
Marco Nelissen1ba10c42020-04-22 15:41:43 -070049 "libsonivoxwithoutjet",
Manisha Jajoo5cda2c82019-11-14 17:35:07 +053050 "libvorbisidec",
51 "libwebm",
52 "libFLAC",
53 ],
54
55 shared_libs: [
56 "android.hardware.cas@1.0",
57 "android.hardware.cas.native@1.0",
58 "android.hidl.token@1.0-utils",
59 "android.hidl.allocator@1.0",
60 "libbinder",
61 "libbinder_ndk",
62 "libutils",
63 "liblog",
64 "libcutils",
65 "libmediandk",
66 "libmedia",
67 "libcrypto",
68 "libhidlmemory",
69 "libhidlbase",
Ytai Ben-Tsvi387f2522020-02-04 15:02:32 -080070 "libbase",
Manisha Jajoo5cda2c82019-11-14 17:35:07 +053071 ],
72
73 include_dirs: [
74 "frameworks/av/media/extractors/",
75 "frameworks/av/media/libstagefright/",
76 ],
77
78 compile_multilib: "first",
79
80 cflags: [
81 "-Werror",
82 "-Wall",
83 ],
84
85 ldflags: [
86 "-Wl",
87 "-Bsymbolic",
88 // to ignore duplicate symbol: GETEXTRACTORDEF
89 "-z muldefs",
90 ],
91
92 sanitize: {
93 cfi: true,
94 misc_undefined: [
95 "unsigned-integer-overflow",
96 "signed-integer-overflow",
97 ],
98 },
99}