refactor: bootloader & cmake cleanup (#5232)
This commit is contained in:
@@ -254,6 +254,11 @@ if(SDCARD)
|
||||
set(FIRMWARE_SRC ${FIRMWARE_SRC})
|
||||
endif()
|
||||
|
||||
if(BLUETOOTH)
|
||||
add_definitions(-DBLUETOOTH)
|
||||
set(SRC ${SRC} bluetooth.cpp)
|
||||
endif()
|
||||
|
||||
if(SHUTDOWN_CONFIRMATION)
|
||||
add_definitions(-DSHUTDOWN_CONFIRMATION)
|
||||
endif()
|
||||
@@ -431,11 +436,11 @@ endif()
|
||||
|
||||
if(USBJ_EX)
|
||||
add_definitions(-DUSBJ_EX)
|
||||
set(SRC
|
||||
${SRC}
|
||||
set(SRC ${SRC}
|
||||
usb_joystick.cpp
|
||||
)
|
||||
)
|
||||
endif()
|
||||
|
||||
foreach(FILE ${TARGET_SRC})
|
||||
set(SRC targets/${TARGET_DIR}/${FILE} ${SRC})
|
||||
endforeach()
|
||||
@@ -463,7 +468,6 @@ else()
|
||||
endif()
|
||||
|
||||
if(NATIVE_BUILD)
|
||||
|
||||
set(RADIOLIB_NATIVE_SRC ${SRC})
|
||||
if(SIMU_DISKIO)
|
||||
set(RADIOLIB_NATIVE_SRC ${RADIOLIB_NATIVE_SRC}
|
||||
@@ -472,7 +476,8 @@ if(NATIVE_BUILD)
|
||||
|
||||
# Pack all radio sources into an object lib
|
||||
add_library(radiolib_native OBJECT EXCLUDE_FROM_ALL
|
||||
${RADIOLIB_NATIVE_SRC})
|
||||
${RADIOLIB_NATIVE_SRC}
|
||||
)
|
||||
|
||||
# Add -DSIMU here PUBLIC, so it can be imported by other targets
|
||||
# via INTERFACE_COMPILE_OPTIONS
|
||||
|
||||
Reference in New Issue
Block a user