-
Notifications
You must be signed in to change notification settings - Fork 2
/
q2d.pro
193 lines (177 loc) · 5.05 KB
/
q2d.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
#-------------------------------------------------
#
# Project created by QtCreator 2014-12-02T16:41:14
#
#-------------------------------------------------
message(Base output directory is $$OUT_PWD)
# paths to seperately build parts
picosatDir = "$$OUT_PWD/picosat-960"
quantorDir = "$$OUT_PWD/quantor-3.2"
!exists($$picosatDir){
downPico = $$prompt(Could not find picosat. Download? [N/y])
equals(downPico, "y") {
system(wget -q http://fmv.jku.at/picosat/picosat-960.tar.gz && tar -xaf picosat-960.tar.gz)
} else {
error(No picosat directory)
}
}
message(picosat directory is $$picosatDir)
!exists($$picosatDir/config.h) {
message(Configuring picosat)
system(cd $$picosatDir && ./configure && make config.h)
}
!exists($$quantorDir){
downQuantor = $$prompt(Could not find quantor. Download? [N/y])
equals(downQuantor, "y") {
system(wget -q http://fmv.jku.at/quantor/quantor-3.2.tar.gz && tar -xaf quantor-3.2.tar.gz)
} else {
error(No quantor directory)
}
}
message(quantor directory is $$quantorDir)
!exists($$quantorDir/config.h) {
message(Configuring quantor)
system(cd $$quantorDir && ./configure && make options.c)
}
QT += core gui svg
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += qt c++11 debug
QMAKE_CXXFLAGS += -Wall -Wextra -pedantic
TARGET = q2d
TEMPLATE = app
SOURCES +=\
gui/MainWindow.cpp \
model/ModelElement.cpp \
model/Node.cpp \
model/Conductor.cpp \
model/Component.cpp \
model/Model.cpp \
Document.cpp \
Project.cpp \
Application.cpp \
Main.cpp \
ApplicationContext.cpp \
gui/SchematicsTab.cpp \
ComponentFactory.cpp \
Constants.cpp \
gui/SchematicsView.cpp \
gui/ComponentTreeView.cpp \
metamodel/PortDescriptor.cpp \
gui/PortGraphicsItem.cpp \
gui/ComponentGraphicsItem.cpp \
DocumentEntry.cpp \
gui/WireGraphicsItem.cpp \
JsonHelpers.cpp \
metamodel/ConfigurationBitDescriptor.cpp \
metamodel/HierarchyElement.cpp \
Enumerations.cpp \
metamodel/Category.cpp \
metamodel/ComponentElement.cpp \
Util.cpp \
metamodel/ComponentDescriptor.cpp \
interfaces/Quantor.cpp \
interfaces/quantor/QIContext.cpp \
interfaces/quantor/Quantorizer.cpp \
interfaces/quantor/Result.cpp \
# including relevant picosat foles
$$picosatDir/picosat.c \
$$picosatDir/version.c \
#including relevant quantor files
$$quantorDir/quantor.c \
gui/QuantorResultDialog.cpp \
MapModel.cpp \
model/Port.cpp \
gui/Schematic.cpp \
gui/SchematicElement.cpp \
metamodel/FunctionDescriptor.cpp \
factories/DocumentEntryFactory.cpp \
factories/GIFactory.cpp \
gui/ComponentDetailView.cpp \
PortListModel.cpp \
gui/ModulePortGI.cpp \
model/ModuleInterface.cpp \
core/Identifiable.cpp \
factories/ToolTipFactory.cpp \
logging/LogLevel.cpp \
logging/LogEntry.cpp \
logging/Logger.cpp \
logging/LogManager.cpp \
logging/LoggerListener.cpp \
logging/ConsoleLogger.cpp
HEADERS +=\
gui/MainWindow.h \
model/ModelElement.h \
model/Node.h \
model/Conductor.h \
model/Component.h \
model/Model.h \
Document.h \
Project.h \
Application.h \
ApplicationContext.h \
gui/SchematicsTab.h \
ComponentFactory.h \
Constants.h \
gui/SchematicsView.h \
gui/ComponentTreeView.h \
metamodel/PortDescriptor.h \
gui/PortGraphicsItem.h \
gui/ComponentGraphicsItem.h \
DocumentEntry.h \
gui/WireGraphicsItem.h \
JsonHelpers.h \
Enumerations.h \
metamodel/ConfigurationBitDescriptor.h \
metamodel/Category.h \
metamodel/Element.h \
metamodel/HierarchyElement.h \
metamodel/ComponentElement.h \
Util.h \
metamodel/ComponentDescriptor.h \
interfaces/Quantor.h \
interfaces/VariableType.h \
interfaces/quantor/ParseException.h \
interfaces/quantor/QIContext.h \
interfaces/quantor/Quantorizer.hpp \
interfaces/quantor/VariableType.h \
interfaces/quantor/Result.h \
$$picosatDir/*.h \
$$quantorDir/*.h \
gui/QuantorResultDialog.h \
MapModel.h \
model/Port.h \
gui/Schematic.h \
gui/SchematicElement.h \
metamodel/FunctionDescriptor.h \
factories/DocumentEntryFactory.h \
interfaces/quantor/Context.h \
factories/GIFactory.h \
gui/ComponentDetailView.h \
PortListModel.h \
gui/ModulePortGI.h \
model/ModuleInterface.h \
core/Identifiable.h \
factories/ToolTipFactory.h \
logging/LogLevel.h \
logging/LogEntry.h \
logging/Logger.h \
logging/LogManager.h \
logging/LoggerListener.h \
logging/ConsoleLogger.h
INCLUDEPATH +=\
$$picosatDir \
$$quantorDir
FORMS +=\
gui/MainWindow.ui \
gui/SchematicsTab.ui \
gui/QuantorResultDialog.ui \
gui/ComponentDetailView.ui
# exclude quantorizer.ypp
HEADERS -= interfaces/quantor/Quantorizer.ypp
SOURCES -= interfaces/quantor/Quantorizer.ypp
# exclude picosat main
SOURCES -= $$picosatDir/main.c
# exclude quantor main
SOURCES -= $$quantorDir/main.c
RESOURCES += \
icons.qrc