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