fixed sdl/SConscript to only compile gui.cpp when using GTK in SConstruct
This commit is contained in:
parent
78770114f9
commit
992166852c
|
@ -12,18 +12,19 @@ source_list = Split(
|
|||
input.cpp
|
||||
config.cpp
|
||||
sdl.cpp
|
||||
gui.cpp
|
||||
sdl-joystick.cpp
|
||||
sdl-sound.cpp
|
||||
sdl-throttle.cpp
|
||||
sdl-video.cpp
|
||||
unix-netplay.cpp
|
||||
game.cpp
|
||||
""")
|
||||
|
||||
Import('env')
|
||||
if 'GL' in env['LIBS']:
|
||||
source_list.append('sdl-opengl.cpp')
|
||||
|
||||
if env['GTK'] or env['GTK3']:
|
||||
source_list.append('gui.cpp')
|
||||
|
||||
source_list = ['drivers/sdl/' + source for source in source_list]
|
||||
Return('source_list')
|
||||
|
|
|
@ -21,7 +21,10 @@
|
|||
#define FCEUX_GUI_H
|
||||
|
||||
#define GTK
|
||||
|
||||
#ifdef _GTK
|
||||
#include <gtk/gtk.h>
|
||||
#endif
|
||||
extern GtkWidget* MainWindow;
|
||||
extern GtkWidget* evbox;
|
||||
extern GtkRadioAction* stateSlot;
|
||||
|
|
Loading…
Reference in New Issue