clean up cmake, remove family_get_project_name()

This commit is contained in:
hathach
2025-12-19 12:24:06 +07:00
parent 7f4a761513
commit 49a8529dcf
46 changed files with 267 additions and 384 deletions

View File

@ -207,11 +207,6 @@ function(family_add_subdirectory DIR)
endif()
endfunction()
function(family_get_project_name OUTPUT_NAME DIR)
get_filename_component(SHORT_NAME ${DIR} NAME)
set(${OUTPUT_NAME} ${TINYUSB_FAMILY_PROJECT_NAME_PREFIX}${SHORT_NAME} PARENT_SCOPE)
endfunction()
function(family_initialize_project PROJECT DIR)
# set output suffix to .elf (skip espressif and rp2040)
if(NOT FAMILY STREQUAL "espressif" AND NOT FAMILY STREQUAL "rp2040")

View File

@ -296,7 +296,7 @@ function(family_configure_host_example TARGET RTOS)
# Pico-PIO-USB does not compile with all pico-sdk supported compilers, so check before enabling it
is_compiler_supported_by_pico_pio_usb(PICO_PIO_USB_COMPILER_SUPPORTED)
if (PICO_PIO_USB_COMPILER_SUPPORTED)
family_add_pico_pio_usb(${PROJECT})
family_add_pico_pio_usb(${TARGET})
endif()
endif()