package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "frameworks_av_media_libstagefright_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["frameworks_av_media_libstagefright_license"],
}

cc_library_shared {
    name: "libstagefright_soft_avcenc",
    defaults: ["libstagefright_softomx-defaults"],

    static_libs: ["libavcenc"],
    srcs: ["SoftAVCEnc.cpp"],

    sanitize: {
        misc_undefined: [
            "signed-integer-overflow",
        ],
        cfi: true,
        config: {
            cfi_assembly_support: true,
        },
    },

    cflags: [
        "-Wall",
        "-Wno-unused-variable",
    ],
    ldflags: ["-Wl,-Bsymbolic"],

    version_script: "exports.lds",
}
