diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4ef872d..7f0f8eb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -137,7 +137,7 @@ endif() # FIXME: set up dependency for xsystem35 on this if (ENABLE_SDL AND NOT EMSCRIPTEN AND NOT ANDROID) - add_custom_target(sdl_input.c - COMMAND perl xsyskey.pl ${SDL2_INCLUDE_DIRS} > sdl_input.c + add_custom_target(sdl_keytable.h + COMMAND perl ../tools/xsyskey.pl ${SDL2_INCLUDE_DIRS} > sdl_keytable.h WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) endif() diff --git a/src/sdl_event.c b/src/sdl_event.c index 698cd8a..886c594 100644 --- a/src/sdl_event.c +++ b/src/sdl_event.c @@ -37,7 +37,7 @@ #include "menu.h" #include "input.h" #include "joystick.h" -#include "sdl_input.c" +#include "sdl_keytable.h" #include "texthook.h" static void sdl_getEvent(void); diff --git a/src/sdl_input.c b/src/sdl_keytable.h similarity index 100% rename from src/sdl_input.c rename to src/sdl_keytable.h diff --git a/src/xsyskey.pl b/tools/xsyskey.pl similarity index 100% rename from src/xsyskey.pl rename to tools/xsyskey.pl