mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-14 18:38:55 +00:00
45 lines
961 B
CMake
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
|
|
|