1# 2# Copyright (c) 2022 Nordic Semiconductor ASA 3# 4# SPDX-License-Identifier: Apache-2.0 5# 6# CMakeLists.txt file for creating of uut library. 7# 8 9add_library(uut STATIC 10 ${ZEPHYR_BASE}/subsys/bluetooth/controller/util/mem.c 11 ${ZEPHYR_BASE}/subsys/bluetooth/controller/util/memq.c 12 ${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/ull_tx_queue.c 13 ${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/ull_conn.c 14 ${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/ll_feat.c 15 ${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/ull_llcp_conn_upd.c 16 ${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/ull_llcp_cc.c 17 ${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/ull_llcp_pdu.c 18 ${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/ull_llcp_remote.c 19 ${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/ull_llcp_local.c 20 ${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/ull_llcp.c 21 ${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/ull_llcp_common.c 22 ${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/ull_llcp_chmu.c 23) 24 25if (CONFIG_BT_CTLR_PHY) 26 target_sources(uut PRIVATE 27 ${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/ull_llcp_phy.c 28 ) 29endif() 30 31if (CONFIG_BT_CTLR_LE_ENC) 32 target_sources(uut PRIVATE 33 ${ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/ull_llcp_enc.c 34 ) 35endif() 36 37 38add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/mock_ctrl mocks) 39 40target_link_libraries(uut PUBLIC test_interface mocks) 41 42add_definitions(-include ztest.h) 43