forked from bitsed/qosmic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qosmic.pro
309 lines (274 loc) · 8.33 KB
/
qosmic.pro
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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
################################################################################
#################### qmake project file for qosmic application #################
################################################################################
## Installation prefix on *nix/osx. Binaries are installed in $$PREFIX/bin
PREFIX = /usr
################################################################################
## The shared resources directory
SHARED = $$PREFIX/share
################################################################################
## Icons are installed in $$SHARED/pixmaps
ICONSDIR = $$SHARED/pixmaps
################################################################################
## Qosmic Lua scripts are installed in $$SHARED/scripts
SCRIPTSDIR = $$SHARED/qosmic/scripts
################################################################################
## Install the qosmic.desktop file here.
DESKDIR = $$SHARED/applications
################################################################################
## Uncomment to install the qosmic.desktop file, application icons, and scripts.
CONFIG += install_icons install_desktop install_scripts
################################################################################
## Add linked libs and paths for headers and palettes here using pkg-config.
## If your system doesn't support pkg-config then comment out the next line and
## set these values below.
#CONFIG += link_pkgconfig
link_pkgconfig {
message("Config using pkg-config version "$$system(pkg-config --version))
PKGCONFIG = flam3 lua
}
else {
message("Config not using pkg-config")
## Adjust these variables to set paths and libs without using pkg-config.
## Point to the flam3-3.1.1 source directory
FLAM3_SRC_DIR = $$system(readlink -e ../flam3-3.1.1)
INCLUDEPATH += $$FLAM3_SRC_DIR /usr/include/libxml2
LIBS += -L$$FLAM3_SRC_DIR/.libs
LIBS += -L/usr/lib/libxml2 -lflam3 -lm -ljpeg -lxml2 -llua
}
################################################################################
## Build style flags. Adding debug enables more verbose logging.
CONFIG += release warn_off
#CONFIG += debug warn_on
################################################################################
## Set cflags here if needed.
#CONFIG(release, debug|release) {
# QMAKE_CFLAGS="-march=native -O2 -pipe -Wl,-t"
# QMAKE_CXXFLAGS=$$QMAKE_CFLAGS
#}
################################################################################
## qosmic app version
VERSION = 1.6.0
################################################################################
## Check for correct package versions
system(test $$QT_MAJOR_VERSION -lt 5 -o $$QT_MINOR_VERSION -lt 5) {
error("Using Qt $$[QT_VERSION]. " \
"Qosmic $$VERSION requires at least version 5.5 of Qt to build.")
}
link_pkgconfig {
! system(pkg-config --atleast-version 3.1.1 flam3) {
error("Qosmic $$VERSION requires at least version 3.1.1 of flam3 to build.")
}
}
################################################################################
DEFINES += VERSION='\'"$$VERSION"\''
DEFINES += SCRIPTSDIR='\'"$$SCRIPTSDIR"\''
CONFIG += qt thread
QT += widgets
RESOURCES = qosmic.qrc
INCLUDEPATH += src
## packagers may define ROOT for install sandboxes
#ROOT = /tmp
## add the qosmic program to the install set
qosmic.files = qosmic
qosmic.path = $$clean_path($$ROOT/$$PREFIX/bin)
INSTALLS = qosmic
## add icons to the install set
install_icons {
icons.files = icons/qosmicicon.xpm
icons.path = $$clean_path($$ROOT/$$ICONSDIR)
INSTALLS += icons
}
## add the qosmic.desktop file to the install set
install_desktop {
desktop.files = qosmic.desktop
desktop.path = $$clean_path($$ROOT/$$DESKDIR)
INSTALLS += desktop
}
## add the scripts to the install set
install_scripts {
scripts.files = scripts/*
scripts.path = $$clean_path($$ROOT/$$SCRIPTSDIR)
INSTALLS += scripts
}
message(Generating Makefile for Qosmic $$VERSION)
message(Qt version : $$[QT_VERSION])
! link_pkgconfig {
message(Include header paths : $$INCLUDEPATH)
message(Include libraries : $$LIBS)
}
CONFIG(debug, debug|release) {
## enable more verbose logging
message(Building debug version)
DEFINES += LOGGING
}
FORMS += \
ui/mainwindow.ui \
ui/mainviewer.ui \
ui/paletteeditor.ui \
ui/camerasettingswidget.ui \
ui/colorsettingswidget.ui \
ui/imgsettingswidget.ui \
ui/mainpreviewwidget.ui \
ui/trianglecoordswidget.ui \
ui/triangledensitywidget.ui \
ui/variationswidget.ui \
ui/mutationwidget.ui \
ui/colorbalancewidget.ui \
ui/directoryviewwidget.ui \
ui/statuswidget.ui \
ui/scripteditwidget.ui \
ui/colordialog.ui \
ui/selectgenomewidget.ui \
ui/genomevectorlistmodelitemeditor.ui \
ui/selectgenomeconfigdialog.ui \
ui/mutationconfigdialog.ui \
ui/viewerpresetswidget.ui \
ui/selecttrianglewidget.ui \
ui/renderdialog.ui \
ui/renderprogressdialog.ui \
ui/adjustscenewidget.ui \
ui/editmodeselectorwidget.ui \
ui/chaoswidget.ui \
ui/sheeploopwidget.ui \
ui/scripteditconfigdialog.ui
HEADERS += \
src/qosmic.h \
src/flam3util.h \
src/mainwindow.h \
src/xfedit.h \
src/basistriangle.h \
src/triangle.h \
src/nodeitem.h \
src/mainviewer.h \
src/renderthread.h \
src/colorselector.h \
src/genomecolorselector.h \
src/paletteeditor.h \
src/mutationwidget.h \
src/colorlabel.h \
src/doublevalueeditor.h \
src/intvalueeditor.h \
src/camerasettingswidget.h \
src/colorsettingswidget.h \
src/imgsettingswidget.h \
src/mainpreviewwidget.h \
src/trianglecoordswidget.h \
src/variationswidget.h \
src/logger.h \
src/colorbalancewidget.h \
src/gradientlistmodel.h \
src/varstablewidget.h \
src/directoryviewwidget.h \
src/flamfileiconprovider.h \
src/directorylistview.h \
src/snapslider.h \
src/statuswidget.h \
src/scripteditwidget.h \
src/wheelvalueeditor.h \
src/genomevector.h \
src/lua/lunar.h \
src/lua/frame.h \
src/lua/xform.h \
src/lua/genome.h \
src/lua/luathread.h \
src/colordialog.h \
src/selectgenomewidget.h \
src/viewerpresetsmodel.h \
src/viewerpresetswidget.h \
src/coordinatemark.h \
src/lua/luathreadadapter.h \
src/lua/highlighter.h \
src/lua/luaeditor.h \
src/lua/luatype.h \
src/selecttrianglewidget.h \
src/triangledensitywidget.h \
src/undoring.h \
src/triangleselection.h \
src/posttriangle.h \
src/qosmicwidget.h \
src/renderdialog.h \
src/renderprogressdialog.h \
src/adjustscenewidget.h \
src/gradientstopseditor.h \
src/editmodeselectorwidget.h \
src/genomevectorlistview.h \
src/chaoswidget.h \
src/transformablegraphicsitem.h \
src/transformablegraphicsguide.h \
src/sheeploopwidget.h \
src/flam3filestream.h \
src/checkersbrush.h
SOURCES += \
src/qosmic.cpp \
src/mainwindow.cpp \
src/xfedit.cpp \
src/basistriangle.cpp \
src/triangle.cpp \
src/nodeitem.cpp \
src/flam3util.cpp \
src/mainviewer.cpp \
src/renderthread.cpp \
src/colorselector.cpp \
src/genomecolorselector.cpp \
src/paletteeditor.cpp \
src/logger.cpp \
src/mutationwidget.cpp \
src/colorlabel.cpp \
src/doublevalueeditor.cpp \
src/intvalueeditor.cpp \
src/camerasettingswidget.cpp \
src/colorsettingswidget.cpp \
src/imgsettingswidget.cpp \
src/mainpreviewwidget.cpp \
src/trianglecoordswidget.cpp \
src/variationswidget.cpp \
src/colorbalancewidget.cpp \
src/gradientlistmodel.cpp \
src/varstablewidget.cpp \
src/directoryviewwidget.cpp \
src/flamfileiconprovider.cpp \
src/directorylistview.cpp \
src/snapslider.cpp \
src/statuswidget.cpp \
src/scripteditwidget.cpp \
src/wheelvalueeditor.cpp \
src/lua/frame.cpp \
src/lua/genome.cpp \
src/lua/xform.cpp \
src/lua/luathread.cpp \
src/colordialog.cpp \
src/selectgenomewidget.cpp \
src/genomevector.cpp \
src/viewerpresetsmodel.cpp \
src/viewerpresetswidget.cpp \
src/coordinatemark.cpp \
src/lua/luathreadadapter.cpp \
src/lua/highlighter.cpp \
src/lua/luaeditor.cpp \
src/lua/luatype.cpp \
src/selecttrianglewidget.cpp \
src/triangledensitywidget.cpp \
src/undoring.cpp \
src/triangleselection.cpp \
src/posttriangle.cpp \
src/qosmicwidget.cpp \
src/renderdialog.cpp \
src/renderprogressdialog.cpp \
src/adjustscenewidget.cpp \
src/gradientstopseditor.cpp \
src/editmodeselectorwidget.cpp \
src/genomevectorlistview.cpp \
src/chaoswidget.cpp \
src/transformablegraphicsitem.cpp \
src/transformablegraphicsguide.cpp \
src/sheeploopwidget.cpp \
src/flam3filestream.cpp \
src/checkersbrush.cpp
TRANSLATIONS = ts/qosmic_fr.ts \
ts/qosmic_cs.ts \
ts/qosmic_ru.ts
MOC_DIR = .moc
OBJECTS_DIR = .obj
RCC_DIR = .res
UI_DIR = .ui