mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-04 20:46:29 +03:00
Disable compilation of inactive backends.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user