-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathOpenSRA.pro
235 lines (203 loc) · 7.42 KB
/
OpenSRA.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
QT += core gui charts concurrent network sql 3dcore 3drender 3dextras charts xml
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets opengl
TARGET = OpenSRA
TEMPLATE = app
VERSION=1.0.0
DEFINES += APP_VERSION=\\\"$$VERSION\\\" OpenSRA
# C++17 support
CONFIG += c++17
# CONFIG += no_batch
# Full optimization on release
QMAKE_CXXFLAGS_RELEASE += -O3
# Check for the required Qt version
equals(QT_MAJOR_VERSION, 5) {
lessThan(QT_MINOR_VERSION, 15) {
error("$$TARGET requires Qt 5.15.0")
}
equals(QT_MINOR_VERSION, 15) : lessThan(QT_PATCH_VERSION, 0) {
error("$$TARGET requires Qt 5.15.0")
}
}
mac {
#Deployment target should be lower than SDK to make plugins useable in an older OS
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.14
QMAKE_CXXFLAGS += -mmacosx-version-min=10.14
}
#Application Icons
win32 {
RC_ICONS = icons/openSRA-icon.ico
} else {
mac {
ICON = icons/openSRA-icon.icns
}
}
# GIS plugin
DEFINES += Q_GIS
PATH_TO_QGIS_PLUGIN=../../R2DTool/qgisplugin
include($$PATH_TO_QGIS_PLUGIN/QGIS.pri)
# Specify the path to R2D and common
PATH_TO_R2D=../../R2DTool/R2DTool
PATH_TO_COMMON=../../SimCenterCommon
PATH_TO_BACKEND=../../OpenSRA
#PATH_TO_BACKEND=../OpenSRA_dev
# To avoid code copying, include the common SimCenter code
include(OpenSRACommon.pri)
include($$PATH_TO_COMMON/Common/Common.pri)
SOURCES += main.cpp \
JsonWidgets/JsonDefinedWidget.cpp \
JsonWidgets/JsonGroupBoxWidget.cpp \
JsonWidgets/JsonComboBox.cpp \
JsonWidgets/JsonLineEdit.cpp \
JsonWidgets/JsonLabel.cpp \
JsonWidgets/JsonCheckBox.cpp \
JsonWidgets/JsonWidget.cpp \
JsonWidgets/JsonStackedWidget.cpp \
JsonWidgets/SimCenterJsonWidget.cpp \
ModelViewItems/ComboBoxDelegate.cpp \
ModelViewItems/ButtonDelegate.cpp \
ModelViewItems/RV.cpp \
UIWidgets/AddToRunListWidget.cpp \
UIWidgets/ClickableLabel.cpp \
UIWidgets/EDPLandslideWidget.cpp \
UIWidgets/MonteCarloSamplingWidget.cpp \
UIWidgets/FixedResidualsSamplingWidget.cpp \
UIWidgets/OpenSHAWidget.cpp \
UIWidgets/OpenSRAComponentSelection.cpp \
UIWidgets/OpenSRAPostProcessor.cpp \
UIWidgets/OpenSRAPreProcessor.cpp \
ResultsWidget.cpp \
UIWidgets/UncertaintyQuantificationWidget.cpp \
UIWidgets/WidgetFactory.cpp \
Utils/EventFilter.cpp \
WorkflowAppOpenSRA.cpp \
WorkflowAppWidget.cpp \
MainWindowWorkflowApp.cpp \
LocalApplication.cpp \
OpenSRAPreferences.cpp \
UIWidgets/DecisionVariableWidget.cpp \
UIWidgets/SourceCharacterizationWidget.cpp \
UIWidgets/CustomVisualizationWidget.cpp \
UIWidgets/PipelineNetworkWidget.cpp \
UIWidgets/EngDemandParamWidget.cpp \
UIWidgets/EngineeringDemandParameterWidget.cpp \
UIWidgets/MultiComponentEDPWidget.cpp \
UIWidgets/MultiComponentDMWidget.cpp \
UIWidgets/MultiComponentDVWidget.cpp \
GeneralInformationWidget.cpp \
UIWidgets/IntensityMeasureWidget.cpp \
UIWidgets/DamageMeasureWidget.cpp \
UIWidgets/RandomVariablesWidget.cpp \
UIWidgets/UserInputCPTWidget.cpp \
UIWidgets/GeospatialDataWidget.cpp \
UIWidgets/GenericModelWidget.cpp \
UIWidgets/StateWidePipelineWidget.cpp \
UIWidgets/BayAreaPipelineWidget.cpp \
UIWidgets/LosAngelesPipelineWidget.cpp \
UIWidgets/NDAStateWidePipelineWidget.cpp \
UIWidgets/NDABayAreaPipelineWidget.cpp \
UIWidgets/UserDefinedGroundMotionWidget.cpp \
ModelViewItems/RVTableView.cpp \
ModelViewItems/RVTableModel.cpp \
ModelViewItems/MixedDelegate.cpp \
ModelViewItems/LineEditDelegate.cpp \
ModelViewItems/LabelDelegate.cpp \
ModelViewItems/StringListDelegate.cpp \
RunWidget.cpp \
HEADERS += \
JsonWidgets/JsonDefinedWidget.h \
JsonWidgets/JsonComboBox.h \
JsonWidgets/JsonLineEdit.h \
JsonWidgets/JsonLabel.h \
JsonWidgets/JsonCheckBox.h \
JsonWidgets/JsonWidget.h \
JsonWidgets/JsonStackedWidget.h \
JsonWidgets/SimCenterJsonWidget.h \
JsonWidgets/JsonGroupBoxWidget.h \
ModelViewItems/ComboBoxDelegate.h \
ModelViewItems/ButtonDelegate.h \
ModelViewItems/RV.h \
OpenSRAUserPass.h \
UIWidgets/AddToRunListWidget.h \
UIWidgets/ClickableLabel.h \
UIWidgets/EDPLandslideWidget.h \
UIWidgets/MonteCarloSamplingWidget.h \
UIWidgets/FixedResidualsSamplingWidget.h \
UIWidgets/OpenSHAWidget.h \
UIWidgets/OpenSRAComponentSelection.h \
UIWidgets/OpenSRAPostProcessor.h \
UIWidgets/OpenSRAPreProcessor.h \
ResultsWidget.h \
UIWidgets/UncertaintyQuantificationWidget.h \
UIWidgets/WidgetFactory.h \
UIWidgets/RandomVariablesWidget.h \
UIWidgets/UserInputCPTWidget.h \
UIWidgets/GeospatialDataWidget.h \
UIWidgets/GenericModelWidget.h \
UIWidgets/StateWidePipelineWidget.h \
UIWidgets/BayAreaPipelineWidget.h \
UIWidgets/LosAngelesPipelineWidget.h \
UIWidgets/NDAStateWidePipelineWidget.h \
UIWidgets/NDABayAreaPipelineWidget.h \
Utils/EventFilter.h \
WorkflowAppOpenSRA.h \
WorkflowAppWidget.h \
MainWindowWorkflowApp.h \
LocalApplication.h \
OpenSRAPreferences.h \
RunWidget.h \
UIWidgets/DecisionVariableWidget.h \
UIWidgets/SourceCharacterizationWidget.h \
UIWidgets/CustomVisualizationWidget.h \
UIWidgets/PipelineNetworkWidget.h \
UIWidgets/EngDemandParamWidget.h \
UIWidgets/EngineeringDemandParameterWidget.h \
UIWidgets/MultiComponentEDPWidget.h \
UIWidgets/MultiComponentDMWidget.h \
UIWidgets/MultiComponentDVWidget.h \
GeneralInformationWidget.h \
UIWidgets/IntensityMeasureWidget.h \
UIWidgets/DamageMeasureWidget.h \
UIWidgets/UserDefinedGroundMotionWidget.h \
ModelViewItems/RVTableView.h \
ModelViewItems/RVTableModel.h \
ModelViewItems/MixedDelegate.h \
ModelViewItems/LineEditDelegate.h \
ModelViewItems/LabelDelegate.h \
ModelViewItems/StringListDelegate.h \
RESOURCES += \
images.qrc \
styles.qrc
INCLUDEPATH += $$PWD/Utils \
$$PWD/styles \
$$PWD/UIWidgets \
$$PWD/JsonWidgets \
$$PWD/ModelViewItems \
# Copies over the examples folder into the build directory
#win32 {
#DESTDIR = $$shell_path($$OUT_PWD)
##Release:DESTDIR = $$DESTDIR/release
##Debug:DESTDIR = $$DESTDIR/debug
#message($$DESTDIR)
#EXAMPLE_FOLDER=$$DESTDIR/Examples
#BACKEND_FOLDER=$$DESTDIR/OpenSRABackEnd
#} else {
# mac {
# EXAMPLE_FOLDER=$$OUT_PWD/OpenSRA.app/Contents/MacOS
# BACKEND_FOLDER=$$OUT_PWD/OpenSRA.app/Contents/MacOS
## mkpath($$EXAMPLE_FOLDER)
## mkpath($$BACKEND_FOLDER)
# }
#}
#copyExamples.commands = $(COPY_DIR) $$shell_quote($$shell_path($$PATH_TO_BACKEND/examples)) $$shell_quote($$shell_path($$EXAMPLE_FOLDER))
#first.depends = $(first) copyExamples
#copyBackEnd.commands = $(COPY_DIR) $$shell_quote($$shell_path($$PATH_TO_BACKEND)) $$shell_quote($$shell_path($$BACKEND_FOLDER))
#first.depends += $(first) copyBackEnd
#export(first.depends)
#export(copyExamples.commands)
#export(copyBackEnd.commands)
#QMAKE_EXTRA_TARGETS += first copyExamples copyBackEnd
#win32:CONFIG(release, debug|release): LIBS += -L$$PWD/'../../../../../../Program Files (x86)/GnuWin32/lib/' -lzlib
#else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/'../../../../../../Program Files (x86)/GnuWin32/lib/' -lzlib
#else:unix: LIBS += -L$$PWD/'../../../../../../Program Files (x86)/GnuWin32/lib/' -lzlib
#INCLUDEPATH += $$PWD/'../../../../../../Program Files (x86)/GnuWin32/include'
#DEPENDPATH += $$PWD/'../../../../../../Program Files (x86)/GnuWin32/include'