mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-25 15:05:45 +01:00
- Added CMake option USE_SHARED_POLARSSL_LIBRARY to allow for building of shared PolarSSL library
This commit is contained in:
parent
547f73d66f
commit
9d3a7e4188
@ -1,4 +1,6 @@
|
||||
add_library(polarssl STATIC
|
||||
OPTION(USE_SHARED_POLARSSL_LIBRARY "Build PolarSSL as a shared library." OFF)
|
||||
|
||||
set(src
|
||||
aes.c
|
||||
arc4.c
|
||||
base64.c
|
||||
@ -27,6 +29,17 @@ add_library(polarssl STATIC
|
||||
xtea.c
|
||||
)
|
||||
|
||||
if(NOT USE_SHARED_POLARSSL_LIBRARY)
|
||||
|
||||
add_library(polarssl STATIC ${src})
|
||||
|
||||
else(NOT USE_SHARED_POLARSSL_LIBRARY)
|
||||
|
||||
ADD_LIBRARY(polarssl SHARED ${src})
|
||||
SET_TARGET_PROPERTIES(polarssl PROPERTIES VERSION 0.14.1 SOVERSION 0)
|
||||
|
||||
endif(NOT USE_SHARED_POLARSSL_LIBRARY)
|
||||
|
||||
INSTALL(TARGETS polarssl
|
||||
DESTINATION lib
|
||||
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
|
||||
|
Loading…
Reference in New Issue
Block a user