From b111f7e3d81a2e77cedacc06411f4edaee1653f4 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sat, 27 Aug 2011 18:29:44 +0000 Subject: [PATCH] core: move platform-specific code to specific directories. --- src/Makefile.am | 8 +++++--- src/{ => platform/android}/androidapp.cpp | 0 src/{ => platform/ps3}/ps3app.cpp | 0 src/{ => platform/ps3}/ps3app.h | 0 src/{ => platform/ps3}/ps3input.cpp | 0 src/{ => platform/ps3}/ps3input.h | 0 src/{ => platform/sdl}/sdlapp.cpp | 2 +- src/{ => platform/sdl}/sdlapp.h | 0 src/{ => platform/sdl}/sdlinput.cpp | 0 src/{ => platform/sdl}/sdlinput.h | 0 test/debug/quad.cpp | 6 +++--- 11 files changed, 9 insertions(+), 7 deletions(-) rename src/{ => platform/android}/androidapp.cpp (100%) rename src/{ => platform/ps3}/ps3app.cpp (100%) rename src/{ => platform/ps3}/ps3app.h (100%) rename src/{ => platform/ps3}/ps3input.cpp (100%) rename src/{ => platform/ps3}/ps3input.h (100%) rename src/{ => platform/sdl}/sdlapp.cpp (98%) rename src/{ => platform/sdl}/sdlapp.h (100%) rename src/{ => platform/sdl}/sdlinput.cpp (100%) rename src/{ => platform/sdl}/sdlinput.h (100%) diff --git a/src/Makefile.am b/src/Makefile.am index 6bc44af5..ccfcd975 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -12,11 +12,13 @@ liblol_a_SOURCES = \ worldentity.cpp worldentity.h gradient.cpp gradient.h \ platform.cpp platform.h sprite.cpp sprite.h \ \ - sdlapp.cpp sdlapp.h sdlinput.cpp sdlinput.h \ - \ eglapp.cpp eglapp.h \ \ - ps3app.cpp ps3app.h ps3input.cpp ps3input.h \ + platform/sdl/sdlapp.cpp platform/sdl/sdlapp.h \ + platform/sdl/sdlinput.cpp platform/sdl/sdlinput.h \ + \ + platform/ps3/ps3app.cpp platform/ps3/ps3app.h \ + platform/ps3/ps3input.cpp platform/ps3/ps3input.h \ \ shader/shader.cpp shader/shader.h \ \ diff --git a/src/androidapp.cpp b/src/platform/android/androidapp.cpp similarity index 100% rename from src/androidapp.cpp rename to src/platform/android/androidapp.cpp diff --git a/src/ps3app.cpp b/src/platform/ps3/ps3app.cpp similarity index 100% rename from src/ps3app.cpp rename to src/platform/ps3/ps3app.cpp diff --git a/src/ps3app.h b/src/platform/ps3/ps3app.h similarity index 100% rename from src/ps3app.h rename to src/platform/ps3/ps3app.h diff --git a/src/ps3input.cpp b/src/platform/ps3/ps3input.cpp similarity index 100% rename from src/ps3input.cpp rename to src/platform/ps3/ps3input.cpp diff --git a/src/ps3input.h b/src/platform/ps3/ps3input.h similarity index 100% rename from src/ps3input.h rename to src/platform/ps3/ps3input.h diff --git a/src/sdlapp.cpp b/src/platform/sdl/sdlapp.cpp similarity index 98% rename from src/sdlapp.cpp rename to src/platform/sdl/sdlapp.cpp index 86047f18..d3859c49 100644 --- a/src/sdlapp.cpp +++ b/src/platform/sdl/sdlapp.cpp @@ -18,7 +18,7 @@ #include "core.h" #include "lolgl.h" -#include "sdlapp.h" +#include "platform/sdl/sdlapp.h" namespace lol { diff --git a/src/sdlapp.h b/src/platform/sdl/sdlapp.h similarity index 100% rename from src/sdlapp.h rename to src/platform/sdl/sdlapp.h diff --git a/src/sdlinput.cpp b/src/platform/sdl/sdlinput.cpp similarity index 100% rename from src/sdlinput.cpp rename to src/platform/sdl/sdlinput.cpp diff --git a/src/sdlinput.h b/src/platform/sdl/sdlinput.h similarity index 100% rename from src/sdlinput.h rename to src/platform/sdl/sdlinput.h diff --git a/test/debug/quad.cpp b/test/debug/quad.cpp index 56f20b21..21e1675b 100644 --- a/test/debug/quad.cpp +++ b/test/debug/quad.cpp @@ -20,12 +20,12 @@ using namespace std; using namespace lol; #if defined __CELLOS_LV2__ -# include "ps3app.h" +# include "platform/ps3/ps3app.h" #elif defined HAVE_GLES_2X # include "eglapp.h" #else -# include "sdlapp.h" -# include "sdlinput.h" +# include "platform/sdl/sdlapp.h" +# include "platform/sdl/sdlinput.h" #endif #if defined _WIN32