1// 2// Copyright (C) 2024 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 default_applicable_licenses: ["frameworks_av_license"], 19} 20 21cc_defaults { 22 name: "libapexcodecs-defaults", 23 header_libs: [ 24 "libbase_headers", 25 ], 26 27 srcs: ["ApexCodecs.cpp"], 28 29 shared_libs: [ 30 "libbase", 31 "libnativewindow", 32 ], 33 34 export_include_dirs: ["include"], 35 36 export_shared_lib_headers: [ 37 "libbase", 38 "libnativewindow", 39 ], 40 41} 42 43cc_library_headers { 44 name: "libapexcodecs-header", 45 visibility: [ 46 "//frameworks/av/apex:__subpackages__", 47 "//frameworks/av/media/codec2/hal/client", 48 ], 49 export_include_dirs: ["include"], 50} 51 52cc_library { 53 name: "libapexcodecs-testing", 54 defaults: ["libapexcodecs-defaults"], 55 56 visibility: [ 57 ":__subpackages__", 58 ], 59} 60 61cc_library { 62 name: "libapexcodecs", 63 defaults: ["libapexcodecs-defaults"], 64 65 visibility: [ 66 "//frameworks/av/apex:__subpackages__", 67 "//frameworks/av/media/codec2/hal/client", 68 ], 69 70 min_sdk_version: "apex_inherit", 71 version_script: "libapexcodecs.map.txt", 72 stubs: { 73 symbol_file: "libapexcodecs.map.txt", 74 versions: ["36"], 75 }, 76 77 apex_available: [ 78 "com.android.media.swcodec", 79 ], 80} 81