Subversion Repositories public iLand

Rev

Rev 1221 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
707 werner 1
# -------------------------------------------------
1212 werner 2
# iLand project file (GUI version). See iland.boku.ac.at
707 werner 3
# -------------------------------------------------
4
QT += xml
793 werner 5
QT += qml
707 werner 6
QT += sql
780 werner 7
QT += widgets
879 werner 8
# quick: for QML based user interface
9
QT += quick
963 werner 10
QT += concurrent
780 werner 11
 
707 werner 12
TARGET = iland
13
TEMPLATE = app
14
CONFIG += precompile_header
15
 
963 werner 16
#LIBS += -lQt5Concurrent
780 werner 17
 
707 werner 18
# includepath: adds directories to the standard include (no directory needed when #include a file).
19
INCLUDEPATH += ../core \
20
    ../tools \
780 werner 21
    ../output \
907 werner 22
    ../abe \
915 werner 23
    ../abe/output \
780 werner 24
    ../iland
707 werner 25
 
26
DEPENDPATH += plugins
761 werner 27
CONFIG += exceptions
28
CONFIG += rtti
29
 
707 werner 30
CONFIG(debug, debug|release) {
781 werner 31
win32-msvc*:{
780 werner 32
#debug msvc
810 werner 33
PRE_TARGETDEPS += ../plugins/iland_fired.lib
34
PRE_TARGETDEPS += ../plugins/iland_windd.lib
959 werner 35
PRE_TARGETDEPS += ../plugins/iland_barkbeetled.lib
36
LIBS += -L../plugins -liland_fired -liland_windd -liland_barkbeetled
707 werner 37
}
1035 werner 38
win32:*gcc*: {
39
# debug GCC, windows
1032 werner 40
PRE_TARGETDEPS += ../plugins/libiland_fired.a
41
PRE_TARGETDEPS += ../plugins/libiland_windd.a
42
PRE_TARGETDEPS += ../plugins/libiland_barkbeetled.a
43
LIBS += -L../plugins -liland_fired -liland_windd -liland_barkbeetled
780 werner 44
}
1035 werner 45
linux-g++: {
46
 ## debug on linux
1169 werner 47
message("linux g++ debug ")
1035 werner 48
PRE_TARGETDEPS += ../plugins/libiland_fire.a
49
PRE_TARGETDEPS += ../plugins/libiland_wind.a
50
PRE_TARGETDEPS += ../plugins/libiland_barkbeetle.a
51
LIBS += -L../plugins -liland_fire -liland_wind -liland_barkbeetle
1032 werner 52
}
1035 werner 53
}
707 werner 54
 
781 werner 55
## win32-msvc*:contains(QMAKE_TARGET.arch, x86_64):{ ... } nur 64bit
780 werner 56
 
707 werner 57
CONFIG(release, debug|release) {
1035 werner 58
# release gcc, windows
59
win32:*gcc*: {
1032 werner 60
PRE_TARGETDEPS += ../plugins/libiland_fire.a
61
PRE_TARGETDEPS += ../plugins/libiland_wind.a
62
PRE_TARGETDEPS += ../plugins/libiland_barkbeetle.a
63
LIBS += -L../plugins -liland_fire -liland_wind -liland_barkbeetle
64
}
1035 werner 65
linux-g++: {
66
 ## release on linux
67
message("linux g++ release")
68
PRE_TARGETDEPS += ../plugins/libiland_fire.a
69
PRE_TARGETDEPS += ../plugins/libiland_wind.a
70
PRE_TARGETDEPS += ../plugins/libiland_barkbeetle.a
71
LIBS += -L../plugins -liland_fire -liland_wind -liland_barkbeetle
1053 werner 72
# include debug information
73
#QMAKE_CFLAGS_RELEASE += -g
74
#QMAKE_CXXFLAGS_RELEASE += -g
75
QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
76
QMAKE_LFLAGS_RELEASE = $$QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO
77
message($$QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO)
1035 werner 78
}
79
 
781 werner 80
win32-msvc*:{
1032 werner 81
#release msvc
780 werner 82
PRE_TARGETDEPS += ../plugins/iland_fire.lib
83
PRE_TARGETDEPS += ../plugins/iland_wind.lib
959 werner 84
PRE_TARGETDEPS += ../plugins/iland_barkbeetle.lib
85
LIBS += -L../plugins -liland_fire -liland_wind -liland_barkbeetle
707 werner 86
}
780 werner 87
}
707 werner 88
 
89
DEFINES += ILAND_GUI
824 werner 90
# enable/disble DBGMODE messages
1204 werner 91
DEFINES += NO_DEBUG_MSGS
707 werner 92
 
93
# to enable debug symbols in release code
94
# debug information in release-mode executable
773 werner 95
#QMAKE_CXXFLAGS_RELEASE += -g
96
#QMAKE_LFLAGS_RELEASE -= -Wl,-s
707 werner 97
 
1047 werner 98
## MSVC: debug symbols in release-mode
1049 werner 99
#QMAKE_CXXFLAGS_RELEASE += -Zi
1001 werner 100
#QMAKE_LFLAGS_RELEASE += /DEBUG /OPT:REF /OPT:ICF
101
 
707 werner 102
### Flag to allow 3GB on Win 32
780 werner 103
### you also need to modify boot.ini ... not necessary for 64bit
104
#QMAKE_LFLAGS_WINDOWS += -Wl,--large-address-aware
707 werner 105
 
106
# Use Precompiled headers (PCH)
107
PRECOMPILED_HEADER = stable.h
108
SOURCES += main.cpp \
109
    mainwindow.cpp \
110
    paintarea.cpp \
111
    ../core/grid.cpp \
112
    ../core/tree.cpp \
113
    ../tools/expression.cpp \
114
    ../tools/helper.cpp \
115
    ../core/stamp.cpp \
116
    ../core/stampcontainer.cpp \
117
    ../core/species.cpp \
118
    ../tools/ticktack.cpp \
119
    ../tools/settingmetadata.cpp \
120
    ../tools/globalsettings.cpp \
121
    ../core/speciesset.cpp \
122
    ../core/model.cpp \
123
    ../core/resourceunit.cpp \
124
    ../tools/xmlhelper.cpp \
125
    ../core/modelcontroller.cpp \
126
    ../core/standloader.cpp \
127
    ../core/resourceunitspecies.cpp \
128
    ../core/production3pg.cpp \
129
    ../core/threadrunner.cpp \
130
    ../tools/expressionwrapper.cpp \
131
    tests.cpp \
132
    ../output/output.cpp \
133
    ../output/treeout.cpp \
134
    ../output/outputmanager.cpp \
135
    ../output/standout.cpp \
136
    ../core/standstatistics.cpp \
137
    ../output/dynamicstandout.cpp \
138
    ../core/management.cpp \
139
    ../core/speciesresponse.cpp \
140
    ../core/climate.cpp \
141
    ../core/modelsettings.cpp \
142
    ../core/phenology.cpp \
143
    ../tools/floatingaverage.cpp \
144
    ../output/productionout.cpp \
145
    ../core/watercycle.cpp \
146
    ../tools/climateconverter.cpp \
147
    ../tools/csvfile.cpp \
148
    ../tools/scriptglobal.cpp \
149
    ../output/standdeadout.cpp \
150
    ../core/environment.cpp \
151
    ../output/managementout.cpp \
152
    ../tools/sqlhelper.cpp \
153
    ../tools/random.cpp \
154
    aboutdialog.cpp \
1182 werner 155
    ../core/version.cpp \
707 werner 156
    ../core/timeevents.cpp \
157
    ../core/seeddispersal.cpp \
158
    ../core/establishment.cpp \
159
    ../core/soil.cpp \
160
    ../core/snag.cpp \
161
    ../output/saplingout.cpp \
162
    ../tools/gisgrid.cpp \
163
    ../tools/mapgrid.cpp \
164
    ../output/carbonout.cpp \
165
    ../output/carbonflowout.cpp \
166
    ../tools/modules.cpp \
167
    ../tools/dem.cpp \
168
    ../3rdparty/SimpleRNG.cpp \
169
    ../output/snapshot.cpp \
766 werner 170
    ../tools/randomgenerator.cpp \
807 werner 171
    ../tools/spatialanalysis.cpp \
907 werner 172
    ../abe/activity.cpp \
173
    ../abe/forestmanagementengine.cpp \
808 werner 174
    ../tools/statdata.cpp \
175
    ../tools/debugtimer.cpp \
810 werner 176
    ../tools/viewport.cpp \
907 werner 177
    ../abe/fomewrapper.cpp \
178
    ../abe/fmstand.cpp \
179
    ../abe/agent.cpp \
180
    ../abe/fmunit.cpp \
181
    ../abe/agenttype.cpp \
182
    ../abe/fomescript.cpp \
860 werner 183
    ../output/landscapeout.cpp \
907 werner 184
    ../abe/fmstp.cpp \
185
    ../abe/thinning.cpp \
186
    ../abe/actgeneral.cpp \
909 werner 187
    ../abe/abegrid.cpp \
907 werner 188
    ../abe/scheduler.cpp \
884 werner 189
    ../tools/colors.cpp \
907 werner 190
    ../abe/fmtreelist.cpp \
191
    ../abe/actscheduled.cpp \
192
    ../abe/actplanting.cpp \
915 werner 193
    ../abe/actsalvage.cpp \
922 werner 194
    ../abe/output/unitout.cpp \
923 werner 195
    ../abe/output/abestandout.cpp \
932 werner 196
    ../abe/output/abestandremovalout.cpp \
1062 werner 197
    ../abe/actthinning.cpp \
1081 werner 198
    ../core/grasscover.cpp \
1111 werner 199
    ../tools/scriptgrid.cpp \
1157 werner 200
    ../core/saplings.cpp \
201
    ../output/waterout.cpp
202
 
707 werner 203
HEADERS += mainwindow.h \
204
    stable.h \
205
    paintarea.h \
1182 werner 206
    ../core/version.h \
707 werner 207
    ../core/grid.h \
208
    ../core/tree.h \
209
    ../tools/expression.h \
210
    ../tools/helper.h \
211
    ../core/exception.h \
212
    ../core/global.h \
213
    ../core/stamp.h \
214
    ../core/stampcontainer.h \
215
    ../core/species.h \
216
    ../tools/ticktack.h \
217
    ../tools/settingmetadata.h \
218
    ../tools/globalsettings.h \
219
    ../core/speciesset.h \
220
    ../core/model.h \
221
    ../core/resourceunit.h \
222
    ../tools/xmlhelper.h \
223
    ../core/modelcontroller.h \
224
    ../core/standloader.h \
225
    ../core/resourceunitspecies.h \
226
    ../core/production3pg.h \
227
    ../core/threadrunner.h \
228
    ../tools/expressionwrapper.h \
229
    tests.h \
230
    ../output/output.h \
231
    ../output/treeout.h \
232
    ../output/outputmanager.h \
233
    ../output/standout.h \
234
    ../core/standstatistics.h \
235
    ../output/dynamicstandout.h \
236
    ../core/management.h \
237
    ../core/speciesresponse.h \
238
    ../core/climate.h \
239
    ../core/modelsettings.h \
240
    ../core/phenology.h \
241
    ../tools/floatingaverage.h \
242
    ../output/productionout.h \
243
    ../core/watercycle.h \
244
    ../tools/climateconverter.h \
245
    ../tools/csvfile.h \
246
    ../tools/scriptglobal.h \
247
    ../output/standdeadout.h \
248
    ../core/environment.h \
249
    ../output/managementout.h \
250
    ../tools/sqlhelper.h \
251
    ../tools/random.h \
252
    ../3rdparty/MersenneTwister.h \
253
    aboutdialog.h \
254
    ../core/timeevents.h \
255
    ../core/seeddispersal.h \
256
    ../core/establishment.h \
257
    ../core/soil.h \
258
    ../core/snag.h \
259
    ../output/saplingout.h \
260
    ../tools/gisgrid.h \
261
    ../tools/mapgrid.h \
262
    ../output/carbonout.h \
263
    ../output/carbonflowout.h \
264
    ../core/plugin_interface.h \
265
    ../tools/modules.h \
266
    ../tools/dem.h \
267
    ../core/layeredgrid.h \
268
    ../3rdparty/SimpleRNG.h \
269
    ../output/snapshot.h \
766 werner 270
    ../tools/randomgenerator.h \
807 werner 271
    ../tools/spatialanalysis.h \
907 werner 272
    ../abe/activity.h \
273
    ../abe/forestmanagementengine.h \
908 werner 274
    ../abe/abe_global.h \
808 werner 275
    ../tools/statdata.h \
276
    ../tools/debugtimer.h \
810 werner 277
    ../tools/viewport.h \
907 werner 278
    ../abe/fomewrapper.h \
279
    ../abe/fmstand.h \
280
    ../abe/agent.h \
281
    ../abe/fmunit.h \
282
    ../abe/agenttype.h \
283
    ../abe/fomescript.h \
860 werner 284
    ../output/landscapeout.h \
907 werner 285
    ../abe/fmstp.h \
286
    ../abe/thinning.h \
287
    ../abe/actgeneral.h \
909 werner 288
    ../abe/abegrid.h \
907 werner 289
    ../abe/scheduler.h \
884 werner 290
    ../tools/colors.h \
907 werner 291
    ../abe/fmtreelist.h \
292
    ../abe/actscheduled.h \
293
    ../abe/actplanting.h \
915 werner 294
    ../abe/actsalvage.h \
922 werner 295
    ../abe/output/unitout.h \
923 werner 296
    ../abe/output/abestandout.h \
932 werner 297
    ../abe/output/abestandremovalout.h \
1062 werner 298
    ../abe/actthinning.h \
1081 werner 299
    ../core/grasscover.h \
1111 werner 300
    ../tools/scriptgrid.h \
1157 werner 301
    ../core/saplings.h \
302
    ../output/waterout.h
707 werner 303
FORMS += mainwindow.ui \
304
    aboutdialog.ui
880 werner 305
RESOURCES += ./res/iland.qrc \
306
    qml_res.qrc
707 werner 307
 
308
# QMAKE_EXTRA_TARGETS += revtarget
309
# PRE_TARGETDEPS += version.h
310
# revtarget.target = version.h
311
# SVNREV = $$system(svnversion .)
312
# revtarget.commands = @echo \
313
# "const char *version = \"Alpha 1.1.0\";" \
314
# "const char *svn_revision = \"$$SVNREV\";" \
315
# >  $$revtarget.target
316
# revtarget.depends = $$SOURCES \
317
# $$HEADERS \
318
# $$FORMS
879 werner 319
OTHER_FILES += maindoc.cpp \
884 werner 320
    qml/ruler.qml \
890 werner 321
    ../apidoc/abe/abe_doc.js \
322
    ../apidoc/abe/treelist_doc.js \
897 werner 323
    ../apidoc/iLand/globals_doc.js \
324
    ../apidoc/abe/abe_context_doc.js
707 werner 325
 
1190 werner 326
DISTFILES += \
1191 werner 327
    ../apidoc/iLand/grid_doc.js \
328
    ../apidoc/iLand/map_doc.js \
1194 werner 329
    ../apidoc/iLand/factory_doc.js \
330
    ../apidoc/iLand/spatialAnalysis_doc.js \
1195 werner 331
    ../apidoc/iLand/management_doc.js \
1198 werner 332
    ../apidoc/iLand/iLand_doc.js \
333
    ../apidoc/ABE/abe_stand.js
707 werner 334
 
335
 
336
 
337
 
338
 
1190 werner 339