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