|
| 1 | +# Copyright (c) 2025 Sayed Naser Moravej <seyednasermoravej@gmail.com> |
| 2 | +# SPDX-License-Identifier: Apache-2.0 |
| 3 | + |
| 4 | +if(CONFIG_LIBSRTP) |
| 5 | + |
| 6 | +zephyr_include_directories( |
| 7 | + ${ZEPHYR_LIBSRTP_MODULE_DIR}/include |
| 8 | + ${ZEPHYR_LIBSRTP_MODULE_DIR}/crypto/include |
| 9 | + ${CMAKE_CURRENT_SOURCE_DIR} |
| 10 | + ${ZEPHYR_LIBSRTP_MODULE_DIR}/test |
| 11 | +) |
| 12 | + |
| 13 | +zephyr_library_named(libsrtp) |
| 14 | + |
| 15 | +zephyr_library_compile_definitions(MBEDTLS) |
| 16 | + |
| 17 | +zephyr_library_sources( |
| 18 | + ${ZEPHYR_LIBSRTP_MODULE_DIR}/srtp/srtp.c |
| 19 | + ${ZEPHYR_LIBSRTP_MODULE_DIR}/crypto/cipher/cipher.c |
| 20 | + ${ZEPHYR_LIBSRTP_MODULE_DIR}/crypto/cipher/cipher_test_cases.c |
| 21 | + ${ZEPHYR_LIBSRTP_MODULE_DIR}/crypto/cipher/null_cipher.c |
| 22 | + ${ZEPHYR_LIBSRTP_MODULE_DIR}/crypto/math/datatypes.c |
| 23 | + ${ZEPHYR_LIBSRTP_MODULE_DIR}/crypto/kernel/alloc.c |
| 24 | + ${ZEPHYR_LIBSRTP_MODULE_DIR}/crypto/kernel/key.c |
| 25 | + ${ZEPHYR_LIBSRTP_MODULE_DIR}/crypto/kernel/err.c |
| 26 | + ${ZEPHYR_LIBSRTP_MODULE_DIR}/crypto/kernel/crypto_kernel.c |
| 27 | + ${ZEPHYR_LIBSRTP_MODULE_DIR}/crypto/replay/rdb.c |
| 28 | + ${ZEPHYR_LIBSRTP_MODULE_DIR}/crypto/replay/rdbx.c |
| 29 | + ${ZEPHYR_LIBSRTP_MODULE_DIR}/crypto/hash/auth.c |
| 30 | + ${ZEPHYR_LIBSRTP_MODULE_DIR}/crypto/hash/auth_test_cases.c |
| 31 | + ${ZEPHYR_LIBSRTP_MODULE_DIR}/test/rtp.c |
| 32 | + ${ZEPHYR_LIBSRTP_MODULE_DIR}/crypto/hash/null_auth.c |
| 33 | + ${ZEPHYR_LIBSRTP_MODULE_DIR}/test/util.c |
| 34 | + ${ZEPHYR_LIBSRTP_MODULE_DIR}/crypto/hash/hmac_mbedtls.c |
| 35 | + ${ZEPHYR_LIBSRTP_MODULE_DIR}/crypto/cipher/aes_icm_mbedtls.c |
| 36 | + ${ZEPHYR_LIBSRTP_MODULE_DIR}/crypto/cipher/aes_gcm_mbedtls.c |
| 37 | +) |
| 38 | + |
| 39 | +zephyr_library_compile_definitions(libsrtp HAVE_CONFIG_H) |
| 40 | + |
| 41 | +zephyr_library_link_libraries(mbedTLS) |
| 42 | + |
| 43 | +endif() |
0 commit comments