-
Notifications
You must be signed in to change notification settings - Fork 298
/
OMEditGUI.pro
272 lines (252 loc) · 9.07 KB
/
OMEditGUI.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
#
# This file is part of OpenModelica.
#
# Copyright (c) 1998-CurrentYear, Open Source Modelica Consortium (OSMC),
# c/o Linköpings universitet, Department of Computer and Information Science,
# SE-58183 Linköping, Sweden.
#
# All rights reserved.
#
# THIS PROGRAM IS PROVIDED UNDER THE TERMS OF GPL VERSION 3 LICENSE OR
# THIS OSMC PUBLIC LICENSE (OSMC-PL) VERSION 1.2.
# ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE
# OF THE OSMC PUBLIC LICENSE OR THE GPL VERSION 3, ACCORDING TO RECIPIENTS CHOICE.
#
# The OpenModelica software and the Open Source Modelica
# Consortium (OSMC) Public License (OSMC-PL) are obtained
# from OSMC, either from the above address,
# from the URLs: http://www.ida.liu.se/projects/OpenModelica or
# http://www.openmodelica.org, and in the OpenModelica distribution.
# GNU version 3 is obtained from: http://www.gnu.org/copyleft/gpl.html.
#
# This program is distributed WITHOUT ANY WARRANTY; without
# even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE, EXCEPT AS EXPRESSLY SET FORTH
# IN THE BY RECIPIENT SELECTED SUBSIDIARY LICENSE CONDITIONS OF OSMC-PL.
#
# See the full OSMC Public License conditions for more details.
#
#/
QT += network core gui webkit xml xmlpatterns svg
greaterThan(QT_MAJOR_VERSION, 4) {
QT += printsupport widgets webkitwidgets
}
TRANSLATIONS = Resources/nls/OMEdit_de.ts \
Resources/nls/OMEdit_es.ts \
Resources/nls/OMEdit_fr.ts \
Resources/nls/OMEdit_it.ts \
Resources/nls/OMEdit_ja.ts \
Resources/nls/OMEdit_ro.ts \
Resources/nls/OMEdit_ru.ts \
Resources/nls/OMEdit_sv.ts \
Resources/nls/OMEdit_zh_CN.ts
TARGET = OMEdit
TEMPLATE = app
# This is very evil, lupdate just look for SOURCES variable and creates translations. This section is not compiled at all :)
evil_hack_to_fool_lupdate {
SOURCES += ../../../OMPlot/OMPlotGUI/*.cpp
}
# Windows libraries and includes
win32 {
OPENMODELICAHOME = $$(OPENMODELICAHOME)
QMAKE_LFLAGS += -Wl,--stack,16777216,--enable-auto-import
DEFINES += IMPORT_INTO=1
CONFIG(release, debug|release) {
# In order to get the stack trace in Windows we must add -g flag. Qt automatically adds the -O2 flag for optimization.
# We should also unset the QMAKE_LFLAGS_RELEASE define because it is defined as QMAKE_LFLAGS_RELEASE = -Wl,-s in qmake.conf file for MinGW
# -s will remove all symbol table and relocation information from the executable.
QMAKE_CXXFLAGS += -g
QMAKE_LFLAGS_RELEASE =
# required for backtrace
# win32 vs. win64
contains(QT_ARCH, i386) { # 32-bit
LIBS += -L$$(OMDEV)/tools/msys/mingw32/lib/binutils -L$$(OMDEV)/tools/msys/mingw32/bin -limagehlp -lbfd -lintl -liberty
} else { # 64-bit
LIBS += -L$$(OMDEV)/tools/msys/mingw64/lib/binutils -L$$(OMDEV)/tools/msys/mingw64/bin -limagehlp -lbfd -lintl -liberty
}
}
LIBS += -L../OMEditGUI/Debugger/Parser -lGDBMIParser \
-L$$(OMBUILDDIR)/lib/omc -lomantlr3 -lOMPlot -lomqwt \
-lOpenModelicaCompiler -lOpenModelicaRuntimeC -lfmilib -lModelicaExternalC -lomcgc -lpthread \
-lws2_32
INCLUDEPATH += $$(OMBUILDDIR)/include/omplot \
$$(OMBUILDDIR)/include/omplot/qwt \
$$(OMBUILDDIR)/include/omc/antlr3 $$(OMBUILDDIR)/include/omc/c
RC_FILE = rc_omedit.rc
} else { # Unix libraries and includes
include(OMEdit.config)
# On unix we use backtrace of execinfo.h which requires -rdynamic
# The symbol names may be unavailable without the use of special linker
# options. For systems using the GNU linker, it is necessary to use
# the -rdynamic linker option. Note that names of "static" functions
# are not exposed, and won't be available in the backtrace.
CONFIG(release, debug|release) {
QMAKE_LFLAGS_RELEASE += -rdynamic
}
}
SOURCES += main.cpp \
Util/Helper.cpp \
Util/Utilities.cpp \
Util/StringHandler.cpp \
MainWindow.cpp \
$$OPENMODELICAHOME/include/omc/scripting-API/OpenModelicaScriptingAPIQt.cpp \
OMC/OMCProxy.cpp \
Modeling/MessagesWidget.cpp \
Modeling/LibraryTreeWidget.cpp \
Modeling/Commands.cpp \
Modeling/CoOrdinateSystem.cpp \
Modeling/ModelWidgetContainer.cpp \
Modeling/ModelicaClassDialog.cpp \
Options/OptionsDialog.cpp \
Editors/BaseEditor.cpp \
Editors/ModelicaEditor.cpp \
Editors/TransformationsEditor.cpp \
Editors/DebuggerSourceEditor.cpp \
Editors/TextEditor.cpp \
Editors/CEditor.cpp \
Editors/MetaModelEditor.cpp \
Plotting/PlotWindowContainer.cpp \
Component/Component.cpp \
Annotations/ShapeAnnotation.cpp \
Component/CornerItem.cpp \
Annotations/LineAnnotation.cpp \
Annotations/PolygonAnnotation.cpp \
Annotations/RectangleAnnotation.cpp \
Annotations/EllipseAnnotation.cpp \
Annotations/TextAnnotation.cpp \
Annotations/BitmapAnnotation.cpp \
Component/ComponentProperties.cpp \
Component/Transformation.cpp \
Modeling/DocumentationWidget.cpp \
Simulation/SimulationDialog.cpp \
Simulation/SimulationOutputWidget.cpp \
Simulation/SimulationProcessThread.cpp \
Simulation/SimulationOutputHandler.cpp \
TLM/FetchInterfaceDataDialog.cpp \
TLM/FetchInterfaceDataThread.cpp \
TLM/TLMCoSimulationDialog.cpp \
TLM/TLMCoSimulationOutputWidget.cpp \
TLM/TLMCoSimulationThread.cpp \
FMI/ImportFMUDialog.cpp \
Plotting/VariablesWidget.cpp \
Options/NotificationsDialog.cpp \
Annotations/ShapePropertiesDialog.cpp \
TransformationalDebugger/OMDumpXML.cpp \
TransformationalDebugger/diff_match_patch.cpp \
TransformationalDebugger/TransformationsWidget.cpp \
Debugger/GDB/CommandFactory.cpp \
Debugger/GDB/GDBAdapter.cpp \
Debugger/StackFrames/StackFramesWidget.cpp \
Debugger/Locals/LocalsWidget.cpp \
Debugger/Locals/ModelicaValue.cpp \
Debugger/Breakpoints/BreakpointMarker.cpp \
Debugger/Breakpoints/BreakpointsWidget.cpp \
Debugger/Breakpoints/BreakpointDialog.cpp \
Debugger/DebuggerMainWindow.cpp \
Debugger/Attach/AttachToProcessDialog.cpp \
Debugger/Attach/ProcessListModel.cpp \
CrashReport/backtrace.c \
CrashReport/CrashReportDialog.cpp
HEADERS += Util/Helper.h \
Util/Utilities.h \
Util/StringHandler.h \
MainWindow.h \
$$OPENMODELICAHOME/include/omc/scripting-API/OpenModelicaScriptingAPIQt.h \
OMC/OMCProxy.h \
Modeling/MessagesWidget.h \
Modeling/LibraryTreeWidget.h \
Modeling/Commands.h \
Modeling/CoOrdinateSystem.h \
Modeling/ModelWidgetContainer.h \
Modeling/ModelicaClassDialog.h \
Options/OptionsDialog.h \
Editors/BaseEditor.h \
Editors/ModelicaEditor.h \
Editors/TransformationsEditor.h \
Editors/DebuggerSourceEditor.h \
Editors/TextEditor.h \
Editors/CEditor.h \
Editors/MetaModelEditor.h \
Plotting/PlotWindowContainer.h \
Component/Component.h \
Annotations/ShapeAnnotation.h \
Component/CornerItem.h \
Annotations/LineAnnotation.h \
Annotations/PolygonAnnotation.h \
Annotations/RectangleAnnotation.h \
Annotations/EllipseAnnotation.h \
Annotations/TextAnnotation.h \
Annotations/BitmapAnnotation.h \
Component/ComponentProperties.h \
Component/Transformation.h \
Modeling/DocumentationWidget.h \
Simulation/SimulationOptions.h \
Simulation/SimulationDialog.h \
Simulation/SimulationOutputWidget.h \
Simulation/SimulationProcessThread.h \
Simulation/SimulationOutputHandler.h \
TLM/FetchInterfaceDataDialog.h \
TLM/FetchInterfaceDataThread.h \
TLM/TLMCoSimulationOptions.h \
TLM/TLMCoSimulationDialog.h \
TLM/TLMCoSimulationOutputWidget.h \
TLM/TLMCoSimulationThread.h \
FMI/ImportFMUDialog.h \
Plotting/VariablesWidget.h \
Options/NotificationsDialog.h \
Annotations/ShapePropertiesDialog.h \
TransformationalDebugger/OMDumpXML.cpp \
TransformationalDebugger/diff_match_patch.h \
TransformationalDebugger/TransformationsWidget.h \
Debugger/GDB/CommandFactory.h \
Debugger/GDB/GDBAdapter.h \
Debugger/StackFrames/StackFramesWidget.h \
Debugger/Locals/LocalsWidget.h \
Debugger/Locals/ModelicaValue.h \
Debugger/Breakpoints/BreakpointMarker.h \
Debugger/Breakpoints/BreakpointsWidget.h \
Debugger/Breakpoints/BreakpointDialog.h \
Debugger/DebuggerMainWindow.h \
Debugger/Attach/AttachToProcessDialog.h \
Debugger/Attach/ProcessListModel.h \
CrashReport/backtrace.h \
CrashReport/CrashReportDialog.h
LIBS += -lqjson
INCLUDEPATH += ../../qjson/build/include
INCLUDEPATH += . \
Annotations \
Component \
CrashReport \
Debugger \
Debugger/Attach \
Debugger/Breakpoints \
Debugger/GDB \
Debugger/Locals \
Debugger/Parser \
Debugger/StackFrames \
Editors \
FMI \
Modeling \
OMC \
Options \
Plotting \
Simulation \
TLM \
TransformationalDebugger \
Util \
$$OPENMODELICAHOME/include/omc/scripting-API \
$$OPENMODELICAHOME/include/omc/c/util
OTHER_FILES += Resources/css/stylesheet.qss \
Resources/XMLSchema/tlmModelDescription.xsd \
Debugger/Parser/GDBMIOutput.g \
Debugger/Parser/GDBMIParser.h \
Debugger/Parser/GDBMIParser.cpp \
Debugger/Parser/main.cpp
# Please read the warnings. They are like vegetables; good for you even if you hate them.
CONFIG += warn_on
RESOURCES += resource_omedit.qrc
DESTDIR = ../bin
UI_DIR = ../generatedfiles/ui
MOC_DIR = ../generatedfiles/moc
RCC_DIR = ../generatedfiles/rcc
ICON = Resources/icons/omedit.icns