]> Shamusworld >> Repos - virtualjaguar/blob - virtualjaguar.pro
Changes to qmake file to link SDL statically on Mac OSX.
[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 LIBS      += -lz -Lobj -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 macx  { DEFINES += __GCCUNIX__ _OSX_ }
30 unix  { DEFINES += __GCCUNIX__ }
31
32 # SDL
33 macx       { LIBS += `sdl-config --static-libs` }
34 win32|unix { LIBS += `sdl-config --libs` }
35
36 #CFLAGS   := -MMD -Wall -Wno-switch -O2 -D$(SYSTYPE) -ffast-math -fomit-frame-pointer `sdl-config --cflags`
37 #CPPFLAGS := -MMD -Wall -Wno-switch -Wno-non-virtual-dtor -O2 -D$(SYSTYPE) -Wno-trigraphs \
38 #               $(HAVECDIO) -ffast-math -fomit-frame-pointer `sdl-config --cflags` -g
39
40 # C/C++ flags...
41 # NOTE: May have to put -Wall back in, but only on non-release cycles. It can
42 #       cause problems if you're not careful.
43 QMAKE_CFLAGS += `sdl-config --cflags` -O2 -ffast-math -fomit-frame-pointer
44 QMAKE_CXXFLAGS += `sdl-config --cflags` -O2 -ffast-math -fomit-frame-pointer
45
46 # Need to add libcdio stuffola (checking/including)...
47
48 INCLUDEPATH += \
49         src \
50         src/gui
51
52 DEPENDPATH = \
53         src \
54         src/gui
55
56 # The GUI
57
58 HEADERS = \
59         src/gui/about.h \
60         src/gui/app.h \
61         src/gui/configdialog.h \
62         src/gui/controllertab.h \
63         src/gui/filelistmodel.h \
64         src/gui/filepicker.h \
65         src/gui/filethread.h \
66         src/gui/generaltab.h \
67         src/gui/glwidget.h \
68         src/gui/imagedelegate.h \
69         src/gui/mainwin.h
70
71 SOURCES = \
72         src/gui/about.cpp \
73         src/gui/app.cpp \
74         src/gui/configdialog.cpp \
75         src/gui/controllertab.cpp \
76         src/gui/filelistmodel.cpp \
77         src/gui/filepicker.cpp \
78         src/gui/filethread.cpp \
79         src/gui/generaltab.cpp \
80         src/gui/glwidget.cpp \
81         src/gui/imagedelegate.cpp \
82         src/gui/mainwin.cpp
83
84 # The core (soon to be made into a library of its own)
85
86 HEADERS += \
87         src/blitter.h       \
88         src/cdintf.h        \
89         src/cdrom.h         \
90         src/crc32.h         \
91         src/dac.h           \
92         src/dsp.h           \
93         src/eeprom.h        \
94         src/event.h         \
95         src/file.h          \
96         src/filedb.h        \
97         src/gpu.h           \
98         src/jagdasm.h       \
99         src/jaguar.h        \
100         src/jerry.h         \
101         src/joystick.h      \
102         src/log.h           \
103         src/memory.h        \
104         src/mmu.h           \
105         src/objectp.h       \
106         src/settings.h      \
107         src/state.h         \
108         src/tom.h           \
109         src/unzip.h         \
110         src/universalhdr.h  \
111         src/wavetable.h
112
113 SOURCES += \
114         src/blitter.cpp       \
115         src/cdintf.cpp        \
116         src/cdrom.cpp         \
117         src/crc32.cpp         \
118         src/dac.cpp           \
119         src/dsp.cpp           \
120         src/eeprom.cpp        \
121         src/event.cpp         \
122         src/file.cpp          \
123         src/filedb.cpp        \
124         src/gpu.cpp           \
125         src/jagdasm.cpp       \
126         src/jaguar.cpp        \
127         src/jerry.cpp         \
128         src/joystick.cpp      \
129         src/log.cpp           \
130         src/memory.cpp        \
131         src/mmu.cpp           \
132         src/objectp.cpp       \
133         src/settings.cpp      \
134         src/state.cpp         \
135         src/tom.cpp           \
136         src/universalhdr.cpp  \
137         src/unzip.c           \
138         src/wavetable.cpp