# Copyright (c) 2025 Dominic Masters # # This software is released under the MIT License. # https://opensource.org/licenses/MIT # Sources target_sources(${DUSK_TARGET_NAME} PRIVATE display.c framebuffer.c camera.c screen.c texture.c spritebatch.c ) # Subdirectories add_subdirectory(mesh) add_subdirectory(palette) add_subdirectory(tileset) if(DUSK_TARGET_SYSTEM STREQUAL "linux") target_compile_definitions(${DUSK_TARGET_NAME} PRIVATE DISPLAY_SDL2=1 DISPLAY_WINDOW_WIDTH_DEFAULT=960 DISPLAY_WINDOW_HEIGHT_DEFAULT=720 ) elseif(DUSK_TARGET_SYSTEM STREQUAL "psp") target_compile_definitions(${DUSK_TARGET_NAME} PRIVATE DISPLAY_SDL2=1 DISPLAY_WINDOW_WIDTH_DEFAULT=480 DISPLAY_WINDOW_HEIGHT_DEFAULT=272 DISPLAY_SIZE_DYNAMIC=0 ) endif()