mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-12-26 11:17:44 +01:00
[cmake]: set default visibility to hidden and enable mpp/vpu export function
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1195 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
parent
71f5906081
commit
c2cdea0a6d
3 changed files with 7 additions and 0 deletions
|
|
@ -184,6 +184,10 @@ if(GCC)
|
|||
add_definitions(-march=i686)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(CMAKE_C_VISIBILITY_PRESET hidden)
|
||||
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
|
||||
|
||||
# disable multichar warning
|
||||
add_definitions(-Wno-multichar)
|
||||
endif(GCC)
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ add_library(mpp STATIC ${MPP_SRC})
|
|||
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)
|
||||
|
||||
add_library(mpp_shared SHARED ${MPP_SRC})
|
||||
set_target_properties(mpp_shared PROPERTIES FOLDER "mpp")
|
||||
|
|
|
|||
|
|
@ -21,6 +21,8 @@ add_library(mpp_legacy_shared SHARED ${MPP_LEGACY_SRC})
|
|||
set_target_properties(mpp_legacy_shared PROPERTIES FOLDER "mpp/legacy")
|
||||
set_target_properties(mpp_legacy_shared PROPERTIES OUTPUT_NAME "vpu")
|
||||
set_target_properties(mpp_legacy_shared PROPERTIES CLEAN_DIRECT_OUTPUT 1)
|
||||
set_target_properties(mpp_legacy_shared PROPERTIES C_VISIBILITY_PRESET default)
|
||||
set_target_properties(mpp_legacy_shared PROPERTIES CXX_VISIBILITY_PRESET default)
|
||||
|
||||
if(RKPLATFORM)
|
||||
target_link_libraries(mpp_legacy_shared worker_vpu dl mpp_shared)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue