X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=virtualjaguar.pro;h=5248692529f00ec2e7c256771b6830045d321088;hb=dc2b5ea2786687316224f5c29a4b7bdebddc71b5;hp=9530f018ab7f159d7237ef977062988a95a61105;hpb=f548beede257a2252a2639e3fe03c7cda99433ed;p=virtualjaguar diff --git a/virtualjaguar.pro b/virtualjaguar.pro index 9530f01..5248692 100644 --- a/virtualjaguar.pro +++ b/virtualjaguar.pro @@ -1,129 +1,120 @@ # # Virtual Jaguar Qt project file # -# by James L. Hammons +# by James Hammons # Copyright (C) 2011 Underground Software # # See the README and GPLv3 files for licensing and warranty information # -# NOTE: Musashi is built and linked in as a library, so there should be no more -# problems with using the qmake build system as-is. :-) +# NOTE: M68000 core is built and linked in as a library, so there should be no +# more problems with using the qmake build system as-is. :-) +# Other than on the Mac, where it stupidly defaults to making XCode +# binaries. >:-( Well, we fixed it in the Makefile, by doing platform +# detection there. :-/ +# TARGET = virtualjaguar -CONFIG += qt warn_on release debug +CONFIG += qt warn_on release +# debug RESOURCES += virtualjaguar.qrc -LIBS += `sdl-config --libs` -lz -Lobj -lmusashi +LIBS += -Lobj -Lsrc/m68000/obj -ljaguarcore -lz -lm68k QT += opengl -# We stuff all the intermediate crap into obj/ so it won't confuse us mere mortals ;-) +# We stuff all the intermediate crap into obj/ so it won't confuse us mere +# mortals ;-) OBJECTS_DIR = obj MOC_DIR = obj RCC_DIR = obj UI_DIR = obj # Platform specific defines -win32 { DEFINES += __GCCWIN32__ } -macx { DEFINES += __GCCUNIX__ _OSX_ } -unix { DEFINES += __GCCUNIX__ } +win32 { DEFINES += __GCCWIN32__ } +else:macx { DEFINES += __GCCUNIX__ __THINK_STUPID__ } +else:unix { DEFINES += __GCCUNIX__ } + +# SDL (to link statically on Mac) +macx { LIBS += `sdl-config --static-libs` } +else { LIBS += `$(CROSS)sdl-config --libs` } -#CFLAGS := -MMD -Wall -Wno-switch -O2 -D$(SYSTYPE) -ffast-math -fomit-frame-pointer `sdl-config --cflags` -#CPPFLAGS := -MMD -Wall -Wno-switch -Wno-non-virtual-dtor -O2 -D$(SYSTYPE) -Wno-trigraphs \ -# $(HAVECDIO) -ffast-math -fomit-frame-pointer `sdl-config --cflags` -g +# Icon on Win32, Mac +#win32 { LIBS += res/vj-ico.o } +#win32 { ICON = res/vj.ico } +#win32 { LIBS += res/vj.o; $(CROSS)windres -i res/vj.rc -o vj.o --include-dir=./res } +win32 { RC_FILE = res/vj.rc } +macx { ICON = res/vj-icon.icns } # C/C++ flags... # NOTE: May have to put -Wall back in, but only on non-release cycles. It can -# cause problems if you're not careful. -QMAKE_CFLAGS += `sdl-config --cflags` -O2 -ffast-math -fomit-frame-pointer -QMAKE_CXXFLAGS += `sdl-config --cflags` -O2 -ffast-math -fomit-frame-pointer +# cause problems if you're not careful. (Can do this via command line in +# qmake) +QMAKE_CFLAGS += `$(CROSS)sdl-config --cflags` +QMAKE_CXXFLAGS += `$(CROSS)sdl-config --cflags` # Need to add libcdio stuffola (checking/including)... +# Translations. NB: Nobody has stepped up to do any :-P so these are dummy +# translations +TRANSLATIONS = \ + virtualjaguar_fr.ts \ + virtualjaguar_gr.ts + INCLUDEPATH += \ src \ src/gui DEPENDPATH = \ src \ - src/gui + src/gui \ + src/gui/debug \ + src/m68000 # The GUI HEADERS = \ src/gui/about.h \ + src/gui/alpinetab.h \ src/gui/app.h \ src/gui/configdialog.h \ src/gui/controllertab.h \ + src/gui/controllerwidget.h \ src/gui/filelistmodel.h \ src/gui/filepicker.h \ src/gui/filethread.h \ + src/gui/gamepad.h \ src/gui/generaltab.h \ src/gui/glwidget.h \ + src/gui/help.h \ src/gui/imagedelegate.h \ - src/gui/mainwin.h + src/gui/keygrabber.h \ + src/gui/mainwin.h \ + src/gui/profile.h \ + src/gui/debug/cpubrowser.h \ + src/gui/debug/m68kdasmbrowser.h \ + src/gui/debug/memorybrowser.h \ + src/gui/debug/opbrowser.h \ + src/gui/debug/riscdasmbrowser.h SOURCES = \ src/gui/about.cpp \ + src/gui/alpinetab.cpp \ src/gui/app.cpp \ src/gui/configdialog.cpp \ src/gui/controllertab.cpp \ + src/gui/controllerwidget.cpp \ src/gui/filelistmodel.cpp \ src/gui/filepicker.cpp \ src/gui/filethread.cpp \ + src/gui/gamepad.cpp \ src/gui/generaltab.cpp \ src/gui/glwidget.cpp \ + src/gui/help.cpp \ src/gui/imagedelegate.cpp \ - src/gui/mainwin.cpp - -# The core (soon to be made into a library of its own) - -HEADERS += \ - src/blitter.h \ - src/cdintf.h \ - src/cdrom.h \ - src/crc32.h \ - src/dac.h \ - src/dsp.h \ - src/eeprom.h \ - src/event.h \ - src/file.h \ - src/filedb.h \ - src/gpu.h \ - src/jagdasm.h \ - src/jaguar.h \ - src/jerry.h \ - src/joystick.h \ - src/log.h \ - src/memory.h \ - src/mmu.h \ - src/objectp.h \ - src/settings.h \ - src/state.h \ - src/tom.h \ - src/unzip.h \ - src/wavetable.h + src/gui/keygrabber.cpp \ + src/gui/mainwin.cpp \ + src/gui/profile.cpp \ + src/gui/debug/cpubrowser.cpp \ + src/gui/debug/m68kdasmbrowser.cpp \ + src/gui/debug/memorybrowser.cpp \ + src/gui/debug/opbrowser.cpp \ + src/gui/debug/riscdasmbrowser.cpp -SOURCES += \ - src/blitter.cpp \ - src/cdintf.cpp \ - src/cdrom.cpp \ - src/crc32.cpp \ - src/dac.cpp \ - src/dsp.cpp \ - src/eeprom.cpp \ - src/event.cpp \ - src/file.cpp \ - src/filedb.cpp \ - src/gpu.cpp \ - src/jagdasm.cpp \ - src/jaguar.cpp \ - src/jerry.cpp \ - src/joystick.cpp \ - src/log.cpp \ - src/memory.cpp \ - src/mmu.cpp \ - src/objectp.cpp \ - src/settings.cpp \ - src/state.cpp \ - src/tom.cpp \ - src/unzip.c \ - src/wavetable.cpp