linuxOS_D21X/source/artinchip/aic-mpp/ve/decoder/CMakeLists.txt

39 lines
783 B
CMake
Raw Normal View History

2024-11-29 08:13:19 +00:00
set(DECODER_MJPEG
jpeg/jpeg_hal.c
jpeg/mjpeg_decoder.c
)
set(DECODER_PNG
png/png_decoder.c
png/png_hal.c
)
set(DECODER_AVC
h264/h264_decoder.c
h264/h264_hal.c
h264/h264_nal.c
h264/h264_refs.c
)
add_library(mpp_decoder SHARED
${DECODER_MJPEG}
${DECODER_PNG}
${DECODER_AVC}
2024-11-29 08:33:21 +00:00
aicp/aicp_wrapper.c
2024-11-29 08:13:19 +00:00
mpp_decoder.c
frame_manager.c
packet_manager.c
)
2024-11-29 08:33:21 +00:00
target_link_libraries(mpp_decoder mpp_base mpp_ve dl)
2024-11-29 08:13:19 +00:00
target_include_directories(mpp_decoder PUBLIC
"${CMAKE_CURRENT_SOURCE_DIR}/jpeg"
"${CMAKE_CURRENT_SOURCE_DIR}/png"
"${CMAKE_CURRENT_SOURCE_DIR}/h264"
)
if(DEFINED CMAKE_INSTALL_FULL_LIBDIR)
install(TARGETS mpp_decoder RUNTIME DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}")
endif() # CMAKE_INSTALL_FULL_LIBDIR