1# Note: this project file currently only implements building on Windows with Mingw-w64
2# See the INSTALL file for building instructions
3
4TEMPLATE = app
5CONFIG += console
6CONFIG -= app_bundle
7CONFIG -= qt
8DEFINES -= UNICODE
9
10CONFIG += c++11
11CONFIG += object_parallel_to_source
12
13gcc {
14    QMAKE_CXXFLAGS_WARN_ON = -Wall -Wno-unused-variable -Wno-sign-compare -Wno-unused-parameter -Wno-reorder
15    QMAKE_CXXFLAGS_DEBUG += -DASSERTS_ENABLED
16}
17
18mingw {
19    QMAKE_CXXFLAGS += -Dmain=SDL_main
20    QMAKE_LFLAGS   += -mconsole
21
22    INCLUDEPATH += C:\msys64\mingw64\include\SDL2
23    INCLUDEPATH += C:\msys64\mingw64\include\freetype2
24
25    LIBS += -lmingw32 -lSDL2main -lSDL2.dll
26    LIBS += -lSDL2_image.dll -lfreetype.dll -lpcre.dll -lpng.dll -lglew32.dll -lboost_system-mt -lboost_filesystem-mt -lopengl32 -lglu32
27    LIBS += -static-libgcc -static-libstdc++
28    LIBS += -lcomdlg32
29}
30
31VPATH += ./src
32
33SOURCES += \
34    action.cpp \
35    bloom.cpp \
36    caption.cpp \
37    dirnode.cpp \
38    file.cpp \
39    gource.cpp \
40    gource_settings.cpp \
41    gource_shell.cpp \
42    key.cpp \
43    logmill.cpp \
44    main.cpp \
45    pawn.cpp \
46    slider.cpp \
47    spline.cpp \
48    textbox.cpp \
49    user.cpp \
50    zoomcamera.cpp \
51    formats/apache.cpp \
52    formats/bzr.cpp \
53    formats/commitlog.cpp \
54    formats/custom.cpp \
55    formats/cvs-exp.cpp \
56    formats/cvs2cl.cpp \
57    formats/git.cpp \
58    formats/gitraw.cpp \
59    formats/hg.cpp \
60    formats/svn.cpp \
61    tinyxml/tinystr.cpp \
62    tinyxml/tinyxml.cpp \
63    tinyxml/tinyxmlerror.cpp \
64    tinyxml/tinyxmlparser.cpp \
65    core/conffile.cpp \
66    core/display.cpp \
67    core/frustum.cpp \
68    core/fxfont.cpp \
69    core/logger.cpp \
70    core/mousecursor.cpp \
71    core/plane.cpp \
72    core/png_writer.cpp \
73    core/ppm.cpp \
74    core/quadtree.cpp \
75    core/regex.cpp \
76    core/resource.cpp \
77    core/sdlapp.cpp \
78    core/seeklog.cpp \
79    core/settings.cpp \
80    core/shader.cpp \
81    core/shader_common.cpp \
82    core/stringhash.cpp \
83    core/texture.cpp \
84    core/tga.cpp \
85    core/timer.cpp \
86    core/timezone.cpp \
87    core/vbo.cpp \
88    core/vectors.cpp
89
90HEADERS += \
91    action.h \
92    bloom.h \
93    caption.h \
94    dirnode.h \
95    file.h \
96    gource.h \
97    gource_settings.h \
98    gource_shell.h \
99    key.h \
100    logmill.h \
101    main.h \
102    pawn.h \
103    slider.h \
104    spline.h \
105    textbox.h \
106    user.h \
107    zoomcamera.h \
108    formats/apache.h \
109    formats/bzr.h \
110    formats/commitlog.h \
111    formats/custom.h \
112    formats/cvs-exp.h \
113    formats/cvs2cl.h \
114    formats/git.h \
115    formats/gitraw.h \
116    formats/hg.h \
117    formats/svn.h \
118    tinyxml/tinystr.h \
119    tinyxml/tinyxml.h \
120    core/bounds.h \
121    core/conffile.h \
122    core/display.h \
123    core/frustum.h \
124    core/fxfont.h \
125    core/gl.h \
126    core/logger.h \
127    core/mousecursor.h \
128    core/pi.h \
129    core/plane.h \
130    core/png_writer.h \
131    core/ppm.h \
132    core/quadtree.h \
133    core/regex.h \
134    core/resource.h \
135    core/sdlapp.h \
136    core/seeklog.h \
137    core/settings.h \
138    core/shader.h \
139    core/shader_common.h \
140    core/stringhash.h \
141    core/texture.h \
142    core/tga.h \
143    core/timer.h \
144    core/timezone.h \
145    core/vbo.h \
146    core/vectors.h
147