forked from niftools/nifskope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NifSkope.pro
261 lines (238 loc) · 5.91 KB
/
NifSkope.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
TEMPLATE = app
LANGUAGE = C++
TARGET = NifSkope
QT += xml opengl network
CONFIG += qt debug_and_release debug_and_release_target thread warn_on
CONFIG += fsengine
unix:!macx {
LIBS += -lGLU
}
macx{
LIBS += -framework CoreFoundation
}
# uncomment this if you want all the messages to be logged to stdout
#CONFIG += console
# uncomment this if you want the text stats gl option
#DEFINES += USE_GL_QPAINTER
DESTDIR = .
# NIFSKOPE_VERSION macro
DEFINES += NIFSKOPE_VERSION=\\\"$$cat(VERSION)\\\"
# build NIFSKOPE_REVISION macro
GIT_HEAD = $$cat(.git/HEAD)
# at this point GIT_HEAD either contains commit hash, or symbolic ref:
# GIT_HEAD = 303c05416ecceb3368997c86676a6e63e968bc9b
# GIT_HEAD = ref: refs/head/feature/blabla
contains(GIT_HEAD, "ref:") {
# resolve symbolic ref
GIT_HEAD = .git/$$member(GIT_HEAD, 1)
# GIT_HEAD now points to the file containing hash,
# e.g. .git/refs/head/feature/blabla
exists($$GIT_HEAD) {
GIT_HEAD = $$cat($$GIT_HEAD)
} else {
clear(GIT_HEAD)
}
}
count(GIT_HEAD, 1) {
# single component, hopefully the commit hash
# fetch first seven characters (abbreviated hash)
GIT_HEAD ~= s/^(.......).*/\\1/
DEFINES += NIFSKOPE_REVISION=\\\"$$GIT_HEAD\\\"
}
HEADERS += \
basemodel.h \
config.h \
gl/dds/BlockDXT.h \
gl/dds/Color.h \
gl/dds/ColorBlock.h \
gl/dds/Common.h \
gl/dds/dds_api.h \
gl/dds/DirectDrawSurface.h \
gl/dds/Image.h \
gl/dds/PixelFormat.h \
gl/dds/Stream.h \
gl/glcontrolable.h \
gl/glcontroller.h \
gl/GLee.h \
gl/glmarker.h \
gl/glmesh.h \
gl/glnode.h \
gl/glparticles.h \
gl/glproperty.h \
gl/glscene.h \
gl/gltex.h \
gl/gltexloaders.h \
gl/gltools.h \
gl/marker/constraints.h \
gl/marker/furniture.h \
gl/renderer.h \
glview.h \
hacking.h \
importex/3ds.h \
kfmmodel.h \
message.h \
nifexpr.h \
nifitem.h \
nifmodel.h \
nifproxy.h \
nifskope.h \
niftypes.h \
nifvalue.h \
NvTriStrip/NvTriStrip.h \
NvTriStrip/NvTriStripObjects.h \
NvTriStrip/qtwrapper.h \
NvTriStrip/VertexCache.h \
options.h \
qhull/src/libqhull/geom.h \
qhull/src/libqhull/io.h \
qhull/src/libqhull/libqhull.h \
qhull/src/libqhull/mem.h \
qhull/src/libqhull/merge.h \
qhull/src/libqhull/poly.h \
qhull/src/libqhull/qhull_a.h \
qhull/src/libqhull/qset.h \
qhull/src/libqhull/random.h \
qhull/src/libqhull/stat.h \
qhull/src/libqhull/user.h \
qhull.h \
spellbook.h \
spells/blocks.h \
spells/mesh.h \
spells/misc.h \
spells/skeleton.h \
spells/stringpalette.h \
spells/tangentspace.h \
spells/texture.h \
spells/transform.h \
widgets/colorwheel.h \
widgets/copyfnam.h \
widgets/fileselect.h \
widgets/floatedit.h \
widgets/floatslider.h \
widgets/groupbox.h \
widgets/inspect.h \
widgets/nifcheckboxlist.h \
widgets/nifeditors.h \
widgets/nifview.h \
widgets/refrbrowser.h \
widgets/uvedit.h \
widgets/valueedit.h \
widgets/xmlcheck.h \
ui/about_dialog.h
SOURCES += \
basemodel.cpp \
gl/dds/BlockDXT.cpp \
gl/dds/ColorBlock.cpp \
gl/dds/dds_api.cpp \
gl/dds/DirectDrawSurface.cpp \
gl/dds/Image.cpp \
gl/dds/Stream.cpp \
gl/glcontroller.cpp \
gl/GLee.cpp \
gl/glmarker.cpp \
gl/glmesh.cpp \
gl/glnode.cpp \
gl/glparticles.cpp \
gl/glproperty.cpp \
gl/glscene.cpp \
gl/gltex.cpp \
gl/gltexloaders.cpp \
gl/gltools.cpp \
gl/renderer.cpp \
glview.cpp \
importex/3ds.cpp \
importex/importex.cpp \
importex/obj.cpp \
importex/col.cpp \
kfmmodel.cpp \
kfmxml.cpp \
message.cpp \
nifdelegate.cpp \
nifexpr.cpp \
nifmodel.cpp \
nifproxy.cpp \
nifskope.cpp \
niftypes.cpp \
nifvalue.cpp \
nifxml.cpp \
NvTriStrip/NvTriStrip.cpp \
NvTriStrip/NvTriStripObjects.cpp \
NvTriStrip/qtwrapper.cpp \
NvTriStrip/VertexCache.cpp \
options.cpp \
qhull.cpp \
spellbook.cpp \
spells/animation.cpp \
spells/blocks.cpp \
spells/bounds.cpp \
spells/color.cpp \
spells/flags.cpp \
spells/fo3only.cpp \
spells/havok.cpp \
spells/headerstring.cpp \
spells/light.cpp \
spells/material.cpp \
spells/mesh.cpp \
spells/misc.cpp \
spells/moppcode.cpp \
spells/morphctrl.cpp \
spells/normals.cpp \
spells/optimize.cpp \
spells/sanitize.cpp \
spells/skeleton.cpp \
spells/stringpalette.cpp \
spells/strippify.cpp \
spells/tangentspace.cpp \
spells/texture.cpp \
spells/transform.cpp \
widgets/colorwheel.cpp \
widgets/copyfnam.cpp \
widgets/fileselect.cpp \
widgets/floatedit.cpp \
widgets/floatslider.cpp \
widgets/groupbox.cpp \
widgets/inspect.cpp \
widgets/nifcheckboxlist.cpp \
widgets/nifeditors.cpp \
widgets/nifview.cpp \
widgets/refrbrowser.cpp \
widgets/uvedit.cpp \
widgets/valueedit.cpp \
widgets/xmlcheck.cpp \
ui/about_dialog.cpp
RESOURCES += \
nifskope.qrc
FORMS += \
ui/about_dialog.ui
fsengine {
DEFINES += FSENGINE
HEADERS += \
fsengine/bsa.h \
fsengine/fsengine.h \
fsengine/fsmanager.h
SOURCES += \
fsengine/bsa.cpp \
fsengine/fsengine.cpp \
fsengine/fsmanager.cpp
}
win32 {
# useful for MSVC2005
CONFIG += embed_manifest_exe
CONFIG -= flat
RC_FILE = icon.rc
DEFINES += EDIT_ON_ACTIVATE
# Ignore specific errors that are very common in the code
# CFLAGS += /Zc:wchar_t-
# QMAKE_CFLAGS += /Zc:wchar_t- /wd4305
# QMAKE_CXXFLAGS += /Zc:forScope- /Zc:wchar_t- /wd4305
# add specific libraries to msvc builds
MSVCPROJ_LIBS += winmm.lib Ws2_32.lib imm32.lib
}
win32:console {
LIBS += -lqtmain
}
console {
DEFINES += NO_MESSAGEHANDLER
}
TRANSLATIONS += lang/NifSkope_de.ts lang/NifSkope_fr.ts
# vim: set filetype=config :