Manisha Jajoo | 5cda2c8 | 2019-11-14 17:35:07 +0530 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | cc_test { |
| 18 | name: "ExtractorUnitTest", |
| 19 | gtest: true, |
Ray Essick | d4ef98e | 2020-04-23 16:28:21 -0700 | [diff] [blame^] | 20 | test_suites: ["device-tests"], |
Manisha Jajoo | 5cda2c8 | 2019-11-14 17:35:07 +0530 | [diff] [blame] | 21 | |
| 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-Tsvi | 387f252 | 2020-02-04 15:02:32 -0800 | [diff] [blame] | 37 | "libwatchdog", |
Manisha Jajoo | 5cda2c8 | 2019-11-14 17:35:07 +0530 | [diff] [blame] | 38 | |
| 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", |
| 49 | "libsonivox", |
| 50 | "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-Tsvi | 387f252 | 2020-02-04 15:02:32 -0800 | [diff] [blame] | 70 | "libbase", |
Manisha Jajoo | 5cda2c8 | 2019-11-14 17:35:07 +0530 | [diff] [blame] | 71 | ], |
| 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 | } |