]> Shamusworld >> Repos - virtualjaguar/blob - virtualjaguar.pro
Virtual Jaguar 2.0.0 release.
[virtualjaguar] / virtualjaguar.pro
1 #
2 # Virtual Jaguar Qt project file
3 #
4 # by James L. Hammons
5 # Copyright (C) 2011 Underground Software
6 #
7 # See the README and GPLv3 files for licensing and warranty information
8 #
9 # NOTE: Musashi is built and linked in as a library, so there should be no more
10 #       problems with using the qmake build system as-is. :-)
11 #       Other than on the Mac, where it stupidly defaults to making XCode binaries. >:-(
12 #       Well, we fixed it in the Makefile, by doing platfrom detection there. :-/
13 #
14
15 TARGET     = virtualjaguar
16 CONFIG    += qt warn_on release debug
17 RESOURCES += virtualjaguar.qrc
18 LIBS      += -lz -Lobj -ljaguarcore -lmusashi
19 QT        += opengl
20
21 # We stuff all the intermediate crap into obj/ so it won't confuse us mere mortals ;-)
22 OBJECTS_DIR = obj
23 MOC_DIR     = obj
24 RCC_DIR     = obj
25 UI_DIR      = obj
26
27 # Platform specific defines
28 win32     { DEFINES += __GCCWIN32__ }
29 else:macx { DEFINES += __GCCUNIX__ __THINK_STUPID__ }
30 else:unix { DEFINES += __GCCUNIX__ }
31
32 # SDL (to link statically on Mac)
33 macx { LIBS += `sdl-config --static-libs` }
34 else { LIBS += `sdl-config --libs` }
35
36 # C/C++ flags...
37 # NOTE: May have to put -Wall back in, but only on non-release cycles. It can
38 #       cause problems if you're not careful. (Can do this via command line in qmake)
39 QMAKE_CFLAGS += `sdl-config --cflags` -O2 -ffast-math -fomit-frame-pointer
40 QMAKE_CXXFLAGS += `sdl-config --cflags` -O2 -ffast-math -fomit-frame-pointer
41
42 # Need to add libcdio stuffola (checking/including)...
43
44 INCLUDEPATH += \
45         src \
46         src/gui
47
48 DEPENDPATH = \
49         src \
50         src/gui
51
52 # The GUI
53
54 HEADERS = \
55         src/gui/about.h \
56         src/gui/alpinetab.h \
57         src/gui/app.h \
58         src/gui/configdialog.h \
59         src/gui/controllertab.h \
60         src/gui/controllerwidget.h \
61         src/gui/filelistmodel.h \
62         src/gui/filepicker.h \
63         src/gui/filethread.h \
64         src/gui/generaltab.h \
65         src/gui/glwidget.h \
66         src/gui/help.h \
67         src/gui/imagedelegate.h \
68         src/gui/keygrabber.h \
69         src/gui/mainwin.h
70
71 SOURCES = \
72         src/gui/about.cpp \
73         src/gui/alpinetab.cpp \
74         src/gui/app.cpp \
75         src/gui/configdialog.cpp \
76         src/gui/controllertab.cpp \
77         src/gui/controllerwidget.cpp \
78         src/gui/filelistmodel.cpp \
79         src/gui/filepicker.cpp \
80         src/gui/filethread.cpp \
81         src/gui/generaltab.cpp \
82         src/gui/glwidget.cpp \
83         src/gui/help.cpp \
84         src/gui/imagedelegate.cpp \
85         src/gui/keygrabber.cpp \
86         src/gui/mainwin.cpp