set(ARCHEUS_STD_NONE_WINDOW_SOURCES src/graphics/none/window.c ) set(ARCHEUS_STD_NONE_INPUT_SOURCES src/input/none/keyboard.c src/input/none/mouse.c ) set(ARCHEUS_STD_NONE_GRAPHICS_SOURCES src/graphics/none/circle.c src/graphics/none/config.c src/graphics/none/line.c src/graphics/none/obround.c src/graphics/none/rectangle.c src/graphics/none/renderer.c src/graphics/none/sprite.c src/graphics/none/spritesheet.c src/graphics/none/text.c ) function(none_check_and_init_needed _ARCHEUS_STD_FLAGS _ARCHEUS_STD_SOURCES ARCHEUS_STD_WINDOW_BACKEND ARCHEUS_STD_INPUT_BACKEND ARCHEUS_STD_GRAPHICS_BACKEND) #add matching files for the selected backends if(${ARCHEUS_STD_WINDOW_BACKEND} STREQUAL "NONE") string(APPEND ${_ARCHEUS_STD_FLAGS} "-DARC_NONE_WINDOW ") list(APPEND ${_ARCHEUS_STD_SOURCES} ${ARCHEUS_STD_NONE_WINDOW_SOURCES}) endif() if(${ARCHEUS_STD_INPUT_BACKEND} STREQUAL "NONE") string(APPEND ${_ARCHEUS_STD_FLAGS} "-DARC_NONE_INPUT ") list(APPEND ${_ARCHEUS_STD_SOURCES} ${ARCHEUS_STD_NONE_INPUT_SOURCES}) endif() if(${ARCHEUS_STD_GRAPHICS_BACKEND} STREQUAL "NONE") string(APPEND ${_ARCHEUS_STD_FLAGS} "-DARC_NONE_GRAPHICS ") list(APPEND ${_ARCHEUS_STD_SOURCES} ${ARCHEUS_STD_NONE_GRAPHICS_SOURCES}) endif() set(${_ARCHEUS_STD_FLAGS} ${${_ARCHEUS_STD_FLAGS}} PARENT_SCOPE) set(${_ARCHEUS_STD_SOURCES} ${${_ARCHEUS_STD_SOURCES}} PARENT_SCOPE) endfunction()