Disable compilation of inactive backends.

This commit is contained in:
spartanj
2011-02-18 15:29:38 -03:00
parent a4b6f2eb25
commit ef9e437edb
8 changed files with 34 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
#include "ccursormanagersdl.hpp"
#include "ccursorsdl.hpp"
#ifdef EE_BACKEND_SDL_ACTIVE
namespace EE { namespace Window { namespace Backend { namespace SDL {
cCursorManagerSDL::cCursorManagerSDL( cWindow * window ) :
@@ -53,3 +55,5 @@ void cCursorManagerSDL::Reload() {
}
}}}}
#endif

View File

@@ -2,6 +2,9 @@
#define EE_WINDOWCCURSORMANAGERSDL_HPP
#include "../../ccursormanager.hpp"
#ifdef EE_BACKEND_SDL_ACTIVE
#include <SDL/SDL.h>
using namespace EE::Window;
@@ -34,3 +37,5 @@ class cCursorManagerSDL : public cCursorManager {
}}}}
#endif
#endif

View File

@@ -1,5 +1,7 @@
#include "ccursorsdl.hpp"
#ifdef EE_BACKEND_SDL_ACTIVE
namespace EE { namespace Window { namespace Backend { namespace SDL {
cCursorSDL::cCursorSDL( cTexture * tex, const eeVector2i& hotspot, const std::string& name, cWindow * window ) :
@@ -21,3 +23,5 @@ void cCursorSDL::Create() {
}
}}}}
#endif

View File

@@ -3,6 +3,8 @@
#include "../../ccursor.hpp"
#ifdef EE_BACKEND_SDL_ACTIVE
using namespace EE::Window;
namespace EE { namespace Window { namespace Backend { namespace SDL {
@@ -23,3 +25,5 @@ class cCursorSDL : public cCursor {
}}}}
#endif
#endif

View File

@@ -1,6 +1,8 @@
#include "ccursoral.hpp"
#include "cwindowal.hpp"
#ifdef EE_BACKEND_ALLEGRO_ACTIVE
namespace EE { namespace Window { namespace Backend { namespace Al {
cCursorAl::cCursorAl( cTexture * tex, const eeVector2i& hotspot, const std::string& name, cWindow * window ) :
@@ -77,3 +79,5 @@ void cCursorAl::Create() {
}
}}}}
#endif

View File

@@ -2,6 +2,9 @@
#define EE_WINDOWCCURSORAL_HPP
#include "../../ccursor.hpp"
#ifdef EE_BACKEND_ALLEGRO_ACTIVE
#include <allegro5/allegro.h>
using namespace EE::Window;
@@ -30,3 +33,5 @@ class cCursorAl : public cCursor {
}}}}
#endif
#endif

View File

@@ -2,6 +2,8 @@
#include "ccursoral.hpp"
#include "cwindowal.hpp"
#ifdef EE_BACKEND_ALLEGRO_ACTIVE
namespace EE { namespace Window { namespace Backend { namespace Al {
cCursorManagerAl::cCursorManagerAl( cWindow * window ) :
@@ -71,3 +73,5 @@ void cCursorManagerAl::Reload() {
}
}}}}
#endif

View File

@@ -3,6 +3,8 @@
#include "../../ccursormanager.hpp"
#ifdef EE_BACKEND_ALLEGRO_ACTIVE
using namespace EE::Window;
namespace EE { namespace Window { namespace Backend { namespace Al {
@@ -33,3 +35,5 @@ class cCursorManagerAl : public cCursorManager {
}}}}
#endif
#endif