mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-11-03 01:33:35 +08:00
[test]: mpi demo won't link with mpp legacy library
In the future, the legacy vpu api won't be supported and the wrapper library is not offered anymore. Change-Id: I4019d689693e193d66fc222cc3e5662d7d6cc58d Signed-off-by: Randy Li <randy.li@rock-chips.com> Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
@@ -16,9 +16,9 @@ macro(add_mpp_test module)
|
||||
# NOTE: use share library on Linux and Android
|
||||
# use static library for window debug
|
||||
if(UNIX)
|
||||
target_link_libraries(${test_name} mpp_shared mpp_legacy_shared utils)
|
||||
target_link_libraries(${test_name} mpp_shared utils)
|
||||
else()
|
||||
target_link_libraries(${test_name} mpp_shared mpp_legacy utils)
|
||||
target_link_libraries(${test_name} mpp_shared utils)
|
||||
endif()
|
||||
set_target_properties(${test_name} PROPERTIES FOLDER "test")
|
||||
#install(TARGETS ${test_name} RUNTIME DESTINATION ${TEST_INSTALL_DIR})
|
||||
@@ -26,9 +26,6 @@ macro(add_mpp_test module)
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
# legacy vpu_api unit test
|
||||
add_mpp_test(vpu_api)
|
||||
|
||||
# mpp_buffer unit test
|
||||
add_mpp_test(mpp_buffer)
|
||||
|
||||
@@ -46,3 +43,23 @@ add_mpp_test(mpi_enc)
|
||||
|
||||
# mpi rc unit test
|
||||
add_mpp_test(mpi_rc)
|
||||
|
||||
macro(add_legacy_test module)
|
||||
set(test_name ${module}_test)
|
||||
string(TOUPPER ${test_name} test_tag)
|
||||
#message(STATUS "moduule : ${module}")
|
||||
#message(STATUS "test_name : ${test_name}")
|
||||
#message(STATUS "test_tag : ${test_tag}")
|
||||
|
||||
option(${test_tag} "Build legacy ${module} unit test" ON)
|
||||
if(${test_tag})
|
||||
add_executable(${test_name} ${test_name}.c)
|
||||
target_link_libraries(${test_name} mpp_legacy_shared utils)
|
||||
set_target_properties(${test_name} PROPERTIES FOLDER "test")
|
||||
#install(TARGETS ${test_name} RUNTIME DESTINATION ${TEST_INSTALL_DIR})
|
||||
#add_test(NAME ${test_name} COMMAND ${test_name})
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
# legacy vpu_api unit test
|
||||
add_legacy_test(vpu_api)
|
||||
|
||||
Reference in New Issue
Block a user