# Copyright 2019,2020 NXP # # This software is owned or controlled by NXP and may only be used # strictly in accordance with the applicable license terms. By expressly # accepting such terms or by downloading, installing, activating and/or # otherwise using the software, you are agreeing that you have read, and # that you agree to comply with and are bound by, such license terms. If # you do not agree to be bound by the applicable license terms, then you # may not retain, install, activate or otherwise use the software. # PROJECT(ccid) FILE( GLOB ${PROJECT_NAME}_files *.c ext/emvl1_core.c ext/emvl1_interface.c ext/semihost_hardfault.c ext/smart_card.c ext/usb_device_ccid.c ext/usb_device_descriptor.c *.h ${SIMW_TOP_DIR}/ext/mcu-sdk/middleware/usb/*.c ${SIMW_TOP_DIR}/ext/mcu-sdk/middleware/usb/device/class/cdc/*.c ${SIMW_TOP_DIR}/ext/mcu-sdk/middleware/usb/osa/usb_osa_bm.c ${SIMW_TOP_DIR}/ext/mcu-sdk/middleware/usb/device/class/usb_device_cdc_acm.c ${SIMW_TOP_DIR}/ext/mcu-sdk/middleware/usb/device/class/usb_device_class.c ${SIMW_TOP_DIR}/ext/mcu-sdk/middleware/usb/device/usb_device_ch9.c ${SIMW_TOP_DIR}/ext/mcu-sdk/middleware/usb/device/usb_device_dci.c ) IF(WithHost_frdmk64f) FILE( GLOB khci_files ${SIMW_TOP_DIR}/ext/mcu-sdk/middleware/usb/device/usb_device_khci.c ext/fsl_smartcard_uart.c ) ENDIF() IF(WithHost_evkmimxrt1060) FILE( GLOB echci_files ${SIMW_TOP_DIR}/ext/mcu-sdk/middleware/usb/device/usb_device_ehci.c ) ENDIF() ADD_EXECUTABLE( ${PROJECT_NAME} ${KSDK_STARTUP_FILE} ${${PROJECT_NAME}_files} ${khci_files} ${echci_files} ) TARGET_LINK_LIBRARIES( ${PROJECT_NAME} a7x_utils smCom ex_common ) IF(SSS_HAVE_HOSTCRYPTO_MBEDTLS) TARGET_LINK_LIBRARIES(${PROJECT_NAME} mbedtls) ENDIF() TARGET_INCLUDE_DIRECTORIES( ${PROJECT_NAME} PRIVATE . ext ${SIMW_TOP_DIR}/ext/mcu-sdk/middleware/usb/device ${SIMW_TOP_DIR}/ext/mcu-sdk/middleware/usb/device/class ${SIMW_TOP_DIR}/ext/mcu-sdk/middleware/usb/include ${SIMW_TOP_DIR}/ext/mcu-sdk/middleware/usb/osa ${SIMW_TOP_DIR}/ext/mcu-sdk/devices/${KSDK_CPUName}/usb_ccid ) TARGET_COMPILE_DEFINITIONS(${PROJECT_NAME} PRIVATE USB_STACK_BM) CREATE_BINARY(${PROJECT_NAME}) IF( CMAKE_BUILD_TYPE STREQUAL "Release" ) COPY_TO_SOURCEDIR_RENAME( ${PROJECT_NAME} ${eSEName}_${PROJECT_NAME} binaries/MCU/${eSEName} ${SMCOM} ) ENDIF()