blob: f46fa7bfd16a5ded22892d477bcf370cf02504ea [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
Bob Badour948e6aa2021-02-12 21:02:31 -080017package {
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
Manisha Jajoo5cda2c82019-11-14 17:35:07 +053026cc_test {
27 name: "ExtractorUnitTest",
28 gtest: true,
29
30 srcs: ["ExtractorUnitTest.cpp"],
31
32 static_libs: [
33 "libaacextractor",
34 "libamrextractor",
35 "libmp3extractor",
36 "libwavextractor",
37 "liboggextractor",
38 "libflacextractor",
39 "libmidiextractor",
40 "libmkvextractor",
41 "libmpeg2extractor",
42 "libmp4extractor",
43 "libaudioutils",
44 "libdatasource",
Ytai Ben-Tsvi387f2522020-02-04 15:02:32 -080045 "libwatchdog",
Manisha Jajoo5cda2c82019-11-14 17:35:07 +053046
47 "libstagefright",
48 "libstagefright_id3",
49 "libstagefright_flacdec",
50 "libstagefright_esds",
51 "libstagefright_mpeg2support",
52 "libstagefright_mpeg2extractor",
53 "libstagefright_foundation",
54 "libstagefright_metadatautils",
55
56 "libmedia_midiiowrapper",
Marco Nelissen1ba10c42020-04-22 15:41:43 -070057 "libsonivoxwithoutjet",
Manisha Jajoo5cda2c82019-11-14 17:35:07 +053058 "libvorbisidec",
59 "libwebm",
60 "libFLAC",
61 ],
62
63 shared_libs: [
64 "android.hardware.cas@1.0",
65 "android.hardware.cas.native@1.0",
66 "android.hidl.token@1.0-utils",
67 "android.hidl.allocator@1.0",
68 "libbinder",
69 "libbinder_ndk",
70 "libutils",
71 "liblog",
72 "libcutils",
73 "libmediandk",
74 "libmedia",
75 "libcrypto",
76 "libhidlmemory",
77 "libhidlbase",
Ytai Ben-Tsvi387f2522020-02-04 15:02:32 -080078 "libbase",
Manisha Jajoo5cda2c82019-11-14 17:35:07 +053079 ],
80
81 include_dirs: [
82 "frameworks/av/media/extractors/",
83 "frameworks/av/media/libstagefright/",
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}