Files
luban-lite-t3e-pro/packages/artinchip/mpp/middle_media/openmax/CMakeLists.txt
刘可亮 7bbc029dae v1.0.0
2023-08-30 16:21:18 +08:00

45 lines
961 B
CMake

set(OPENMAX_DEMUXER
component/OMX_DemuxerComponent.c
)
set(OPENMAX_VDEC
component/OMX_VdecComponent.c
)
set(OPENMAX_VIDEO_RENDER
component/OMX_VideoRenderComponent.c
)
set(OPENMAX_ADEC
component/OMX_AdecComponent.c
)
set(OPENMAX_AUDIO_RENDER
component/OMX_AudioRenderComponent.c
)
set(OPENMAX_CLOCK
component/OMX_ClockComponent.c
)
add_library(openmax SHARED
${OPENMAX_DEMUXER}
${OPENMAX_VDEC}
${OPENMAX_VIDEO_RENDER}
${OPENMAX_ADEC}
${OPENMAX_AUDIO_RENDER}
${OPENMAX_CLOCK}
OMX_Core.c
)
target_link_libraries(openmax mpp_audio_decoder mpp_decoder openmax_base base)
target_include_directories(openmax PUBLIC
"${CMAKE_CURRENT_SOURCE_DIR}/include"
"${CMAKE_CURRENT_SOURCE_DIR}/component"
"${CMAKE_CURRENT_SOURCE_DIR}/../audio_decoder/include"
)
if(DEFINED CMAKE_INSTALL_FULL_LIBDIR)
install(TARGETS openmax RUNTIME DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}")
endif() # CMAKE_INSTALL_FULL_LIBDIR