Files
hardware_samsung_slsi-linar…/videocodec/Android.bp
Stricted 10eee2c2fc openmax: convert to bp
Change-Id: I07f7be75a276d14aa4b9238ded16fb6a07ccf633
2025-01-19 08:16:30 +01:00

66 lines
2.1 KiB
Plaintext

cc_library_static {
name: "libExynosVideoApi",
vendor: true,
shared_libs: [
"libion_exynos",
"liblog",
],
cflags: [
"-Wno-unused-variable",
"-Wno-unused-label",
"-Wno-unused-function",
] + select(soong_config_variable("openmax", "USE_EXYNOS_MEDIA_EXT"), {
"true": ["-DUSE_EXYNOS_MEDIA_EXT"],
default: [],
}) + select(soong_config_variable("openmax", "USE_DEFINE_H264_SEI_TYPE"), {
"true": ["-DUSE_DEFINE_H264_SEI_TYPE"],
default: [],
}) + select(soong_config_variable("openmax", "USE_ORIGINAL_HEADER"), {
"true": ["-DUSE_ORIGINAL_HEADER"],
default: [],
}) + select(soong_config_variable("openmax", "USE_MFC_HEADER"), {
"true": ["-DUSE_MFC_HEADER"],
default: [],
}) + select(soong_config_variable("openmax", "MAINLINE_FEATURE_IN_SINCE_4_19"), {
"true": ["-DMAINLINE_FEATURE_IN_SINCE_4_19"],
default: [],
}) + select(soong_config_variable("openmax", "USE_HEVC_HWIP"), {
"true": ["-DUSE_HEVC_HWIP"],
default: [],
}) + select(soong_config_variable("openmax", "USE_DEINTERLACING_SUPPORT"), {
"true": ["-DUSE_DEINTERLACING_SUPPORT"],
default: [],
}) + select(soong_config_variable("openmax", "USE_SINGLE_PALNE_SUPPORT"), {
"true": ["-DUSE_SINGLE_PALNE_SUPPORT"],
default: [],
}) + select(soong_config_variable("openmax", "FRAMERATE_THRESH_HOLD"), {
any @ flag_val: ["-DFRAMERATE_THRESH_HOLD=" + flag_val],
default: [],
}),
srcs: [
"ExynosVideoInterface.c",
"osal/ExynosVideo_OSAL.c",
"dec/ExynosVideoDecoder.c",
"enc/ExynosVideoEncoder.c",
],
header_libs: [
"device_kernel_headers",
"media_plugin_headers",
],
local_include_dirs: [
"include",
"osal/include",
] + select(soong_config_variable("openmax", "USE_MFC_HEADER"), {
"true": ["mfc_headers"],
default: [],
}),
include_dirs: [
"hardware/samsung_slsi-linaro/exynos/include",
],
}