]> Shamusworld >> Repos - virtualjaguar/blob - virtualjaguar.pro
QString no longer supports toAscii, use toUtf8 instead
[virtualjaguar] / virtualjaguar.pro
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
21 QT        += opengl
22 QT += widgets
23
24 # We stuff all the intermediate crap into obj/ so it won't confuse us mere
25 # mortals ;-)
26 OBJECTS_DIR = obj
27 MOC_DIR     = obj
28 RCC_DIR     = obj
29 UI_DIR      = obj
30
31 # Platform specific defines
32 win32     { DEFINES += __GCCWIN32__ }
33 else:macx { DEFINES += __GCCUNIX__ __THINK_STUPID__ }
34 else:unix { DEFINES += __GCCUNIX__ }
35
36 # SDL (to link statically on Mac)
37 macx { LIBS += `sdl-config --static-libs` }
38 else { LIBS += `$(CROSS)sdl-config --libs` }
39
40 # Icon on Win32, Mac
41 #win32 { LIBS += res/vj-ico.o }
42 #win32 { ICON = res/vj.ico }
43 #win32 { LIBS += res/vj.o; $(CROSS)windres -i res/vj.rc -o vj.o --include-dir=./res }
44 win32 { RC_FILE = res/vj.rc }
45 macx  { ICON = res/vj-icon.icns }
46
47 # C/C++ flags...
48 # NOTE: May have to put -Wall back in, but only on non-release cycles. It can
49 #       cause problems if you're not careful. (Can do this via command line in
50 #       qmake)
51 QMAKE_CFLAGS += `$(CROSS)sdl-config --cflags`
52 QMAKE_CXXFLAGS += `$(CROSS)sdl-config --cflags`
53
54 # Need to add libcdio stuffola (checking/including)...
55
56 # Translations. NB: Nobody has stepped up to do any :-P so these are dummy
57 # translations
58 # Removed for now, they interfere with proper running in non-English locales for
59 # some reason. :-/
60 #TRANSLATIONS = \
61 #       virtualjaguar_fr.ts \
62 #       virtualjaguar_gr.ts
63
64 INCLUDEPATH += \
65         src \
66         src/gui
67
68 DEPENDPATH = \
69         src \
70         src/gui \
71         src/gui/debug \
72         src/m68000
73
74 # The GUI
75
76 HEADERS = \
77         src/gui/about.h \
78         src/gui/alpinetab.h \
79         src/gui/app.h \
80         src/gui/configdialog.h \
81         src/gui/controllertab.h \
82         src/gui/controllerwidget.h \
83         src/gui/filelistmodel.h \
84         src/gui/filepicker.h \
85         src/gui/filethread.h \
86         src/gui/gamepad.h \
87         src/gui/generaltab.h \
88         src/gui/glwidget.h \
89         src/gui/help.h \
90         src/gui/imagedelegate.h \
91         src/gui/keygrabber.h \
92         src/gui/mainwin.h \
93         src/gui/profile.h \
94         src/gui/debug/cpubrowser.h \
95         src/gui/debug/m68kdasmbrowser.h \
96         src/gui/debug/memorybrowser.h \
97         src/gui/debug/opbrowser.h \
98         src/gui/debug/riscdasmbrowser.h
99
100 SOURCES = \
101         src/gui/about.cpp \
102         src/gui/alpinetab.cpp \
103         src/gui/app.cpp \
104         src/gui/configdialog.cpp \
105         src/gui/controllertab.cpp \
106         src/gui/controllerwidget.cpp \
107         src/gui/filelistmodel.cpp \
108         src/gui/filepicker.cpp \
109         src/gui/filethread.cpp \
110         src/gui/gamepad.cpp \
111         src/gui/generaltab.cpp \
112         src/gui/glwidget.cpp \
113         src/gui/help.cpp \
114         src/gui/imagedelegate.cpp \
115         src/gui/keygrabber.cpp \
116         src/gui/mainwin.cpp \
117         src/gui/profile.cpp \
118         src/gui/debug/cpubrowser.cpp \
119         src/gui/debug/m68kdasmbrowser.cpp \
120         src/gui/debug/memorybrowser.cpp \
121         src/gui/debug/opbrowser.cpp \
122         src/gui/debug/riscdasmbrowser.cpp
123