1/* 2 * Copyright (C) 2020 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 17package { 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 26cc_defaults { 27 name: "mediatranscoder_defaults", 28 29 srcs: [ 30 "MediaSampleQueue.cpp", 31 "MediaSampleReaderNDK.cpp", 32 "MediaSampleWriter.cpp", 33 "MediaTrackTranscoder.cpp", 34 "MediaTranscoder.cpp", 35 "NdkCommon.cpp", 36 "PassthroughTrackTranscoder.cpp", 37 "VideoTrackTranscoder.cpp", 38 ], 39 40 min_sdk_version: "29", 41 apex_available: [ 42 "com.android.media", 43 "test_com.android.media", 44 ], 45 46 //header_libs: [ "libarect_headers", "libarect_headers_for_ndk" ], 47 static_libs: [ "libarect" ], 48 shared_libs: [ 49 "libbase", 50 "libcutils", 51 "libmediandk", 52 "libnativewindow", 53 "libutils", 54 "libbinder_ndk", 55 ], 56 57 export_include_dirs: [ 58 "include", 59 ], 60 61 cflags: [ 62 "-Wall", 63 "-Werror", 64 "-Wformat", 65 "-Wno-error=deprecated-declarations", 66 "-Wthread-safety", 67 "-Wunused", 68 "-Wunreachable-code", 69 ], 70 71 sanitize: { 72 misc_undefined: [ 73 "unsigned-integer-overflow", 74 "signed-integer-overflow", 75 ], 76 cfi: true, 77 }, 78} 79 80cc_library { 81 name: "libmediatranscoder", 82 defaults: ["mediatranscoder_defaults"], 83} 84