Wonsik Kim | 96a6ae8 | 2024-11-08 07:53:33 +0000 | [diff] [blame^] | 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 | |
| 17 | package { |
| 18 | default_applicable_licenses: ["frameworks_av_license"], |
| 19 | } |
| 20 | |
| 21 | cc_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 | |
| 43 | cc_library { |
| 44 | name: "libapexcodecs-testing", |
| 45 | defaults: ["libapexcodecs-defaults"], |
| 46 | |
| 47 | visibility: [ |
| 48 | ":__subpackages__", |
| 49 | ], |
| 50 | } |
| 51 | |
| 52 | cc_library { |
| 53 | name: "libapexcodecs", |
| 54 | defaults: ["libapexcodecs-defaults"], |
| 55 | |
| 56 | visibility: [ |
| 57 | "//frameworks/av/apex:__subpackages__", |
| 58 | "//frameworks/av/media/codec2/hal/client", |
| 59 | ], |
| 60 | |
| 61 | min_sdk_version: "apex_inherit", |
| 62 | version_script: "libapexcodecs.map.txt", |
| 63 | stubs: { |
| 64 | symbol_file: "libapexcodecs.map.txt", |
| 65 | versions: ["36"], |
| 66 | }, |
| 67 | |
| 68 | apex_available: [ |
| 69 | "com.android.media.swcodec", |
| 70 | ], |
| 71 | } |