Previous 199869 Revisions Next

r21913 Sunday 17th March, 2013 at 17:57:32 UTC by R. Belmont
SDL: Make the Qt debugger the default for *IX and Win32 builds.
[src/osd/sdl]sdl.mak

trunk/src/osd/sdl/sdl.mak
r21912r21913
7676# (currently defaults disabled due to causing issues with mouse capture, esp. in MESS)
7777NO_USE_XINPUT = 1
7878
79# uncomment to try the experimental new Qt debugger
80#USE_QTDEBUG = 1
79# uncomment to disable the Qt debugger and fall back to a system default
80# NO_USE_QTDEBUG = 1
8181
8282# uncomment to disable MIDI
83#NO_USE_MIDI = 1
83# NO_USE_MIDI = 1
8484
8585###########################################################################
8686##################   END USER-CONFIGURABLE OPTIONS   ######################
r21912r21913
237237NO_X11 = 1
238238NO_USE_XINPUT = 1
239239NO_USE_MIDI = 1
240NO_USE_QTDEBUG = 1
240241LIBS += -lnetwork -lbsd
241242endif
242243
243244ifeq ($(TARGETOS),macosx)
245NO_USE_QTDEBUG = 1
244246BASE_TARGETOS = unix
245247DEFS += -DSDLMAME_UNIX -DSDLMAME_MACOSX -DSDLMAME_DARWIN
246248
r21912r21913
248250LIBS += -framework CoreAudio -framework CoreMIDI
249251endif
250252
251ifndef USE_QTDEBUG
253ifdef NO_USE_QTDEBUG
252254DEBUGOBJS = $(SDLOBJ)/debugosx.o
253255endif
254256
r21912r21913
298300
299301# do we have GTK ?
300302ifndef GTK_INSTALL_ROOT
301ifndef USE_QTDEBUG
303ifdef NO_USE_QTDEBUG
302304NO_DEBUGGER = 1
303305endif
304306else
305ifndef USE_QTDEBUG
307ifdef NO_USE_QTDEBUG
306308DEBUGOBJS = $(SDLOBJ)/debugwin.o $(SDLOBJ)/dview.o $(SDLOBJ)/debug-sup.o $(SDLOBJ)/debug-intf.o
307309LIBS += -lgtk-win32-2.0 -lgdk-win32-2.0 -lgmodule-2.0 -lglib-2.0 -lgobject-2.0 \
308310   -lpango-1.0 -latk-1.0 -lgdk_pixbuf-2.0
r21912r21913
320322LDFLAGS += -municode
321323
322324# Qt
323ifdef USE_QTDEBUG
325ifndef NO_USE_QTDEBUG
324326QT_INSTALL_HEADERS = $(shell qmake -query QT_INSTALL_HEADERS)
325327INCPATH += -I$(QT_INSTALL_HEADERS)/QtCore -I$(QT_INSTALL_HEADERS)/QtGui -I$(QT_INSTALL_HEADERS)
326328LIBS += -L$(shell qmake -query QT_INSTALL_LIBS) -lqtmain -lQtGui4 -lQtCore4 -lcomdlg32 -loleaut32 -limm32 -lwinspool -lmsimg32 -lole32 -luuid -lws2_32 -lshell32 -lkernel32
r21912r21913
328330endif
329331
330332ifeq ($(TARGETOS),macosx)
331ifdef USE_QTDEBUG
333ifndef NO_USE_QTDEBUG
332334MOC = @moc
333335
334336QT_INSTALL_LIBS = $(shell qmake -query QT_INSTALL_LIBS)
r21912r21913
345347NO_X11 = 1
346348NO_USE_XINPUT = 1
347349NO_USE_MIDI = 1
350NO_USE_QTDEBUG = 1
348351# OS/2 can't have OpenGL (aww)
349352NO_OPENGL = 1
350353endif
r21912r21913
487490
488491DEFS += -DSDLMAME_UNIX
489492
490ifdef USE_QTDEBUG
493ifndef NO_USE_QTDEBUG
491494MOCTST = $(shell which moc-qt4 2>/dev/null)
492495ifeq '$(MOCTST)' ''
493496MOCTST = $(shell which moc 2>/dev/null)
r21912r21913
601604   LDFLAGS += -static-libstdc++
602605endif
603606
604ifdef USE_QTDEBUG
607ifndef NO_USE_QTDEBUG
605608MOC = @moc
606609endif
607610
r21912r21913
625628# Debugging
626629#-------------------------------------------------
627630
628ifdef USE_QTDEBUG
631ifndef NO_USE_QTDEBUG
629632$(SDLOBJ)/%.moc.c: $(SDLSRC)/%.h
630633   $(MOC) $(MOCINCPATH) $(DEFS) $< -o $@
631634
r21912r21913
689692LIBS += -lX11 -lXinerama
690693
691694# The newer debugger uses QT
692ifdef USE_QTDEBUG
695ifndef NO_USE_QTDEBUG
693696INCPATH += `pkg-config QtGui --cflags`
694697LIBS += `pkg-config QtGui --libs`
695698else

Previous 199869 Revisions Next


© 1997-2024 The MAME Team