1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
add_library(libsrtp OBJECT EXCLUDE_FROM_ALL)
init_target(libsrtp)
add_library(tg_owt::libsrtp ALIAS libsrtp)
link_openssl(libsrtp)
set(libsrtp_loc ${third_party_loc}/libsrtp)
nice_target_sources(libsrtp ${libsrtp_loc}
PRIVATE
crypto/cipher/aes_gcm_ossl.c
crypto/cipher/aes_icm_ossl.c
crypto/cipher/cipher.c
crypto/cipher/null_cipher.c
crypto/hash/auth.c
crypto/hash/hmac_ossl.c
crypto/hash/null_auth.c
crypto/kernel/alloc.c
crypto/kernel/crypto_kernel.c
crypto/kernel/err.c
crypto/kernel/key.c
crypto/math/datatypes.c
crypto/math/stat.c
crypto/replay/rdb.c
crypto/replay/rdbx.c
crypto/replay/ut_sim.c
srtp/ekt.c
srtp/srtp.c
)
target_include_directories(libsrtp
PUBLIC
$<BUILD_INTERFACE:${libsrtp_loc}/include>
$<BUILD_INTERFACE:${libsrtp_loc}/crypto/include>
$<INSTALL_INTERFACE:${webrtc_includedir}/third_party/libsrtp/include>
$<INSTALL_INTERFACE:${webrtc_includedir}/third_party/libsrtp/crypto/include>
)
|