-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTileShadow.pro
More file actions
217 lines (202 loc) · 5.38 KB
/
TileShadow.pro
File metadata and controls
217 lines (202 loc) · 5.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
#-------------------------------------------------
#
# Project created by QtCreator 2014-01-13T00:07:55
#
#-------------------------------------------------
mac {
cache()
}
QT += core gui widgets opengl
unix:!mac {
packagesExist(x11 xi):qtHaveModule(x11extras) {
QT += x11extras
CONFIG += link_pkgconfig
# Link to X directly for the event filter hack
PKGCONFIG += x11 xi
DEFINES += USE_NATIVE_EVENT_FILTER
} else {
warning("Missing dependancies for tablet event handler, will use Qt TabletEvent instead")
}
}
TARGET = TileShadow
TEMPLATE = app
!win32-msvc* {
QMAKE_CFLAGS += -std=gnu99
QMAKE_CXXFLAGS_WARN_ON += -Wno-missing-braces -Wno-missing-field-initializers -Wno-unused-parameter
QMAKE_CFLAGS_WARN_ON += -Wno-missing-field-initializers -Wno-unused-parameter
CONFIG += warn_on
}
else {
# "-wdXXXX" means Warning Disable, "-w1XXXX" means enable for level >= W1
# 4100 = Unused parameter
# 4267 = Truncation of size_t
# 4244, 4305 = Truncation of double to float
# 4701, 4703 = Use of uninitialized variable
QMAKE_CXXFLAGS_WARN_ON = -W3 -wd4100 -wd4267 -wd4305 -w14701 -w14703
QMAKE_CFLAGS_WARN_ON = -W3 -wd4244 -wd4305 -w14701 -w14703
CONFIG += warn_on
}
QMAKE_CXXFLAGS += -O2
QMAKE_CFLAGS += -O2
CONFIG += c++11
DEFINES += CL_USE_DEPRECATED_OPENCL_1_1_APIS
DEFINES += CL_USE_DEPRECATED_OPENCL_1_2_APIS
DEFINES += CL_USE_DEPRECATED_OPENCL_2_0_APIS
DEFINES += CL_USE_DEPRECATED_OPENCL_2_1_APIS
DEFINES += CL_USE_DEPRECATED_OPENCL_2_2_APIS
# Disable lodepng's file operations, which have deprecation warnings on Win32
DEFINES += LODEPNG_NO_COMPILE_DISK
# zlib configuration
unix: DEFINES += Z_HAVE_UNISTD_H
DEFINES += Z_HAVE_STDARG_H
SOURCES += main.cpp\
mainwindow.cpp \
systeminfodialog.cpp \
canvaswidget.cpp \
canvasindex.cpp \
canvaswidget-opencl.cpp \
opencldeviceinfo.cpp \
glhelper.cpp \
mypaintstrokecontext.cpp \
canvascontext.cpp \
benchmarkdialog.cpp \
boxcartimer.cpp \
canvastile.cpp \
canvaslayer.cpp \
canvasstack.cpp \
tileset.cpp \
ora.cpp \
hsvcolordial.cpp \
canvasundoevent.cpp \
basetool.cpp \
mypainttool.cpp \
tiledebugtool.cpp \
roundbrushtool.cpp \
toollistwidget.cpp \
toolfactory.cpp \
layerlistwidget.cpp \
layerlistview.cpp \
toolsettingswidget.cpp \
imagefiles.cpp \
toolsettinginfo.cpp \
canvasrender.cpp \
canvaseventthread.cpp \
paintutils.cpp \
deviceselectdialog.cpp \
maskbuffer.cpp \
batchprocessor.cpp \
gradienttool.cpp \
nativeeventfilter.cpp \
toollistview.cpp \
toolextendedsettingswindow.cpp \
patternfilltool.cpp \
canvasstrokepoint.cpp \
gbrfile.cpp \
filedialog.cpp \
userpathsdialog.cpp \
pathlistwidget.cpp \
imagepreviewwidget.cpp \
sidebarpopup.cpp \
dragscrollarea.cpp \
paletteview.cpp \
palettepopup.cpp \
colorpalette.cpp
HEADERS += mainwindow.h \
systeminfodialog.h \
canvaswidget.h \
canvasindex.h \
canvaswidget-opencl.h \
opencldeviceinfo.h \
glhelper.h \
mypaintstrokecontext.h \
canvascontext.h \
benchmarkdialog.h \
boxcartimer.h \
canvastile.h \
canvaslayer.h \
canvasstack.h \
tileset.h \
ora.h \
hsvcolordial.h \
canvasundoevent.h \
basetool.h \
mypainttool.h \
tiledebugtool.h \
roundbrushtool.h \
toollistwidget.h \
toolfactory.h \
layerlistwidget.h \
layerlistview.h \
toolsettingswidget.h \
blendmodes.h \
imagefiles.h \
strokecontext.h \
toolsettinginfo.h \
canvasrender.h \
canvaseventthread.h \
paintutils.h \
deviceselectdialog.h \
maskbuffer.h \
batchprocessor.h \
gradienttool.h \
nativeeventfilter.h \
toollistview.h \
toolextendedsettingswindow.h \
layertype.h \
patternfilltool.h \
canvasstrokepoint.h \
gbrfile.h \
filedialog.h \
userpathsdialog.h \
pathlistwidget.h \
layershuffletype.h \
imagepreviewwidget.h \
sidebarpopup.h \
dragscrollarea.h \
paletteview.h \
palettepopup.h \
colorpalette.h
FORMS += mainwindow.ui \
systeminfodialog.ui \
benchmarkdialog.ui \
layerlistwidget.ui \
userpathsdialog.ui \
toolextendedsettingswindow.ui
mac {
HEADERS += machelpers.h
OBJECTIVE_SOURCES = machelpers.mm
}
win32 {
win32-msvc* {
INCLUDEPATH += "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\include"
LIBS += "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\lib\x64\OpenCL.lib"
LIBS += "OpenGL32.lib"
} else {
INCLUDEPATH += "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\include"
LIBS += -L"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\lib\Win32" -lOpenCL
LIBS += -lopengl32
}
RC_FILE = tileshadow.rc
} mac {
QMAKE_CXXFLAGS += -framework OpenCL -Qunused-arguments
LIBS += -framework OpenCL -framework AppKit
ICON = TileShadow.icns
QMAKE_INFO_PLIST = Info.plist
} unix:!mac {
LIBS += -lOpenCL
}
OTHER_FILES += \
CanvasShader.frag \
CanvasShader.vert \
BaseKernels.cl \
MyPaintKernels.cl \
PaintKernels.cl \
CursorCircle.frag \
CursorCircle.vert \
ColorDot.frag
RESOURCES += \
Resources.qrc
include(brushlib/brushlib.pri)
include(lodepng/lodepng.pri)
include(zlib/zlib.pri)
include(qzip/qzip.pri)