1 | # Below is all for the User Interface
|
---|
2 |
|
---|
3 | INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/UIElements
|
---|
4 |
|
---|
5 | AM_LDFLAGS = -ldl
|
---|
6 | AM_CXXFLAGS = ${QT_CXXFLAGS} ${GLU_CXXFLAGS}
|
---|
7 | AM_CPPFLAGS = ${BOOST_CPPFLAGS}
|
---|
8 |
|
---|
9 | VIEWSOURCE = \
|
---|
10 | Views/View.cpp \
|
---|
11 | Views/StringView.cpp \
|
---|
12 | Views/MethodStringView.cpp \
|
---|
13 | Views/StreamStringView.cpp
|
---|
14 | VIEWHEADER = \
|
---|
15 | Views/View.hpp \
|
---|
16 | Views/StringView.hpp \
|
---|
17 | Views/MethodStringView.hpp \
|
---|
18 | Views/StreamStringView.hpp
|
---|
19 |
|
---|
20 | MENUSOURCE = \
|
---|
21 | Menu/Menu.cpp \
|
---|
22 | Menu/MenuDescription.cpp \
|
---|
23 | Menu/MenuInterface.cpp
|
---|
24 |
|
---|
25 | MENUHEADER = \
|
---|
26 | Menu/Menu.hpp \
|
---|
27 | Menu/MenuDescription.hpp \
|
---|
28 | Menu/MenuInterface.hpp
|
---|
29 |
|
---|
30 | TEXTMENUSOURCE = \
|
---|
31 | Menu/TextMenu/TxMenuLeaveAction.cpp \
|
---|
32 | Menu/TextMenu/TxMenu.cpp \
|
---|
33 | Menu/TextMenu/MenuItem.cpp \
|
---|
34 | Menu/TextMenu/SubMenuItem.cpp \
|
---|
35 | Menu/TextMenu/ActionMenuItem.cpp \
|
---|
36 | Menu/TextMenu/SeparatorMenuItem.cpp \
|
---|
37 | Menu/TextMenu/DisplayMenuItem.cpp
|
---|
38 |
|
---|
39 | TEXTMENUHEADER = \
|
---|
40 | Menu/TextMenu/TextMenu.hpp \
|
---|
41 | Menu/TextMenu/TxMenu.hpp \
|
---|
42 | Menu/TextMenu/MenuItem.hpp \
|
---|
43 | Menu/TextMenu/SubMenuItem.hpp \
|
---|
44 | Menu/TextMenu/ActionMenuItem.hpp \
|
---|
45 | Menu/TextMenu/SeparatorMenuItem.hpp \
|
---|
46 | Menu/TextMenu/DisplayMenuItem.hpp
|
---|
47 |
|
---|
48 | UISOURCE = \
|
---|
49 | ${ACTIONSSOURCE} \
|
---|
50 | ${COMMANDLINEUISOURCE} \
|
---|
51 | ${MENUSOURCE} \
|
---|
52 | ${TEXTMENUSOURCE} \
|
---|
53 | ${TEXTUISOURCE} \
|
---|
54 | ${VIEWSOURCE} \
|
---|
55 | Query/AtomQuery.cpp \
|
---|
56 | Query/AtomsQuery.cpp \
|
---|
57 | Query/BooleanQuery.cpp \
|
---|
58 | Query/BoxQuery.cpp \
|
---|
59 | Query/DoubleQuery.cpp \
|
---|
60 | Query/DoublesQuery.cpp \
|
---|
61 | Query/ElementQuery.cpp \
|
---|
62 | Query/ElementsQuery.cpp \
|
---|
63 | Query/EmptyQuery.cpp \
|
---|
64 | Query/FileQuery.cpp \
|
---|
65 | Query/IntQuery.cpp \
|
---|
66 | Query/IntsQuery.cpp \
|
---|
67 | Query/MoleculeQuery.cpp \
|
---|
68 | Query/MoleculesQuery.cpp \
|
---|
69 | Query/Query.cpp \
|
---|
70 | Query/StringQuery.cpp \
|
---|
71 | Query/StringsQuery.cpp \
|
---|
72 | Query/VectorQuery.cpp \
|
---|
73 | Query/VectorsQuery.cpp \
|
---|
74 | Dialog.cpp \
|
---|
75 | MainWindow.cpp
|
---|
76 |
|
---|
77 | UIHEADER = \
|
---|
78 | ${ACTIONSHEADER} \
|
---|
79 | ${COMMANDLINEUIHEADER} \
|
---|
80 | ${MENUHEADER} \
|
---|
81 | ${TEXTMENUHEADER} \
|
---|
82 | ${TEXTUIHEADER} \
|
---|
83 | ${VIEWHEADER} \
|
---|
84 | Dialog.hpp \
|
---|
85 | MainWindow.hpp
|
---|
86 |
|
---|
87 | TEXTUISOURCE = \
|
---|
88 | TextUI/Query/AtomsTextQuery.cpp \
|
---|
89 | TextUI/Query/AtomTextQuery.cpp \
|
---|
90 | TextUI/Query/BooleanTextQuery.cpp \
|
---|
91 | TextUI/Query/BoxTextQuery.cpp \
|
---|
92 | TextUI/Query/DoubleTextQuery.cpp \
|
---|
93 | TextUI/Query/DoublesTextQuery.cpp \
|
---|
94 | TextUI/Query/ElementTextQuery.cpp \
|
---|
95 | TextUI/Query/ElementsTextQuery.cpp \
|
---|
96 | TextUI/Query/EmptyTextQuery.cpp \
|
---|
97 | TextUI/Query/FileTextQuery.cpp \
|
---|
98 | TextUI/Query/IntTextQuery.cpp \
|
---|
99 | TextUI/Query/IntsTextQuery.cpp \
|
---|
100 | TextUI/Query/MoleculesTextQuery.cpp \
|
---|
101 | TextUI/Query/MoleculeTextQuery.cpp \
|
---|
102 | TextUI/Query/StringTextQuery.cpp \
|
---|
103 | TextUI/Query/StringsTextQuery.cpp \
|
---|
104 | TextUI/Query/VectorTextQuery.cpp \
|
---|
105 | TextUI/Query/VectorsTextQuery.cpp \
|
---|
106 | TextUI/TextDialog.cpp \
|
---|
107 | TextUI/TextStatusIndicator.cpp \
|
---|
108 | TextUI/TextUIFactory.cpp \
|
---|
109 | TextUI/TextWindow.cpp
|
---|
110 | TEXTUIHEADER = \
|
---|
111 | TextUI/Query/TextQuery.hpp \
|
---|
112 | TextUI/TextDialog.hpp \
|
---|
113 | TextUI/TextStatusIndicator.hpp \
|
---|
114 | TextUI/TextUIFactory.hpp \
|
---|
115 | TextUI/TextWindow.hpp
|
---|
116 |
|
---|
117 | COMMANDLINEUISOURCE = \
|
---|
118 | CommandLineUI/Query/AtomCommandLineQuery.cpp \
|
---|
119 | CommandLineUI/Query/AtomsCommandLineQuery.cpp \
|
---|
120 | CommandLineUI/Query/BooleanCommandLineQuery.cpp \
|
---|
121 | CommandLineUI/Query/BoxCommandLineQuery.cpp \
|
---|
122 | CommandLineUI/Query/DoubleCommandLineQuery.cpp \
|
---|
123 | CommandLineUI/Query/DoublesCommandLineQuery.cpp \
|
---|
124 | CommandLineUI/Query/ElementCommandLineQuery.cpp \
|
---|
125 | CommandLineUI/Query/ElementsCommandLineQuery.cpp \
|
---|
126 | CommandLineUI/Query/EmptyCommandLineQuery.cpp \
|
---|
127 | CommandLineUI/Query/FileCommandLineQuery.cpp \
|
---|
128 | CommandLineUI/Query/IntCommandLineQuery.cpp \
|
---|
129 | CommandLineUI/Query/IntsCommandLineQuery.cpp \
|
---|
130 | CommandLineUI/Query/MoleculeCommandLineQuery.cpp \
|
---|
131 | CommandLineUI/Query/MoleculesCommandLineQuery.cpp \
|
---|
132 | CommandLineUI/Query/StringCommandLineQuery.cpp \
|
---|
133 | CommandLineUI/Query/StringsCommandLineQuery.cpp \
|
---|
134 | CommandLineUI/Query/VectorCommandLineQuery.cpp \
|
---|
135 | CommandLineUI/Query/VectorsCommandLineQuery.cpp \
|
---|
136 | CommandLineUI/CommandLineDialog.cpp \
|
---|
137 | CommandLineUI/CommandLineParser.cpp \
|
---|
138 | CommandLineUI/CommandLineParser_validate.cpp \
|
---|
139 | CommandLineUI/CommandLineStatusIndicator.cpp \
|
---|
140 | CommandLineUI/CommandLineUIFactory.cpp \
|
---|
141 | CommandLineUI/CommandLineWindow.cpp \
|
---|
142 | CommandLineUI/TypeEnumContainer.cpp
|
---|
143 |
|
---|
144 | COMMANDLINEUIHEADER = \
|
---|
145 | CommandLineUI/Query/CommandLineQuery.hpp \
|
---|
146 | CommandLineUI/CommandLineDialog.hpp \
|
---|
147 | CommandLineUI/CommandLineParser.hpp \
|
---|
148 | CommandLineUI/CommandLineParser_validate.hpp \
|
---|
149 | CommandLineUI/CommandLineStatusIndicator.hpp \
|
---|
150 | CommandLineUI/CommandLineUIFactory.hpp \
|
---|
151 | CommandLineUI/CommandLineWindow.hpp \
|
---|
152 | CommandLineUI/TypeEnumContainer.cpp
|
---|
153 |
|
---|
154 | QTUIMOC_HEADER = \
|
---|
155 | Qt4/QtDialog.hpp \
|
---|
156 | Qt4/QtMainWindow.hpp \
|
---|
157 | Qt4/Pipe/AtomQtQueryPipe.hpp \
|
---|
158 | Qt4/Pipe/AtomsQtQueryPipe.hpp \
|
---|
159 | Qt4/Pipe/BooleanQtQueryPipe.hpp \
|
---|
160 | Qt4/Pipe/BoxQtQueryPipe.hpp \
|
---|
161 | Qt4/Pipe/DoubleQtQueryPipe.hpp \
|
---|
162 | Qt4/Pipe/ElementsQtQueryPipe.hpp \
|
---|
163 | Qt4/Pipe/EmptyQtQueryPipe.hpp \
|
---|
164 | Qt4/Pipe/ElementQtQueryPipe.hpp \
|
---|
165 | Qt4/Pipe/FileQtQueryPipe.hpp \
|
---|
166 | Qt4/Pipe/IntQtQueryPipe.hpp \
|
---|
167 | Qt4/Pipe/MoleculeQtQueryPipe.hpp \
|
---|
168 | Qt4/Pipe/MoleculesQtQueryPipe.hpp \
|
---|
169 | Qt4/Pipe/StringQtQueryPipe.hpp \
|
---|
170 | Qt4/Pipe/VectorQtQueryPipe.hpp \
|
---|
171 | Qt4/Pipe/VectorsQtQueryPipe.hpp \
|
---|
172 | Menu/Qt4/QtMenuPipe.hpp \
|
---|
173 | Views/Qt4/QtWorldView.hpp \
|
---|
174 | Views/Qt4/GLMoleculeView.hpp \
|
---|
175 | Views/Qt4/QtMoleculeView.hpp \
|
---|
176 | Views/Qt4/QtStatusBar.hpp
|
---|
177 |
|
---|
178 | QTUISOURCE = allmocs.moc.cpp \
|
---|
179 | Qt4/Pipe/AtomQtQueryPipe.cpp \
|
---|
180 | Qt4/Pipe/AtomsQtQueryPipe.cpp \
|
---|
181 | Qt4/Pipe/BooleanQtQueryPipe.cpp \
|
---|
182 | Qt4/Pipe/BoxQtQueryPipe.cpp \
|
---|
183 | Qt4/Pipe/DoubleQtQueryPipe.cpp \
|
---|
184 | Qt4/Pipe/ElementsQtQueryPipe.cpp \
|
---|
185 | Qt4/Pipe/EmptyQtQueryPipe.cpp \
|
---|
186 | Qt4/Pipe/ElementQtQueryPipe.cpp \
|
---|
187 | Qt4/Pipe/FileQtQueryPipe.cpp \
|
---|
188 | Qt4/Pipe/IntQtQueryPipe.cpp \
|
---|
189 | Qt4/Pipe/MoleculeQtQueryPipe.cpp \
|
---|
190 | Qt4/Pipe/MoleculesQtQueryPipe.cpp \
|
---|
191 | Qt4/Pipe/StringQtQueryPipe.cpp \
|
---|
192 | Qt4/Pipe/VectorQtQueryPipe.cpp \
|
---|
193 | Qt4/Pipe/VectorsQtQueryPipe.cpp \
|
---|
194 | Qt4/Query/AtomQtQuery.cpp \
|
---|
195 | Qt4/Query/AtomsQtQuery.cpp \
|
---|
196 | Qt4/Query/BooleanQtQuery.cpp \
|
---|
197 | Qt4/Query/BoxQtQuery.cpp \
|
---|
198 | Qt4/Query/DoubleQtQuery.cpp \
|
---|
199 | Qt4/Query/DoublesQtQuery.cpp \
|
---|
200 | Qt4/Query/ElementQtQuery.cpp \
|
---|
201 | Qt4/Query/ElementsQtQuery.cpp \
|
---|
202 | Qt4/Query/EmptyQtQuery.cpp \
|
---|
203 | Qt4/Query/FileQtQuery.cpp \
|
---|
204 | Qt4/Query/IntQtQuery.cpp \
|
---|
205 | Qt4/Query/IntsQtQuery.cpp \
|
---|
206 | Qt4/Query/MoleculeQtQuery.cpp \
|
---|
207 | Qt4/Query/MoleculesQtQuery.cpp \
|
---|
208 | Qt4/Query/StringQtQuery.cpp \
|
---|
209 | Qt4/Query/StringsQtQuery.cpp \
|
---|
210 | Qt4/Query/VectorQtQuery.cpp \
|
---|
211 | Qt4/Query/VectorsQtQuery.cpp \
|
---|
212 | Qt4/QtMainWindow.cpp \
|
---|
213 | Qt4/QtDialog.cpp \
|
---|
214 | Qt4/QtUIFactory.cpp \
|
---|
215 | Menu/Qt4/QtMenuPipe.cpp \
|
---|
216 | Views/Qt4/QtWorldView.cpp \
|
---|
217 | Views/Qt4/GLMoleculeView.cpp \
|
---|
218 | Views/Qt4/QtMoleculeView.cpp \
|
---|
219 | Views/Qt4/QtStatusBar.cpp
|
---|
220 |
|
---|
221 | QTUIHEADER = \
|
---|
222 | ${QTUIMOC_HEADER} \
|
---|
223 | Menu/Qt4/QtMenu.hpp \
|
---|
224 | Qt4/Query/QtQuery.hpp \
|
---|
225 | Qt4/QtUIFactory.hpp \
|
---|
226 | Qt4/Pipe/QtQueryListPipe.hpp
|
---|
227 |
|
---|
228 | QTUI_DEFS =
|
---|
229 |
|
---|
230 | GUI_LIBS =
|
---|
231 |
|
---|
232 |
|
---|
233 | lib_LTLIBRARIES = libMolecuilderUI-@MOLECUILDER_API_VERSION@.la \
|
---|
234 | libMolecuilderQtUI-@MOLECUILDER_API_VERSION@.la
|
---|
235 | libMolecuilderUI_includedir = $(includedir)/molecuilder-$(MOLECUILDER_API_VERSION)/Actions/
|
---|
236 | libMolecuilderQtUI_includedir = $(includedir)/molecuilder-$(MOLECUILDER_API_VERSION)/Actions/
|
---|
237 | libMolecuilderUI_@MOLECUILDER_API_VERSION@_la_LIBS = \
|
---|
238 | Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la
|
---|
239 | libMolecuilderQtUI_@MOLECUILDER_API_VERSION@_la_LIBS = \
|
---|
240 | Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la
|
---|
241 |
|
---|
242 | libMolecuilderQtUI_@MOLECUILDER_API_VERSION@_la_LIBADD = ${QT_LIB_GUI} -lQtOpenGL ${GLU_LIBS} ${QT_LDADD}
|
---|
243 |
|
---|
244 | nobase_libMolecuilderUI_include_HEADERS = ${UIHEADER}
|
---|
245 | nobase_libMolecuilderQtUI_include_HEADERS = ${QTUIHEADER}
|
---|
246 |
|
---|
247 | ## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
|
---|
248 | ## target. Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
|
---|
249 | ## will therefore be treated as if it were literally part of the target name,
|
---|
250 | ## and the variable name derived from that.
|
---|
251 | ## The file extension .cc is recognized by Automake, and makes it produce
|
---|
252 | ## rules which invoke the C++ compiler to produce a libtool object file (.lo)
|
---|
253 | ## from each source file. Note that it is not necessary to list header files
|
---|
254 | ## which are already listed elsewhere in a _HEADERS variable assignment.
|
---|
255 | libMolecuilderUI_@MOLECUILDER_API_VERSION@_la_SOURCES = ${UISOURCE}
|
---|
256 | libMolecuilderQtUI_@MOLECUILDER_API_VERSION@_la_SOURCES = ${QTUISOURCE}
|
---|
257 |
|
---|
258 | ## Instruct libtool to include ABI version information in the generated shared
|
---|
259 | ## library file (.so). The library ABI version is defined in configure.ac, so
|
---|
260 | ## that all version information is kept in one place.
|
---|
261 | libMolecuilderUI_@MOLECUILDER_API_VERSION@_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
|
---|
262 | libMolecuilderQtUI_@MOLECUILDER_API_VERSION@_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
|
---|
263 |
|
---|
264 | ## The generated configuration header is installed in its own subdirectory of
|
---|
265 | ## $(libdir). The reason for this is that the configuration information put
|
---|
266 | ## into this header file describes the target platform the installed library
|
---|
267 | ## has been built for. Thus the file must not be installed into a location
|
---|
268 | ## intended for architecture-independent files, as defined by the Filesystem
|
---|
269 | ## Hierarchy Standard (FHS).
|
---|
270 | ## The nodist_ prefix instructs Automake to not generate rules for including
|
---|
271 | ## the listed files in the distribution on 'make dist'. Files that are listed
|
---|
272 | ## in _HEADERS variables are normally included in the distribution, but the
|
---|
273 | ## configuration header file is generated at configure time and should not be
|
---|
274 | ## shipped with the source tarball.
|
---|
275 | libMolecuilderUI_libincludedir = $(libdir)/molecuilder-$(MOLECUILDER_API_VERSION)/include
|
---|
276 | libMolecuilderQtUI_libincludedir = $(libdir)/molecuilder-$(MOLECUILDER_API_VERSION)/include
|
---|
277 | nodist_libMolecuilderUI_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
|
---|
278 | nodist_libMolecuilderQtUI_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
|
---|
279 |
|
---|
280 | ## Install the generated pkg-config file (.pc) into the expected location for
|
---|
281 | ## architecture-dependent package configuration information. Occasionally,
|
---|
282 | ## pkg-config files are also used for architecture-independent data packages,
|
---|
283 | ## in which case the correct install location would be $(datadir)/pkgconfig.
|
---|
284 | pkgconfigdir = $(libdir)/pkgconfig
|
---|
285 | pkgconfig_DATA = $(top_builddir)/molecuilder-$(MOLECUILDER_API_VERSION).pc
|
---|
286 |
|
---|
287 | unity.cpp:
|
---|
288 | echo "" > unity.cpp; \
|
---|
289 | list='$(UISOURCE)'; for file in $$list; do \
|
---|
290 | echo "#include \"$(srcdir)/$$file\"" >> unity.cpp; \
|
---|
291 | done;
|
---|
292 |
|
---|
293 | #Rules needed for Qt4
|
---|
294 | # UI-Files are scattered throughout several subdirectories
|
---|
295 | # Therfore `%'-rules do not seem to work
|
---|
296 | #Quick fix to get it done otherwise
|
---|
297 | allmocs.moc.cpp: ${QTUIMOC_HEADER}
|
---|
298 | echo "" > allmocs.moc.cpp;\
|
---|
299 | list='$(QTUIMOC_HEADER)'; for header in $$list; do \
|
---|
300 | echo "Making mocfile for $$header"; \
|
---|
301 | target=`basename $$header | sed "s/\(.*\)\..*/\1.moc.cpp/"`;\
|
---|
302 | $(MOC) $(srcdir)/$$header -o $$target \
|
---|
303 | || eval $$failcom; \
|
---|
304 | echo "#include \"$$target\"" >> allmocs.moc.cpp; \
|
---|
305 | done;
|
---|
306 |
|
---|
307 |
|
---|
308 | MOSTLYCLEANFILES = unity.cpp allmocs.moc.cpp
|
---|