mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-12-26 11:17:44 +01:00
[cmake]: fix missing version symbol on Android
Change-Id: Ie9137ddf807b37f8713cb3cbcd41bbf639477446 Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
parent
cd97a84407
commit
c056a31049
2 changed files with 8 additions and 5 deletions
|
|
@ -185,7 +185,7 @@ if(GCC)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT $(CMAKE_BUILD_TYPE) MATCHES "Release")
|
||||
if($(CMAKE_BUILD_TYPE) MATCHES "Release")
|
||||
set(CMAKE_C_VISIBILITY_PRESET hidden)
|
||||
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -37,18 +37,21 @@ set (MPP_SRC
|
|||
mpi_impl.cpp
|
||||
mpi.cpp
|
||||
)
|
||||
|
||||
|
||||
add_library(mpp STATIC ${MPP_SRC})
|
||||
set_target_properties(mpp PROPERTIES FOLDER "mpp")
|
||||
set_target_properties(mpp PROPERTIES FOLDER "mpp")
|
||||
set_target_properties(mpp PROPERTIES CLEAN_DIRECT_OUTPUT 1)
|
||||
target_link_libraries(mpp mpp_base mpp_codec mpp_hal)
|
||||
set_target_properties(mpp PROPERTIES C_VISIBILITY_PRESET default)
|
||||
set_target_properties(mpp PROPERTIES CXX_VISIBILITY_PRESET default)
|
||||
|
||||
add_library(mpp_shared SHARED ${MPP_SRC})
|
||||
set_target_properties(mpp_shared PROPERTIES FOLDER "mpp")
|
||||
set_target_properties(mpp_shared PROPERTIES OUTPUT_NAME "mpp")
|
||||
set_target_properties(mpp_shared PROPERTIES FOLDER "mpp")
|
||||
set_target_properties(mpp_shared PROPERTIES OUTPUT_NAME "mpp")
|
||||
set_target_properties(mpp_shared PROPERTIES CLEAN_DIRECT_OUTPUT 1)
|
||||
target_link_libraries(mpp_shared mpp)
|
||||
set_target_properties(mpp_shared PROPERTIES C_VISIBILITY_PRESET default)
|
||||
set_target_properties(mpp_shared PROPERTIES CXX_VISIBILITY_PRESET default)
|
||||
|
||||
add_subdirectory(legacy)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue