Changeset c015b3
- Timestamp:
- Dec 28, 2011, 3:24:57 PM (13 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
- Children:
- db1a72
- Parents:
- f3b8a5
- git-author:
- Frederik Heber <heber@…> (11/11/11 12:16:24)
- git-committer:
- Frederik Heber <heber@…> (12/28/11 15:24:57)
- Files:
-
- 6 added
- 4 deleted
- 8 edited
- 14 moved
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
rf3b8a5 rc015b3 21 21 AC_PROG_INSTALL 22 22 23 dnl Check if we have enable python 24 # python module 25 AC_MSG_CHECKING(whether to enable python module) 26 AC_ARG_ENABLE(python, [ --enable-python=[no/yes] turn on python module 27 [default=yes]],, enable_python=$enableval) 28 AC_MSG_RESULT($enable_python) 29 AS_IF([test x"$enable_python" != x"no"],[ 30 # Python (for boost::python) 31 AM_PATH_PYTHON([2.2]) 32 AX_PYTHON 33 AC_DEFINE(HAVE_PYTHON,1, ["Build python module and scripts."]) 34 ]) 35 AM_CONDITIONAL([CONDPYTHON], [test x"$enable_python" != x"no"]) 36 AC_SUBST(HAVE_PYTHON) 37 38 dnl Check if we have enable qtgui 23 39 # Qt programs 40 have_qtgui_path="" 24 41 AC_ARG_WITH([Qt-bin], 25 42 [AC_HELP_STRING([--with-Qt-bin], [give path to Qt binaries])], 26 echo "Looking for binaries in $withval ... " 27 [AC_PATH_PROGS([QT_MOC], 43 [have_qtgui_path=$withval 44 enable_qtgui="yes"],,) 45 46 AC_MSG_CHECKING(whether to enable Qt-based GUI) 47 AC_ARG_ENABLE(qtgui, [ --enable-qtgui=[no/yes] turn on Qt GUI compilation 48 [default=yes]],, enable_qtgui=$enableval) 49 AC_MSG_RESULT($enable_qtgui) 50 AS_IF([test x"$enable_qtgui" != x"no"],[ 51 AC_PATH_PROGS([QT_MOC], 28 52 [moc-qt4 moc], 29 53 [AC_MSG_ERROR(["Qts moc not found, please use --with-Qt-bin."])], 30 [$ withval]54 [$have_qtgui_path] 31 55 ) 32 56 AC_PATH_PROGS([QT_UIC], 33 57 [uic-qt4 uic], 34 58 [AC_MSG_ERROR(["Qts uic not found, please use --with-Qt-bin."])], 35 [$withval] 36 )], 37 [AC_PATH_PROGS([QT_MOC], 38 [moc-qt4 moc], 39 [AC_MSG_ERROR(["Qts moc not found, please use --with-Qt-bin."])] 59 [$have_qtgui_path] 40 60 ) 41 AC_PATH_PROGS([QT_UIC], 42 [uic-qt4 uic], 43 [AC_MSG_ERROR(["Qts uic not found, please use --with-Qt-bin."])] 44 )] 45 ) 46 PKG_CHECK_MODULES([QT], [QtCore QtGui Qt3D], [ 47 ]) 48 AC_SUBST([QT_CFLAGS]) 49 AC_SUBST([QT_LIBS]) 61 PKG_CHECK_MODULES([QT], [QtCore QtGui Qt3D], [ 62 ]) 63 AC_SUBST([QT_CFLAGS]) 64 AC_SUBST([QT_LIBS]) 65 AC_DEFINE(HAVE_QTGUI,1, ["Build Qt-based GUI"]) 66 ]) 67 AM_CONDITIONAL([CONDQTGUI], [test x"$enable_qtgui" != x"no"]) 68 AC_SUBST(HAVE_QTGUI) 50 69 51 70 # use doxygen … … 54 73 DX_PDF_FEATURE(OFF) 55 74 DX_INIT_DOXYGEN(MoleCuilder, Doxyfile, ${docdir}) 56 57 # Python (for boost::python)58 AM_PATH_PYTHON([2.2])59 AX_PYTHON60 75 61 76 # use libtool … … 74 89 AC_MSG_CHECKING(whether to enable debugging) 75 90 have_debug="no" 76 AC_MSG_RESULT($have_debug)77 91 AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes/full] turn on debugging 78 92 [default=no]],, enable_debug=$enableval) … … 93 107 have_debug="no" 94 108 fi 109 AC_MSG_RESULT($have_debug) 95 110 AC_SUBST(HAVE_DEBUG) 96 111 … … 132 147 BOOST_FILESYSTEM 133 148 BOOST_PROGRAM_OPTIONS 134 BOOST_PYTHON 149 AS_IF([test x"$enable_python" != x"no"], [BOOST_PYTHON]) 135 150 BOOST_SERIALIZATION 136 151 BOOST_THREADS … … 233 248 tests/regression/atlocal 234 249 tests/regression/Makefile]) 235 AC_CONFIG_FILES([tests/regression/Python/run], [chmod +x tests/regression/Python/run])236 250 AC_CONFIG_FILES([tests/regression/molecuilder], [chmod +x tests/regression/molecuilder]) 237 251 … … 255 269 src/unittests/Makefile 256 270 ]) 257 AC_CONFIG_FILES([utils/boxmaker.py:utils/boxmaker.py.in], [chmod +x utils/boxmaker.py]) 258 AC_CONFIG_FILES([utils/python_wrapper:utils/python_wrapper.in], [chmod +x utils/python_wrapper]) 271 # produce python scripts and tests only when python's present 272 AM_COND_IF([CONDPYTHON],[ 273 AC_CONFIG_TESTDIR([tests/Python]) 274 AC_CONFIG_FILES([utils/boxmaker.py:utils/boxmaker.py.in], [chmod +x utils/boxmaker.py]) 275 AC_CONFIG_FILES([utils/python_wrapper:utils/python_wrapper.in], [chmod +x utils/python_wrapper]) 276 AC_CONFIG_FILES([tests/Python/run], [chmod +x tests/Python/run]) 277 AC_CONFIG_FILES([tests/Python/atlocal]) 278 AC_CONFIG_FILES([tests/Python/Makefile]) 279 ]) 259 280 AC_OUTPUT -
src/Actions/Makefile.am
rf3b8a5 rc015b3 427 427 #libMolecuilderActionPython_la_includedir = $(includedir)/MoleCuilder/Actions/ 428 428 429 BUILT_SOURCES += AllActionHeaders.hpp AllActionPython.hpp 429 BUILT_SOURCES += AllActionHeaders.hpp 430 if CONDPYTHON 431 BUILT_SOURCES += AllActionPython.hpp 432 endif 430 433 #$(ACTIONPYTHONSOURCE) 431 434 … … 489 492 echo "#endif /* ALLACTIONHEADERS_HPP_ */" >>$@; 490 493 494 MOSTLYCLEANFILES += \ 495 AllActionHeaders.hpp 496 497 if CONDPYTHON 491 498 AllActionPython.hpp: $(ACTIONPROTOTYPESHEADER) 492 499 echo "#ifndef ALLACTIONPYTHON_HPP_" >$@; \ … … 499 506 echo "#endif /* ALLACTIONPYTHON_HPP_ */" >>$@; 500 507 501 502 508 MOSTLYCLEANFILES += \ 503 AllActionHeaders.hpp \504 509 AllActionPython.hpp 505 #$(ACTIONPYTHONSOURCE) 510 511 endif -
src/Makefile.am
rf3b8a5 rc015b3 253 253 libmenu_a_SOURCES = ${UISOURCE} ${UIHEADER} 254 254 noinst_LIBRARIES = libmenu.a 255 bin_PROGRAMS += molecuilder molecuilderguijoiner analyzer255 bin_PROGRAMS += molecuilder joiner analyzer 256 256 EXTRA_PROGRAMS = unity 257 257 … … 270 270 ${top_srcdir}/data/molecules/*.pdb 271 271 272 272 if CONDPYTHON 273 273 pyexec_LTLIBRARIES += pyMoleCuilder.la 274 274 pyMoleCuilder_la_SOURCES = \ … … 286 286 ${CodePatterns_LIBS} \ 287 287 -l$(PYTHON_LIB) 288 endif 288 289 289 290 … … 308 309 309 310 #Stuff for building the GUI using Qt 311 if CONDQTGUI 312 bin_PROGRAMS += molecuildergui 310 313 molecuildergui_SOURCES = \ 311 314 builder.cpp \ … … 327 330 $(BOOST_FILESYSTEM_LIBS) \ 328 331 $(GUI_LIBS) 332 endif 329 333 330 334 joiner_SOURCES = Fragmentation/joiner.cpp Fragmentation/datacreator.cpp Fragmentation/datacreator.hpp -
src/UIElements/Makefile.am
rf3b8a5 rc015b3 250 250 UIElements/Qt4/Pipe/QtQueryListPipe.hpp 251 251 252 lib_LTLIBRARIES += libMolecuilderUI.la \ 253 libMolecuilderQtUI.la 252 lib_LTLIBRARIES += libMolecuilderUI.la 254 253 libMolecuilderUI_la_includedir = $(includedir)/MoleCuilder/UIElements/ 255 libMolecuilderQtUI_la_includedir = $(includedir)/MoleCuilder/UIElements/256 254 libMolecuilderUI_la_CPPFLAGS = ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS} 257 libMolecuilderQtUI_la_CPPFLAGS = ${QT_CFLAGS} ${GLU_CXXFLAGS} ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS}258 255 libMolecuilderUI_la_LDFLAGS = $(AM_LDFLAGS) $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_RANDOM_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS) 259 libMolecuilderQtUI_la_LDFLAGS = $(AM_LDFLAGS) $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_RANDOM_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS) 256 260 257 # NOTE: ActionPrototypes BEFORE Actions! 261 258 # this is to ensure that static Action prototypes are instantiated after … … 280 277 $(BOOST_SYSTEM_LDFLAGS) $(BOOST_SYSTEM_LIBS) 281 278 282 libMolecuilderQtUI_la_LIBADD = \283 ${QT_LIBS} \284 -lQtOpenGL \285 ${GLU_LIBS}286 287 288 279 nobase_libMolecuilderUI_la_include_HEADERS = ${UIHEADER} 289 nobase_libMolecuilderQtUI_la_include_HEADERS = ${QTUIHEADER} $(QTUIUI_UIFILES)290 280 291 281 ## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la" … … 298 288 ## which are already listed elsewhere in a _HEADERS variable assignment. 299 289 libMolecuilderUI_la_SOURCES = ${UISOURCE} 300 libMolecuilderQtUI_la_SOURCES = ${QTUISOURCE}301 nodist_libMolecuilderQtUI_la_SOURCES =302 290 303 291 ## Instruct libtool to include ABI version information in the generated shared … … 305 293 ## that all version information is kept in one place. 306 294 libMolecuilderUI_la_LDFLAGS += -version-info $(MOLECUILDER_SO_VERSION) 307 libMolecuilderQtUI_la_LDFLAGS += -version-info $(MOLECUILDER_SO_VERSION)308 295 309 296 ## The generated configuration header is installed in its own subdirectory of … … 319 306 ## shipped with the source tarball. 320 307 #libMolecuilderUI_libincludedir = $(libdir)/MoleCuilder/include 321 #libMolecuilderQtUI_libincludedir = $(libdir)/MoleCuilder/include322 308 #nodist_libMolecuilderUI_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h 323 #nodist_libMolecuilderQtUI_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h324 309 325 310 ## Install the generated pkg-config file (.pc) into the expected location for … … 330 315 #pkgconfig_DATA = $(top_builddir)/MoleCuilder.pc 331 316 332 # This is the old stuff from branch molecuilderGUI which does not work 333 #%.h: %.ui 334 # $(UIC) -o $@ $< 335 # 336 #%.cpp: %.ui 337 # $(UIC) -o $@ -impl $*.h $< 317 if CONDQTGUI 318 lib_LTLIBRARIES += libMolecuilderQtUI.la 319 320 libMolecuilderQtUI_la_includedir = $(includedir)/MoleCuilder/UIElements/ 321 libMolecuilderQtUI_la_CPPFLAGS = ${QT_CFLAGS} ${GLU_CXXFLAGS} ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS} 322 libMolecuilderQtUI_la_LDFLAGS = $(AM_LDFLAGS) $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_RANDOM_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS) 323 324 libMolecuilderQtUI_la_LIBADD = \ 325 ${QT_LIBS} \ 326 -lQtOpenGL \ 327 ${GLU_LIBS} 328 329 nobase_libMolecuilderQtUI_la_include_HEADERS = ${QTUIHEADER} $(QTUIUI_UIFILES) 330 libMolecuilderQtUI_la_SOURCES = ${QTUISOURCE} 331 nodist_libMolecuilderQtUI_la_SOURCES = 332 libMolecuilderQtUI_la_LDFLAGS += -version-info $(MOLECUILDER_SO_VERSION) 333 #libMolecuilderQtUI_libincludedir = $(libdir)/MoleCuilder/include 334 #nodist_libMolecuilderQtUI_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h 338 335 339 336 BUILT_SOURCES += ui_dialoglight.h ui_changeposition.h 340 337 341 #noinst_HEADERS = dialoglight.h changeposition.h342 343 338 nodist_libMolecuilderQtUI_la_SOURCES += moc_dialoglight.cpp moc_changeposition.cpp 344 339 345 #libMolecuilderQtUI_la_SOURCES += dialoglight.cpp changeposition.cpp 340 MOSTLYCLEANFILES += \ 341 *.moc.cpp \ 342 moc_*.cpp \ 343 ui_*.h 346 344 347 345 ui_dialoglight.h: UIElements/Views/Qt4/dialoglight.ui … … 373 371 done; 374 372 375 MOSTLYCLEANFILES += \ 376 *.moc.cpp \ 377 moc_*.cpp \ 378 ui_*.h 379 373 endif -
tests/Makefile.am
rf3b8a5 rc015b3 1 SUBDIRS = \ 1 SUBDIRS = 2 3 SUBDIRS += \ 2 4 CodeChecks \ 3 5 regression \ … … 5 7 Tesselations 6 8 9 if CONDPYTHON 10 SUBDIRS += Python 11 endif 12 -
tests/Python/CommandHelp/testsuite-python-commandhelp.at
rf3b8a5 rc015b3 7 7 print pyMoleCuilder.CommandHelp("help") 8 8 ]]) 9 AT_CHECK([../../ Python/run pythontest.py], 0, [stdout], [ignore])9 AT_CHECK([../../run pythontest.py], 0, [stdout], [ignore]) 10 10 AT_CHECK([fgrep "Options available for action 'help':" stdout], 0, [ignore], [ignore]) 11 11 AT_CLEANUP -
tests/Python/ReturnValueActions/testsuite-python-returnvalueactions.at
rf3b8a5 rc015b3 12 12 sys.exit(1) 13 13 ]]) 14 AT_CHECK([../../ Python/run pythontest.py], 0, [stdout], [ignore])14 AT_CHECK([../../run pythontest.py], 0, [stdout], [ignore]) 15 15 AT_CHECK([fgrep "volume is 8000" stdout], 0, [ignore], [ignore]) 16 16 AT_CLEANUP -
tests/regression/Makefile.am
rf3b8a5 rc015b3 25 25 DISTCLEANFILES = atconfig 26 26 27 TESTSCRIPTS = \ 27 TESTSCRIPTS = 28 29 TESTSCRIPTS += \ 28 30 $(srcdir)/Atoms/testsuite-atoms.at \ 29 31 $(srcdir)/Atoms/Add/testsuite-atoms-add.at \ … … 128 130 $(srcdir)/Parser/Xyz/testsuite-parser-xyz-multiple-timesteps.at \ 129 131 $(srcdir)/Parser/Xyz/testsuite-parser-xyz-save.at \ 130 $(srcdir)/Python/testsuite-python.at \131 $(srcdir)/Python/AllActions/testsuite-python-allactions.at \132 $(srcdir)/Python/AllActions/testsuite-python-options_dat.at \133 $(srcdir)/Python/BoxMaker/testsuite-python-boxmaker.at \134 $(srcdir)/Python/CommandHelp/testsuite-python-commandhelp.at \135 $(srcdir)/Python/ReturnValueActions/testsuite-python-returnvalueactions.at \136 132 $(srcdir)/RandomNumbers/testsuite-randomnumbers.at \ 137 133 $(srcdir)/RandomNumbers/Distribution/testsuite-set-random-number-distribution.at \ … … 175 171 $(srcdir)/Tesselation/BigConvex/testsuite-tesselation-big-convex-envelope.at 176 172 177 178 173 max_jobs = 4 179 174 -
tests/regression/testsuite.at
rf3b8a5 rc015b3 15 15 # Use colored output with new-enough Autotest. 16 16 m4_ifdef([AT_COLOR_TESTS], [AT_COLOR_TESTS]) 17 18 m4_include(Python/testsuite-python.at)19 17 20 18 m4_include(Options/testsuite-options.at) -
utils/Makefile.am
rf3b8a5 rc015b3 1 BUILT_SOURCES = 2 CLEANFILES = 3 bin_SCRIPTS = 4 pyexec_SCRIPTS = 1 5 6 if CONDPYTHON 2 7 PYTHON_TOOLS = \ 3 8 boxmaker 9 endif 4 10 5 11 ${PYTHON_TOOLS}: python_wrapper 6 12 cp $< $@ 7 13 8 BUILT_SOURCES = ${PYTHON_TOOLS} 9 CLEANFILES = ${PYTHON_TOOLS} 10 bin_SCRIPTS = ${PYTHON_TOOLS} 11 12 pyexec_SCRIPTS = boxmaker.py 14 if CONDPYTHON 15 BUILT_SOURCES += ${PYTHON_TOOLS} 16 CLEANFILES += ${PYTHON_TOOLS} 17 bin_SCRIPTS += ${PYTHON_TOOLS} 18 pyexec_SCRIPTS += boxmaker.py 19 endif
Note:
See TracChangeset
for help on using the changeset viewer.