1// Copyright (C) 2019 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19cc_test_library { 20 name: "libctsmediav2muxer_jni", 21 srcs: [ 22 "NativeMediaCommon.cpp", 23 "NativeMuxerTest.cpp", 24 "NativeMuxerUnitTest.cpp", 25 ], 26 shared_libs: [ 27 "libmediandk", 28 "liblog", 29 ], 30 header_libs: ["liblog_headers"], 31 include_dirs: [ 32 "frameworks/av/media/ndk/include/media", 33 ], 34 stl: "libc++_static", 35 cflags: [ 36 "-Werror", 37 "-Wall", 38 ], 39 gtest: false, 40 sdk_version: "29", 41} 42 43cc_test_library { 44 name: "libctsmediav2extractor_jni", 45 srcs: [ 46 "NativeMediaCommon.cpp", 47 "NativeExtractorTest.cpp", 48 "NativeExtractorUnitTest.cpp", 49 ], 50 shared_libs: [ 51 "libmediandk", 52 "liblog", 53 "libz", 54 ], 55 header_libs: ["liblog_headers"], 56 include_dirs: [ 57 "frameworks/av/media/ndk/include/media", 58 ], 59 stl: "libc++_static", 60 cflags: [ 61 "-Werror", 62 "-Wall", 63 ], 64 gtest: false, 65 sdk_version: "29", 66} 67 68cc_test_library { 69 name: "libctsmediav2codec_jni", 70 srcs: [ 71 "NativeMediaCommon.cpp", 72 "NativeCodecDecoderTest.cpp", 73 "NativeCodecEncoderTest.cpp", 74 "NativeCodecTestBase.cpp", 75 "NativeCodecUnitTest.cpp", 76 "NativeCodecEncoderSurfaceTest.cpp", 77 ], 78 shared_libs: [ 79 "libmediandk", 80 "liblog", 81 "libandroid", 82 "libz", 83 ], 84 header_libs: ["liblog_headers"], 85 include_dirs: [ 86 "frameworks/av/media/ndk/include/media", 87 ], 88 stl: "libc++_static", 89 cflags: [ 90 "-Werror", 91 "-Wall", 92 ], 93 gtest: false, 94 sdk_version: "29", 95} 96