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