// Copyright (C) 2022 FlamingoOS Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. soong_namespace { } cc_prebuilt_library_shared { name: "libdapparamstorage", owner: "xiaomi", strip: { none: true, }, target: { android_arm: { srcs: ["proprietary/vendor/lib/libdapparamstorage.so"], shared_libs: ["libcutils", "libutils", "liblog", "libc++", "libc", "libm", "libdl", ], }, android_arm64: { srcs: ["proprietary/vendor/lib64/libdapparamstorage.so"], shared_libs: ["libcutils", "libutils", "liblog", "libc++", "libc", "libm", "libdl", ], }, }, compile_multilib: "both", prefer: true, soc_specific: true, } cc_prebuilt_library_shared { name: "libdeccfg", owner: "xiaomi", strip: { none: true, }, target: { android_arm: { srcs: ["proprietary/vendor/lib/libdeccfg.so"], shared_libs: ["libhidlbase", "vendor.dolby.hardware.dms@2.0", "libcutils", "libutils", "liblog", "libc++", "libc", "libm", "libdl", ], }, android_arm64: { srcs: ["proprietary/vendor/lib64/libdeccfg.so"], shared_libs: ["libhidlbase", "vendor.dolby.hardware.dms@2.0", "libcutils", "libutils", "liblog", "libc++", "libc", "libm", "libdl", ], }, }, compile_multilib: "both", prefer: true, soc_specific: true, } cc_prebuilt_library_shared { name: "vendor.dolby.hardware.dms@2.0", owner: "xiaomi", strip: { none: true, }, target: { android_arm: { srcs: ["proprietary/vendor/lib/vendor.dolby.hardware.dms@2.0.so"], shared_libs: ["libhidlbase", "liblog", "libutils", "libcutils", "libc++", "libc", "libm", "libdl", ], }, android_arm64: { srcs: ["proprietary/vendor/lib64/vendor.dolby.hardware.dms@2.0.so"], shared_libs: ["libhidlbase", "liblog", "libutils", "libcutils", "libc++", "libc", "libm", "libdl", ], }, }, compile_multilib: "both", prefer: true, soc_specific: true, } cc_prebuilt_library_shared { name: "vendor.dolby.hardware.dms@2.0-impl", owner: "xiaomi", strip: { none: true, }, target: { android_arm64: { srcs: ["proprietary/vendor/lib64/vendor.dolby.hardware.dms@2.0-impl.so"], shared_libs: ["libhidlbase", "libutils", "liblog", "libdapparamstorage", "libdlbdsservice", "vendor.dolby.hardware.dms@2.0", "libc++", "libc", "libm", "libdl", ], }, }, compile_multilib: "64", prefer: true, soc_specific: true, } cc_prebuilt_binary { name: "vendor.dolby.hardware.dms@2.0-service", owner: "xiaomi", target: { android_arm64: { srcs: ["proprietary/vendor/bin/hw/vendor.dolby.hardware.dms@2.0-service"], shared_libs: ["liblog", "libutils", "libhidlbase", "libdapparamstorage", "libdlbdsservice", "vendor.dolby.hardware.dms@2.0", "vendor.dolby.hardware.dms@2.0-impl", "libc++", "libc", "libm", "libdl", ], }, }, compile_multilib: "64", strip: { none: true, }, prefer: true, relative_install_path: "hw", soc_specific: true, } cc_prebuilt_library_shared { name: "libhwdap", owner: "xiaomi", strip: { none: true, }, target: { android_arm: { srcs: ["proprietary/vendor/lib/soundfx/libhwdap.so"], shared_libs: ["liblog", "libutils", "libcutils", "libaudioutils", "libdapparamstorage", "libhidlbase", "vendor.dolby.hardware.dms@2.0", "libc++", "libc", "libm", "libdl", ], }, android_arm64: { srcs: ["proprietary/vendor/lib64/soundfx/libhwdap.so"], shared_libs: ["liblog", "libutils", "libcutils", "libaudioutils", "libdapparamstorage", "libhidlbase", "vendor.dolby.hardware.dms@2.0", "libc++", "libc", "libm", "libdl", ], }, }, compile_multilib: "both", relative_install_path: "soundfx", prefer: true, soc_specific: true, } cc_prebuilt_library_shared { name: "libswgamedap", owner: "xiaomi", strip: { none: true, }, target: { android_arm: { srcs: ["proprietary/vendor/lib/soundfx/libswgamedap.so"], shared_libs: ["liblog", "libutils", "libcutils", "libaudioutils", "libdapparamstorage", "libhidlbase", "vendor.dolby.hardware.dms@2.0", "libc++", "libc", "libm", "libdl", ], }, android_arm64: { srcs: ["proprietary/vendor/lib64/soundfx/libswgamedap.so"], shared_libs: ["liblog", "libutils", "libcutils", "libaudioutils", "libdapparamstorage", "libhidlbase", "vendor.dolby.hardware.dms@2.0", "libc++", "libc", "libm", "libdl", ], }, }, compile_multilib: "both", relative_install_path: "soundfx", prefer: true, soc_specific: true, } cc_prebuilt_library_shared { name: "libswvqe", owner: "xiaomi", strip: { none: true, }, target: { android_arm: { srcs: ["proprietary/vendor/lib/soundfx/libswvqe.so"], shared_libs: ["liblog", "libutils", "libcutils", "libaudioutils", "libdapparamstorage", "libhidlbase", "vendor.dolby.hardware.dms@2.0", "libc++", "libc", "libm", "libdl", ], }, android_arm64: { srcs: ["proprietary/vendor/lib64/soundfx/libswvqe.so"], shared_libs: ["liblog", "libutils", "libcutils", "libaudioutils", "libdapparamstorage", "libhidlbase", "vendor.dolby.hardware.dms@2.0", "libc++", "libc", "libm", "libdl", ], }, }, compile_multilib: "both", relative_install_path: "soundfx", prefer: true, soc_specific: true, } cc_prebuilt_library_shared { name: "libstagefright_soft_ac4dec", owner: "xiaomi", strip: { none: true, }, target: { android_arm: { srcs: ["proprietary/vendor/lib/libstagefright_soft_ac4dec.so"], shared_libs: ["libstagefright_foundation-v33", "libhidlbase", "vendor.dolby.hardware.dms@2.0", "libdeccfg", "libstagefright_foundation", "libutils", "libcutils", "liblog", "libstagefright_omx", "libstagefright_softomx", "libmedia_omx", "libc++", "libc", "libm", "libdl", ], }, android_arm64: { srcs: ["proprietary/vendor/lib64/libstagefright_soft_ac4dec.so"], shared_libs: ["libstagefright_foundation-v33", "libhidlbase", "vendor.dolby.hardware.dms@2.0", "libdeccfg", "libstagefright_foundation", "libutils", "libcutils", "liblog", "libstagefright_omx", "libstagefright_softomx", "libmedia_omx", "libc++", "libc", "libm", "libdl", ], }, }, compile_multilib: "both", prefer: true, soc_specific: true, } cc_prebuilt_library_shared { name: "libstagefright_soft_ddpdec", owner: "xiaomi", strip: { none: true, }, target: { android_arm: { srcs: ["proprietary/vendor/lib/libstagefright_soft_ddpdec.so"], shared_libs: ["libstagefright_foundation-v33", "libhidlbase", "vendor.dolby.hardware.dms@2.0", "libdeccfg", "libstagefright_omx", "libstagefright_softomx", "libstagefright_foundation", "libutils", "libcutils", "libmedia_omx", "liblog", "libc++", "libc", "libm", "libdl", ], }, android_arm64: { srcs: ["proprietary/vendor/lib64/libstagefright_soft_ddpdec.so"], shared_libs: ["libstagefright_foundation-v33", "libhidlbase", "vendor.dolby.hardware.dms@2.0", "libdeccfg", "libstagefright_omx", "libstagefright_softomx", "libstagefright_foundation", "libutils", "libcutils", "libmedia_omx", "liblog", "libc++", "libc", "libm", "libdl", ], }, }, compile_multilib: "both", prefer: true, soc_specific: true, } cc_prebuilt_library_shared { name: "libstagefrightdolby", owner: "xiaomi", strip: { none: true, }, target: { android_arm: { srcs: ["proprietary/vendor/lib/libstagefrightdolby.so"], shared_libs: ["libstagefright_foundation-v33", "libstagefright_softomx", "libstagefright_foundation", "libutils", "liblog", "libc++", "libc", "libm", "libdl", ], }, android_arm64: { srcs: ["proprietary/vendor/lib64/libstagefrightdolby.so"], shared_libs: ["libstagefright_foundation-v33", "libstagefright_softomx", "libstagefright_foundation", "libutils", "liblog", "libc++", "libc", "libm", "libdl", ], }, }, compile_multilib: "both", prefer: true, soc_specific: true, } cc_prebuilt_library_shared { name: "libdlbdsservice", owner: "xiaomi", strip: { none: true, }, target: { android_arm64: { srcs: ["proprietary/vendor/lib64/libdlbdsservice.so"], shared_libs: ["libstagefright_foundation-v33", "libutils", "libstagefright_foundation", "liblog", "libxml2", "libcrypto", "libdapparamstorage", "libsqlite", "libhidlbase", "vendor.dolby.hardware.dms@2.0", "libc++", "libc", "libm", "libdl", ], }, }, compile_multilib: "64", prefer: true, soc_specific: true, } cc_prebuilt_library_shared { name: "libdlbpreg", owner: "xiaomi", strip: { none: true, }, target: { android_arm: { srcs: ["proprietary/vendor/lib/libdlbpreg.so"], shared_libs: ["libstagefright_foundation-v33", "liblog", "libutils", "libcutils", "libaudioutils", "libstagefright_foundation", "libc++", "libc", "libm", "libdl", ], }, android_arm64: { srcs: ["proprietary/vendor/lib64/libdlbpreg.so"], shared_libs: ["libstagefright_foundation-v33", "liblog", "libutils", "libcutils", "libaudioutils", "libstagefright_foundation", "libc++", "libc", "libm", "libdl", ], }, }, compile_multilib: "both", prefer: true, soc_specific: true, } cc_prebuilt_library_shared { name: "libdlbvol", owner: "xiaomi", strip: { none: true, }, target: { android_arm: { srcs: ["proprietary/vendor/lib/soundfx/libdlbvol.so"], shared_libs: ["libstagefright_foundation-v33", "liblog", "libutils", "libcutils", "libaudioutils", "libstagefright_foundation", "libdlbpreg", "vendor.dolby.hardware.dms@2.0", "libc++", "libc", "libm", "libdl", ], }, android_arm64: { srcs: ["proprietary/vendor/lib64/soundfx/libdlbvol.so"], shared_libs: ["libstagefright_foundation-v33", "liblog", "libutils", "libcutils", "libaudioutils", "libstagefright_foundation", "libdlbpreg", "vendor.dolby.hardware.dms@2.0", "libc++", "libc", "libm", "libdl", ], }, }, compile_multilib: "both", relative_install_path: "soundfx", prefer: true, soc_specific: true, } cc_prebuilt_library_shared { name: "libspatialaudio", owner: "xiaomi", strip: { none: true, }, target: { android_arm: { srcs: ["proprietary/vendor/lib/soundfx/libspatialaudio.so"], shared_libs: ["libaudioutils", "libcutils", "liblog", "libc++", "libc", "libm", "libdl", ], }, android_arm64: { srcs: ["proprietary/vendor/lib64/soundfx/libspatialaudio.so"], shared_libs: ["libaudioutils", "libcutils", "liblog", "libc++", "libc", "libm", "libdl", ], }, }, compile_multilib: "both", relative_install_path: "soundfx", prefer: true, soc_specific: true, }