diff options
Diffstat (limited to 'config.tests')
-rw-r--r-- | config.tests/sdl/main.cpp | 9 | ||||
-rw-r--r-- | config.tests/sdl/sdl.pro | 15 |
2 files changed, 24 insertions, 0 deletions
diff --git a/config.tests/sdl/main.cpp b/config.tests/sdl/main.cpp new file mode 100644 index 0000000..4fe2480 --- /dev/null +++ b/config.tests/sdl/main.cpp @@ -0,0 +1,9 @@ +#include <SDL.h> +#include <SDL_gamecontroller.h> + +int main(int argc, char** argv) +{ + SDL_Init(SDL_INIT_GAMECONTROLLER); + SDL_Quit(); + return 0; +} diff --git a/config.tests/sdl/sdl.pro b/config.tests/sdl/sdl.pro new file mode 100644 index 0000000..7d5263a --- /dev/null +++ b/config.tests/sdl/sdl.pro @@ -0,0 +1,15 @@ +SOURCES += main.cpp +QT = +CONFIG -= qt + +osx:{ + INCLUDEPATH += /Library/Frameworks/SDL2.framework/Headers + LIBS += -F/Library/Frameworks/ -framework SDL2 +} + +unix:!osx{ + CONFIG += link_pkgconfig + PKGCONFIG += sdl2 +} + +win32: LIBS += -lSDL2 -lSDL2main |