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: "libcom.android.media.swcodec.apexcodecs-defaults", 23 24 defaults: [ 25 "libcodec2-internal-defaults", 26 ], 27 28 header_libs: [ 29 "libbase_headers", 30 ], 31 32 srcs: ["ApexCodecs.cpp"], 33 34 shared_libs: [ 35 "libbase", 36 "libnativewindow", 37 ], 38 39 static_libs: [ 40 "android.media.swcodec.flags-aconfig-cc", 41 ], 42 43 export_include_dirs: ["include"], 44 45 local_include_dirs: ["private"], 46 47 export_shared_lib_headers: [ 48 "libbase", 49 "libnativewindow", 50 ], 51 52} 53 54cc_library_headers { 55 name: "libcom.android.media.swcodec.apexcodecs-header", 56 visibility: [ 57 "//frameworks/av/apex:__subpackages__", 58 "//frameworks/av/media/codec2/hal/client", 59 ], 60 export_include_dirs: ["include"], 61} 62 63cc_library { 64 name: "libcom.android.media.swcodec.apexcodecs-testing", 65 defaults: ["libcom.android.media.swcodec.apexcodecs-defaults"], 66 67 srcs: ["tests/ApexCodecsStoreTestImpl.cpp"], 68 69 visibility: [ 70 ":__subpackages__", 71 ], 72} 73 74cc_library { 75 name: "libcom.android.media.swcodec.apexcodecs", 76 defaults: ["libcom.android.media.swcodec.apexcodecs-defaults"], 77 78 visibility: [ 79 "//frameworks/av/apex:__subpackages__", 80 "//frameworks/av/media/codec2/hal/client", 81 ], 82 83 srcs: ["ApexCodecsStoreImpl.cpp"], 84 85 min_sdk_version: "apex_inherit", 86 version_script: "libcom.android.media.swcodec.apexcodecs.map.txt", 87 stubs: { 88 symbol_file: "libcom.android.media.swcodec.apexcodecs.map.txt", 89 versions: ["36"], 90 }, 91 92 apex_available: [ 93 "com.android.media.swcodec", 94 ], 95} 96