Only build the qt plugin on linux

develop
Petr Mrázek 2011-07-16 15:34:29 +02:00
parent 70dbc3cef9
commit 3f42479e77
2 changed files with 5 additions and 2 deletions

@ -96,7 +96,9 @@ ENDMACRO(DFHACK_PLUGIN)
#endmacro()
#RECURSE_DIRS()
add_subdirectory (qtplug)
IF(UNIX)
add_subdirectory (qtplug)
ENDIF()
DFHACK_PLUGIN(reveal reveal.cpp)
OPTION(BUILD_KITTENS "Build the kittens plugin." OFF)

@ -20,6 +20,7 @@ using namespace DFHack;
static int runnable(void *);
static SDL::Mutex * instance_mutex = 0;
static bool running = false;
static SDL::Thread * QTThread;
DFhackCExport command_result runqt (Core * c, vector <string> & parameters);
@ -47,7 +48,7 @@ DFhackCExport command_result runqt (Core * c, vector <string> & parameters)
if(!running)
{
running = true;
SDL::Thread * IO = SDL_CreateThread(runnable, 0);
QTThread = SDL_CreateThread(runnable, 0);
}
else
{