]> Shamusworld >> Repos - virtualjaguar/blob - virtualjaguar.pro
Prep for next revision, fix for non-English locales.
[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 += virtualjaguar.qrc
20 LIBS      += -Lobj -Lsrc/m68000/obj -ljaguarcore -lz -lm68k
21 QT        += opengl
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 { LIBS += `$(CROSS)sdl-config --libs` }
38
39 # Icon on Win32, Mac
40 #win32 { LIBS += res/vj-ico.o }
41 #win32 { ICON = res/vj.ico }
42 #win32 { LIBS += res/vj.o; $(CROSS)windres -i res/vj.rc -o vj.o --include-dir=./res }
43 win32 { RC_FILE = res/vj.rc }
44 macx  { ICON = res/vj-icon.icns }
45
46 # C/C++ flags...
47 # NOTE: May have to put -Wall back in, but only on non-release cycles. It can
48 #       cause problems if you're not careful. (Can do this via command line in
49 #       qmake)
50 QMAKE_CFLAGS += `$(CROSS)sdl-config --cflags`
51 QMAKE_CXXFLAGS += `$(CROSS)sdl-config --cflags`
52
53 # Need to add libcdio stuffola (checking/including)...
54
55 # Translations. NB: Nobody has stepped up to do any :-P so these are dummy
56 # translations
57 # Removed for now, they interfere with proper running in non-English locales for
58 # some reason. :-/
59 #TRANSLATIONS = \
60 #       virtualjaguar_fr.ts \
61 #       virtualjaguar_gr.ts
62
63 INCLUDEPATH += \
64         src \
65         src/gui
66
67 DEPENDPATH = \
68         src \
69         src/gui \
70         src/gui/debug \
71         src/m68000
72
73 # The GUI
74
75 HEADERS = \
76         src/gui/about.h \
77         src/gui/alpinetab.h \
78         src/gui/app.h \
79         src/gui/configdialog.h \
80         src/gui/controllertab.h \
81         src/gui/controllerwidget.h \
82         src/gui/filelistmodel.h \
83         src/gui/filepicker.h \
84         src/gui/filethread.h \
85         src/gui/gamepad.h \
86         src/gui/generaltab.h \
87         src/gui/glwidget.h \
88         src/gui/help.h \
89         src/gui/imagedelegate.h \
90         src/gui/keygrabber.h \
91         src/gui/mainwin.h \
92         src/gui/profile.h \
93         src/gui/debug/cpubrowser.h \
94         src/gui/debug/m68kdasmbrowser.h \
95         src/gui/debug/memorybrowser.h \
96         src/gui/debug/opbrowser.h \
97         src/gui/debug/riscdasmbrowser.h
98
99 SOURCES = \
100         src/gui/about.cpp \
101         src/gui/alpinetab.cpp \
102         src/gui/app.cpp \
103         src/gui/configdialog.cpp \
104         src/gui/controllertab.cpp \
105         src/gui/controllerwidget.cpp \
106         src/gui/filelistmodel.cpp \
107         src/gui/filepicker.cpp \
108         src/gui/filethread.cpp \
109         src/gui/gamepad.cpp \
110         src/gui/generaltab.cpp \
111         src/gui/glwidget.cpp \
112         src/gui/help.cpp \
113         src/gui/imagedelegate.cpp \
114         src/gui/keygrabber.cpp \
115         src/gui/mainwin.cpp \
116         src/gui/profile.cpp \
117         src/gui/debug/cpubrowser.cpp \
118         src/gui/debug/m68kdasmbrowser.cpp \
119         src/gui/debug/memorybrowser.cpp \
120         src/gui/debug/opbrowser.cpp \
121         src/gui/debug/riscdasmbrowser.cpp
122