-
Notifications
You must be signed in to change notification settings - Fork 62
/
laigter.pro
211 lines (182 loc) · 5.4 KB
/
laigter.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
#Laigter: an automatic map generator for lighting effects.
#Copyright (C) 2019 Pablo Ivan Fonovich
#
#This program is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation, either version 3 of the License, or
#(at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with this program. If not, see <https://www.gnu.org/licenses/>.
#Contact: azagaya.games@gmail.com
#-------------------------------------------------
#
# Project created by QtCreator 2019-02-20T15:10:05
#
#-------------------------------------------------
QT += core gui widgets network opengl openglwidgets
TARGET = laigter
TEMPLATE = app
# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
CONFIG += core ui c++11
QMAKE_CXXFLAGS_RELEASE *= -O3
!macx {
QMAKE_CXXFLAGS += -fopenmp
QMAKE_LFLAGS += -fopenmp
LIBS += -lgomp -lpthread
}
SOURCES += \
gui/about_dialog.cpp \
gui/exportwidget.cpp \
gui/frame_splitter.cpp \
gui/language_selector.cpp \
gui/presets_manager.cpp \
gui/remove_plugin_dialog.cpp \
gui/widgets/animation_dock.cpp \
gui/widgets/animationcreator.cpp \
gui/widgets/slider.cpp \
gui/widgets/slider2.cpp \
gui/widgets/sprite_properties_dock.cpp \
gui/widgets/themeselector.cpp \
main.cpp \
main_window.cpp \
src/image_loader.cpp \
src/image_processor.cpp \
src/light_source.cpp \
src/open_gl_widget.cpp \
gui/nb_selector.cpp \
src/project.cpp \
src/sprite.cpp \
src/texture.cpp \
thirdparty/zip.c
HEADERS += \
gui/exportwidget.h \
gui/frame_splitter.h \
gui/widgets/animation_dock.h \
gui/widgets/animationcreator.h \
gui/widgets/slider.h \
gui/about_dialog.h \
gui/language_selector.h \
gui/presets_manager.h \
gui/remove_plugin_dialog.h \
gui/widgets/slider.h \
gui/widgets/slider2.h \
gui/widgets/sprite_properties_dock.h \
gui/widgets/themeselector.h \
main_window.h \
src/brush_interface.h \
src/image_loader.h \
src/image_processor.h \
src/light_source.h \
src/open_gl_widget.h \
gui/nb_selector.h \
src/project.h \
src/sprite.h \
src/texture.h \
thirdparty/CImg.h \
thirdparty/miniz.h \
thirdparty/zip.h
FORMS += \
gui/about_dialog.ui \
gui/exportwidget.ui \
gui/frame_splitter.ui \
gui/language_selector.ui \
gui/presets_manager.ui \
gui/remove_plugin_dialog.ui \
gui/widgets/animation_dock.ui \
gui/widgets/animationcreator.ui \
gui/widgets/sprite_properties_dock.ui \
gui/widgets/themeselector.ui \
main_window.ui \
gui/nb_selector.ui
unix{
isEmpty(PREFIX) {
PREFIX = /usr/local
}
target.path = $$PREFIX/bin
shortcutfiles.files = dist/laigter.desktop
shortcutfiles.path = $$PREFIX/share/applications/
iconfiles.files = dist/laigter.png
iconfiles.path = $$PREFIX/share/icons/hicolor/256x256/apps/
appdatafiles.files = dist/laigter.appdata.xml
appdatafiles.path = $$PREFIX/share/metainfo/
mimetypefiles.files = dist/x-laigter-project.xml
mimetypefiles.path = $$PREFIX/share/mime/packages/
INSTALLS += target
INSTALLS += shortcutfiles
INSTALLS += iconfiles
INSTALLS += appdatafiles
INSTALLS += mimetypefiles
}
DISTFILES += \
ACKNOWLEDGEMENTS \
LICENSE
TRANSLATIONS = translations/laigter_da.ts \
translations/laigter_es.ts \
translations/laigter_en.ts \
translations/laigter_fr.ts \
translations/laigter_pt_BR.ts \
translations/laigter_ca_ES.ts \
translations/laigter_el.ts \
translations/laigter_tr.ts \
translations/laigter_jp.ts \
translations/laigter_de.ts \
translations/laigter_zh_CN.ts
LANGUAGES = da\
en \
es \
fr \
pt_BR \
ca_ES \
el \
tr \
jp \
de \
zh_CN
# parameters: var, prepend, append
defineReplace(prependAll) {
for(a,$$1):result += $$2$${a}$$3
return($$result)
}
TRANSLATIONS = $$prependAll(LANGUAGES, $$PWD/translations/laigter_, .ts)
TRANSLATIONS_FILES =
qtPrepareTool(LRELEASE, lrelease)
win32 {
LRELEASE=$$clean_path(LRELEASE)
LRELEASE=$$replace(LRELEASE, \', )
}
for(tsfile, TRANSLATIONS) {
qmfile = $$tsfile
qmfile ~= s,.ts$,.qm,
qmdir = $$dirname(qmfile)
!exists($$qmdir) {
mkpath($$qmdir)|error("Aborting.")
}
command = $$LRELEASE -removeidentical $$tsfile -qm $$qmfile
win32 {
# command = $$replace(command, /, \\))
}
system($$command)|error("Failed to run: $$command")
TRANSLATIONS_FILES += $$qmfile
}
RESOURCES += \
shaders.qrc \
images.qrc \
styles.qrc \
translations.qrc \
icons.qrc
win32: RC_ICONS = icons\laigter_icon.ico
mac: ICON = icons/laigter_icon.icns