diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-15 20:42:25 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-15 23:42:31 +0100 |
commit | add9c19ae46263e9c2ca85c0baad22cd758f6c63 (patch) | |
tree | 791bf2ee3ee1389ae323078580673a148651311e /CMakeLists.txt | |
parent | c19d5b22e779848941c51aeb7c3030a18c80aa73 (diff) | |
download | ustream-ssl-add9c19ae46263e9c2ca85c0baad22cd758f6c63.tar.gz |
add mbedtls variant
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c09fe51..c1c2b32 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,11 @@ ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -Wmissing-declarations) SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") -IF(POLARSSL) +IF(MBEDTLS) + ADD_DEFINITIONS(-DHAVE_MBEDTLS) + SET(SSL_SRC ustream-mbedtls.c) + SET(SSL_LIB mbedtls mbedcrypto mbedx509 m) +ELSEIF(POLARSSL) ADD_DEFINITIONS(-DHAVE_POLARSSL) SET(SSL_SRC ustream-polarssl.c) SET(SSL_LIB polarssl m) |