Use simple scheme with direct model slot to model filename
This commit is contained in:
@@ -154,10 +154,11 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}/bitmaps/${BITMAPS_DIR})
|
||||
include(gui/CMakeLists.txt)
|
||||
|
||||
set(SRC ${SRC} storage/storage_common.cpp)
|
||||
|
||||
if(${STORAGE} STREQUAL SDCARD)
|
||||
set(SRC ${SRC} storage/modelslist.cpp storage/sdcard_common.cpp)
|
||||
if(${STORAGE_FORMAT} STREQUAL BIN)
|
||||
set(SRC ${SRC} storage/sdcard_raw.cpp)
|
||||
set(SRC ${SRC} storage/sdcard_common.cpp)
|
||||
if(${STORAGE_FORMAT} STREQUAL RAW)
|
||||
set(SRC ${SRC} storage/modelslist.cpp storage/sdcard_raw.cpp)
|
||||
add_definitions(-DSDCARD_RAW)
|
||||
elseif(${STORAGE_FORMAT} STREQUAL YAML)
|
||||
set(SRC ${SRC} storage/sdcard_yaml.cpp)
|
||||
@@ -166,10 +167,14 @@ if(${STORAGE} STREQUAL SDCARD)
|
||||
if (${STORAGE_CONVERT} STREQUAL EEPROM_RLC)
|
||||
set(SRC ${SRC} storage/eeprom_rlc.cpp)
|
||||
add_definitions(-DEEPROM_RLC)
|
||||
else()
|
||||
else(${STORAGE_CONVERT} STREQUAL RAW)
|
||||
set(SRC ${SRC} storage/sdcard_raw.cpp)
|
||||
endif()
|
||||
endif()
|
||||
if(STORAGE_MODELSLIST)
|
||||
set(SRC ${SRC} storage/modelslist.cpp)
|
||||
add_definitions(-DSTORAGE_MODELSLIST)
|
||||
endif()
|
||||
elseif(${STORAGE} STREQUAL EEPROM)
|
||||
set(SRC ${SRC} storage/eeprom_common.cpp)
|
||||
add_definitions(-DEEPROM)
|
||||
@@ -185,6 +190,7 @@ elseif(${STORAGE} STREQUAL EEPROM)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
include(storage/conversions/CMakeLists.txt)
|
||||
|
||||
if(RTC_BACKUP_RAM)
|
||||
|
||||
Reference in New Issue
Block a user