]> Shamusworld >> Repos - virtualjaguar/blob - virtualjaguar.pro
15fc2073df04eeb372312f878ff905a28e00c3d8
[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 macx  { DEFINES += __GCCUNIX__ _OSX_ }
30 unix  { DEFINES += __GCCUNIX__ }
31
32 # SDL (to link statically on Mac)
33 macx       { LIBS += `sdl-config --static-libs` }
34 win32|unix { 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/app.h \
57         src/gui/configdialog.h \
58         src/gui/controllertab.h \
59         src/gui/filelistmodel.h \
60         src/gui/filepicker.h \
61         src/gui/filethread.h \
62         src/gui/generaltab.h \
63         src/gui/glwidget.h \
64         src/gui/imagedelegate.h \
65         src/gui/mainwin.h
66
67 SOURCES = \
68         src/gui/about.cpp \
69         src/gui/app.cpp \
70         src/gui/configdialog.cpp \
71         src/gui/controllertab.cpp \
72         src/gui/filelistmodel.cpp \
73         src/gui/filepicker.cpp \
74         src/gui/filethread.cpp \
75         src/gui/generaltab.cpp \
76         src/gui/glwidget.cpp \
77         src/gui/imagedelegate.cpp \
78         src/gui/mainwin.cpp
79
80 # The core (soon to be made into a library of its own)
81
82 #HEADERS += \
83 #       src/blitter.h       \
84 #       src/cdintf.h        \
85 #       src/cdrom.h         \
86 #       src/crc32.h         \
87 #       src/dac.h           \
88 #       src/dsp.h           \
89 #       src/eeprom.h        \
90 #       src/event.h         \
91 #       src/file.h          \
92 #       src/filedb.h        \
93 #       src/gpu.h           \
94 #       src/jagdasm.h       \
95 #       src/jaguar.h        \
96 #       src/jerry.h         \
97 #       src/joystick.h      \
98 #       src/log.h           \
99 #       src/memory.h        \
100 #       src/mmu.h           \
101 #       src/objectp.h       \
102 #       src/settings.h      \
103 #       src/state.h         \
104 #       src/tom.h           \
105 #       src/unzip.h         \
106 #       src/universalhdr.h  \
107 #       src/wavetable.h
108
109 #SOURCES += \
110 #       src/blitter.cpp       \
111 #       src/cdintf.cpp        \
112 #       src/cdrom.cpp         \
113 #       src/crc32.cpp         \
114 #       src/dac.cpp           \
115 #       src/dsp.cpp           \
116 #       src/eeprom.cpp        \
117 #       src/event.cpp         \
118 #       src/file.cpp          \
119 #       src/filedb.cpp        \
120 #       src/gpu.cpp           \
121 #       src/jagdasm.cpp       \
122 #       src/jaguar.cpp        \
123 #       src/jerry.cpp         \
124 #       src/joystick.cpp      \
125 #       src/log.cpp           \
126 #       src/memory.cpp        \
127 #       src/mmu.cpp           \
128 #       src/objectp.cpp       \
129 #       src/settings.cpp      \
130 #       src/state.cpp         \
131 #       src/tom.cpp           \
132 #       src/universalhdr.cpp  \
133 #       src/unzip.c           \
134 #       src/wavetable.cpp