]> Shamusworld >> Repos - virtualjaguar/blob - virtualjaguar.pro
Small fix to allow app.cpp to compile on win32.
[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
12 TARGET     = virtualjaguar
13 CONFIG    += qt warn_on release debug
14 RESOURCES += virtualjaguar.qrc
15 LIBS      += `sdl-config --libs` -lz -Lobj -lmusashi
16 QT        += opengl
17
18 # We stuff all the intermediate crap into obj/ so it won't confuse us mere mortals ;-)
19 OBJECTS_DIR = obj
20 MOC_DIR     = obj
21 RCC_DIR     = obj
22 UI_DIR      = obj
23
24 # Platform specific defines
25 win32 { DEFINES += __GCCWIN32__ }
26 macx  { DEFINES += __GCCUNIX__ _OSX_ }
27 unix  { DEFINES += __GCCUNIX__ }
28
29 #CFLAGS   := -MMD -Wall -Wno-switch -O2 -D$(SYSTYPE) -ffast-math -fomit-frame-pointer `sdl-config --cflags`
30 #CPPFLAGS := -MMD -Wall -Wno-switch -Wno-non-virtual-dtor -O2 -D$(SYSTYPE) -Wno-trigraphs \
31 #               $(HAVECDIO) -ffast-math -fomit-frame-pointer `sdl-config --cflags` -g
32
33 # C/C++ flags...
34 # NOTE: May have to put -Wall back in, but only on non-release cycles. It can
35 #       cause problems if you're not careful.
36 QMAKE_CFLAGS += `sdl-config --cflags` -O2 -ffast-math -fomit-frame-pointer
37 QMAKE_CXXFLAGS += `sdl-config --cflags` -O2 -ffast-math -fomit-frame-pointer
38
39 # Need to add libcdio stuffola (checking/including)...
40
41 INCLUDEPATH += \
42         src \
43         src/gui
44
45 DEPENDPATH = \
46         src \
47         src/gui
48
49 # The GUI
50
51 HEADERS = \
52         src/gui/about.h \
53         src/gui/app.h \
54         src/gui/configdialog.h \
55         src/gui/controllertab.h \
56         src/gui/filelistmodel.h \
57         src/gui/filepicker.h \
58         src/gui/filethread.h \
59         src/gui/generaltab.h \
60         src/gui/glwidget.h \
61         src/gui/imagedelegate.h \
62         src/gui/mainwin.h
63
64 SOURCES = \
65         src/gui/about.cpp \
66         src/gui/app.cpp \
67         src/gui/configdialog.cpp \
68         src/gui/controllertab.cpp \
69         src/gui/filelistmodel.cpp \
70         src/gui/filepicker.cpp \
71         src/gui/filethread.cpp \
72         src/gui/generaltab.cpp \
73         src/gui/glwidget.cpp \
74         src/gui/imagedelegate.cpp \
75         src/gui/mainwin.cpp
76
77 # The core (soon to be made into a library of its own)
78
79 HEADERS += \
80         src/blitter.h       \
81         src/cdintf.h        \
82         src/cdrom.h         \
83         src/crc32.h         \
84         src/dac.h           \
85         src/dsp.h           \
86         src/eeprom.h        \
87         src/event.h         \
88         src/file.h          \
89         src/filedb.h        \
90         src/gpu.h           \
91         src/jagdasm.h       \
92         src/jaguar.h        \
93         src/jerry.h         \
94         src/joystick.h      \
95         src/log.h           \
96         src/memory.h        \
97         src/mmu.h           \
98         src/objectp.h       \
99         src/settings.h      \
100         src/state.h         \
101         src/tom.h           \
102         src/unzip.h         \
103         src/wavetable.h
104
105 SOURCES += \
106         src/blitter.cpp       \
107         src/cdintf.cpp        \
108         src/cdrom.cpp         \
109         src/crc32.cpp         \
110         src/dac.cpp           \
111         src/dsp.cpp           \
112         src/eeprom.cpp        \
113         src/event.cpp         \
114         src/file.cpp          \
115         src/filedb.cpp        \
116         src/gpu.cpp           \
117         src/jagdasm.cpp       \
118         src/jaguar.cpp        \
119         src/jerry.cpp         \
120         src/joystick.cpp      \
121         src/log.cpp           \
122         src/memory.cpp        \
123         src/mmu.cpp           \
124         src/objectp.cpp       \
125         src/settings.cpp      \
126         src/state.cpp         \
127         src/tom.cpp           \
128         src/unzip.c           \
129         src/wavetable.cpp