| 1 | # |
| 2 | # Virtual Jaguar Qt project file |
| 3 | # |
| 4 | # by James Hammons |
| 5 | # Copyright (C) 2011 Underground Software |
| 6 | # |
| 7 | # See the README and GPLv3 files for licensing and warranty information |
| 8 | # |
| 9 | # NOTE: M68000 core is built and linked in as a library, so there should be no |
| 10 | # more problems with using the qmake build system as-is. :-) |
| 11 | # Other than on the Mac, where it stupidly defaults to making XCode |
| 12 | # binaries. >:-( Well, we fixed it in the Makefile, by doing platform |
| 13 | # detection there. :-/ |
| 14 | # |
| 15 | |
| 16 | TARGET = virtualjaguar |
| 17 | CONFIG += qt warn_on release |
| 18 | # debug |
| 19 | RESOURCES += src/gui/virtualjaguar.qrc |
| 20 | LIBS += -Lobj -Lsrc/m68000/obj -ljaguarcore -lz -lm68k -llibelf -llibdwarf -lelf |
| 21 | QT += opengl widgets |
| 22 | |
| 23 | # We stuff all the intermediate crap into obj/ so it won't confuse us mere |
| 24 | # mortals ;-) |
| 25 | OBJECTS_DIR = obj |
| 26 | MOC_DIR = obj |
| 27 | RCC_DIR = obj |
| 28 | UI_DIR = obj |
| 29 | |
| 30 | # Platform specific defines |
| 31 | win32 { DEFINES += __GCCWIN32__ } |
| 32 | else:macx { DEFINES += __GCCUNIX__ __THINK_STUPID__ } |
| 33 | else:unix { DEFINES += __GCCUNIX__ } |
| 34 | |
| 35 | # SDL (to link statically on Mac) |
| 36 | macx { LIBS += `sdl-config --static-libs` } |
| 37 | #else:win32 { LIBS += `$(CROSS)sdl-config --libs` } |
| 38 | #else:win32 { LIBS += `$(CROSS)sdl-config --static-libs` -static-libgcc} |
| 39 | else:win32 { LIBS += `$(CROSS)sdl-config --static-libs` -static -static-libgcc -static-libstdc++ } |
| 40 | else { LIBS += `$(CROSS)sdl-config --libs` } |
| 41 | #else { LIBS += `$(CROSS)sdl-config --static-libs` } |
| 42 | |
| 43 | # Icon on Win32, Mac |
| 44 | #win32 { LIBS += res/vj-ico.o } |
| 45 | #win32 { ICON = res/vj.ico } |
| 46 | #win32 { LIBS += obj/vj.o; $(CROSS)windres -i res/vj.rc -o obj/vj.o --include-dir=./res } |
| 47 | win32 { RC_FILE = res/vj.rc } |
| 48 | macx { ICON = res/vj-icon.icns } |
| 49 | |
| 50 | # C/C++ flags... |
| 51 | # NOTE: May have to put -Wall back in, but only on non-release cycles. It can |
| 52 | # cause problems if you're not careful. (Can do this via command line in |
| 53 | # qmake) |
| 54 | QMAKE_CFLAGS += `$(CROSS)sdl-config --cflags` |
| 55 | QMAKE_CXXFLAGS += `$(CROSS)sdl-config --cflags` |
| 56 | |
| 57 | # Need to add libcdio stuffola (checking/including)... |
| 58 | |
| 59 | # Translations. NB: Nobody has stepped up to do any :-P so these are dummy |
| 60 | # translations |
| 61 | # Removed for now, they interfere with proper running in non-English locales for |
| 62 | # some reason. :-/ |
| 63 | #TRANSLATIONS = \ |
| 64 | # virtualjaguar_fr.ts \ |
| 65 | # virtualjaguar_gr.ts |
| 66 | |
| 67 | INCLUDEPATH += \ |
| 68 | src \ |
| 69 | src/debugger \ |
| 70 | src/gui |
| 71 | |
| 72 | DEPENDPATH = \ |
| 73 | src \ |
| 74 | src/debugger \ |
| 75 | src/gui \ |
| 76 | src/gui/debug \ |
| 77 | src/m68000 |
| 78 | |
| 79 | # The GUI |
| 80 | |
| 81 | HEADERS = \ |
| 82 | src/gui/about.h \ |
| 83 | src/gui/alpinetab.h \ |
| 84 | src/gui/app.h \ |
| 85 | src/gui/configdialog.h \ |
| 86 | src/gui/controllertab.h \ |
| 87 | src/gui/controllerwidget.h \ |
| 88 | src/gui/filelistmodel.h \ |
| 89 | src/gui/filepicker.h \ |
| 90 | src/gui/filethread.h \ |
| 91 | src/gui/gamepad.h \ |
| 92 | src/gui/generaltab.h \ |
| 93 | src/gui/glwidget.h \ |
| 94 | src/gui/help.h \ |
| 95 | src/gui/imagedelegate.h \ |
| 96 | src/gui/keygrabber.h \ |
| 97 | src/gui/mainwin.h \ |
| 98 | src/gui/profile.h \ |
| 99 | src/gui/emustatus.h \ |
| 100 | src/gui/debug/cpubrowser.h \ |
| 101 | src/gui/debug/m68kdasmbrowser.h \ |
| 102 | src/gui/debug/memorybrowser.h \ |
| 103 | src/gui/debug/opbrowser.h \ |
| 104 | src/gui/debug/riscdasmbrowser.h \ |
| 105 | src/gui/debug/stackbrowser.h \ |
| 106 | src/debugger/debuggertab.h \ |
| 107 | src/debugger/DasmWin.h \ |
| 108 | src/debugger/m68kDasmWin.h \ |
| 109 | src/debugger/DBGManager.h \ |
| 110 | src/debugger/DSPDasmWin.h \ |
| 111 | src/debugger/GPUDasmWin.h \ |
| 112 | src/debugger/HWLABELManager.h \ |
| 113 | src/debugger/VideoWin.h \ |
| 114 | src/debugger/ELFManager.h \ |
| 115 | src/debugger/allwatchbrowser.h \ |
| 116 | src/debugger/DWARFManager.h \ |
| 117 | src/debugger/memory1browser.h \ |
| 118 | src/debugger/heapallocatorbrowser.h \ |
| 119 | src/debugger/brkWin.h \ |
| 120 | src/debugger/exceptionvectortablebrowser.h |
| 121 | |
| 122 | SOURCES = \ |
| 123 | src/gui/about.cpp \ |
| 124 | src/gui/alpinetab.cpp \ |
| 125 | src/gui/app.cpp \ |
| 126 | src/gui/configdialog.cpp \ |
| 127 | src/gui/controllertab.cpp \ |
| 128 | src/gui/controllerwidget.cpp \ |
| 129 | src/gui/filelistmodel.cpp \ |
| 130 | src/gui/filepicker.cpp \ |
| 131 | src/gui/filethread.cpp \ |
| 132 | src/gui/gamepad.cpp \ |
| 133 | src/gui/generaltab.cpp \ |
| 134 | src/gui/glwidget.cpp \ |
| 135 | src/gui/help.cpp \ |
| 136 | src/gui/imagedelegate.cpp \ |
| 137 | src/gui/keygrabber.cpp \ |
| 138 | src/gui/mainwin.cpp \ |
| 139 | src/gui/profile.cpp \ |
| 140 | src/gui/emustatus.cpp \ |
| 141 | src/gui/debug/cpubrowser.cpp \ |
| 142 | src/gui/debug/m68kdasmbrowser.cpp \ |
| 143 | src/gui/debug/memorybrowser.cpp \ |
| 144 | src/gui/debug/opbrowser.cpp \ |
| 145 | src/gui/debug/riscdasmbrowser.cpp \ |
| 146 | src/gui/debug/stackbrowser.cpp \ |
| 147 | src/debugger/debuggertab.cpp \ |
| 148 | src/debugger/DasmWin.cpp \ |
| 149 | src/debugger/m68kDasmWin.cpp \ |
| 150 | src/debugger/DBGManager.cpp \ |
| 151 | src/debugger/DSPDasmWin.cpp \ |
| 152 | src/debugger/GPUDasmWin.cpp \ |
| 153 | src/debugger/HWLABELManager.cpp \ |
| 154 | src/debugger/VideoWin.cpp \ |
| 155 | src/debugger/ELFManager.cpp \ |
| 156 | src/debugger/allwatchbrowser.cpp \ |
| 157 | src/debugger/DWARFManager.cpp \ |
| 158 | src/debugger/memory1browser.cpp \ |
| 159 | src/debugger/heapallocatorbrowser.cpp \ |
| 160 | src/debugger/brkWin.cpp \ |
| 161 | src/debugger/exceptionvectortablebrowser.cpp |
| 162 | |