1// Copyright (C) 2012 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// 15 16//------------------------------------------------------------------------------ 17// Builds libctscodecutils_jni.so 18// 19package { 20 // See: http://go/android-license-faq 21 // A large-scale-change added 'default_applicable_licenses' to import 22 // all of the 'license_kinds' from "cts_license" 23 // to get the below license kinds: 24 // SPDX-license-identifier-Apache-2.0 25 // legacy_unencumbered 26 default_applicable_licenses: ["cts_license"], 27} 28 29cc_test_library { 30 name: "libctscodecutils_jni", 31 srcs: [ 32 "codec-utils-jni.cpp", 33 "md5_utils.cpp", 34 ], 35 shared_libs: [ 36 "libnativehelper_compat_libc++", 37 "liblog", 38 ], 39 header_libs: ["liblog_headers"], 40 // this test suite will run on sdk 29 as part of MTS, make sure it's compatible 41 // (revisit if/when we add features to this library that require newer sdk. 42 sdk_version: "29", 43 cflags: [ 44 "-Werror", 45 "-Wall", 46 "-DEGL_EGLEXT_PROTOTYPES", 47 ], 48 stl: "libc++_static", 49 gtest: false, 50} 51 52//------------------------------------------------------------------------------ 53// Builds libctsmediacodec_jni.so 54// 55cc_test_library { 56 name: "libctsmediacodec_jni", 57 srcs: [ 58 "native-media-jni.cpp", 59 "native_media_utils.cpp", 60 "native_media_decoder_source.cpp", 61 ], 62 shared_libs: [ 63 "libandroid", 64 "libnativehelper_compat_libc++", 65 "liblog", 66 "libmediandk", 67 "libEGL", 68 ], 69 header_libs: ["liblog_headers"], 70 stl: "libc++_static", 71 cflags: [ 72 "-Werror", 73 "-Wall", 74 "-DEGL_EGLEXT_PROTOTYPES", 75 ], 76 gtest: false, 77 // this test suite will run on sdk 29 as part of MTS, make sure it's compatible 78 // (revisit if/when we add features to this library that require newer sdk. 79 sdk_version: "29", 80} 81 82//------------------------------------------------------------------------------ 83// Builds libctsmediadrm_jni.so 84// 85cc_test_library { 86 name: "libctsmediadrm_jni", 87 srcs: [ 88 "CtsMediaDrmJniOnLoad.cpp", 89 "codec-utils-jni.cpp", 90 "md5_utils.cpp", 91 "native-mediadrm-jni.cpp", 92 ], 93 include_dirs: ["system/core/include"], 94 shared_libs: [ 95 "libandroid", 96 "libnativehelper_compat_libc++", 97 "liblog", 98 "libmediandk", 99 "libdl", 100 "libEGL", 101 ], 102 header_libs: ["liblog_headers"], 103 cflags: [ 104 "-Werror", 105 "-Wall", 106 "-DEGL_EGLEXT_PROTOTYPES", 107 ], 108 stl: "libc++_static", 109 gtest: false, 110 // this test suite will run on sdk 29 as part of MTS, make sure it's compatible 111 // (revisit if/when we add features to this library that require newer sdk. 112 sdk_version: "29", 113} 114