blob: e17893ef6e777d898831226866fa83db96b91148 [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 Badour56786ac2021-02-25 15:24:36 -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,
Ray Essickd4ef98e2020-04-23 16:28:21 -070029 test_suites: ["device-tests"],
Manisha Jajoo5cda2c82019-11-14 17:35:07 +053030
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",
Ytai Ben-Tsvi387f2522020-02-04 15:02:32 -080046 "libwatchdog",
Manisha Jajoo5cda2c82019-11-14 17:35:07 +053047
48 "libstagefright",
49 "libstagefright_id3",
50 "libstagefright_flacdec",
51 "libstagefright_esds",
52 "libstagefright_mpeg2support",
53 "libstagefright_mpeg2extractor",
54 "libstagefright_foundation",
55 "libstagefright_metadatautils",
56
57 "libmedia_midiiowrapper",
Marco Nelissen1ba10c42020-04-22 15:41:43 -070058 "libsonivoxwithoutjet",
Manisha Jajoo5cda2c82019-11-14 17:35:07 +053059 "libvorbisidec",
60 "libwebm",
61 "libFLAC",
62 ],
63
64 shared_libs: [
65 "android.hardware.cas@1.0",
66 "android.hardware.cas.native@1.0",
67 "android.hidl.token@1.0-utils",
68 "android.hidl.allocator@1.0",
69 "libbinder",
70 "libbinder_ndk",
71 "libutils",
72 "liblog",
73 "libcutils",
74 "libmediandk",
75 "libmedia",
76 "libcrypto",
77 "libhidlmemory",
78 "libhidlbase",
Ytai Ben-Tsvi387f2522020-02-04 15:02:32 -080079 "libbase",
Manisha Jajoo5cda2c82019-11-14 17:35:07 +053080 ],
81
82 include_dirs: [
83 "frameworks/av/media/extractors/",
84 "frameworks/av/media/libstagefright/",
85 ],
86
87 compile_multilib: "first",
88
89 cflags: [
90 "-Werror",
91 "-Wall",
92 ],
93
94 ldflags: [
95 "-Wl",
96 "-Bsymbolic",
97 // to ignore duplicate symbol: GETEXTRACTORDEF
98 "-z muldefs",
99 ],
100
101 sanitize: {
102 cfi: true,
103 misc_undefined: [
104 "unsigned-integer-overflow",
105 "signed-integer-overflow",
106 ],
107 },
108}