Changeset c015b3 for src/UIElements


Ignore:
Timestamp:
Dec 28, 2011, 3:24:57 PM (13 years ago)
Author:
Frederik Heber <heber@…>
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)
Message:

Added enable-switches for Qt-based GUI and python module and scripts.

  • note that encapsulation in AS_IF is absolutely required as otherwise lateron checks will produce strange errors as required checks reside in an unseen if ..; then branch, initiated by AC_PROG() ... or other contained macros.
  • Added AM_CONDITIIONAL's to modify Makefile.ams depending on above enable switches.
  • AM_COND_IF controls whether certain Makefile's are produced or not.
  • moved Python regression tests into own folder to control whether they are executed or not.
  • molecuildergui and libMolecuilderQtUI are only compiled with qtgui enabled.
  • same for pyMoleCuilder and its scripts only when python enabled.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Makefile.am

    rf3b8a5 rc015b3  
    250250  UIElements/Qt4/Pipe/QtQueryListPipe.hpp
    251251
    252 lib_LTLIBRARIES += libMolecuilderUI.la \
    253   libMolecuilderQtUI.la
     252lib_LTLIBRARIES += libMolecuilderUI.la
    254253libMolecuilderUI_la_includedir = $(includedir)/MoleCuilder/UIElements/
    255 libMolecuilderQtUI_la_includedir = $(includedir)/MoleCuilder/UIElements/
    256254libMolecuilderUI_la_CPPFLAGS = ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS}
    257 libMolecuilderQtUI_la_CPPFLAGS = ${QT_CFLAGS} ${GLU_CXXFLAGS} ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS}
    258255libMolecuilderUI_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
    260257# NOTE: ActionPrototypes BEFORE Actions!
    261258# this is to ensure that static Action prototypes are instantiated after
     
    280277        $(BOOST_SYSTEM_LDFLAGS) $(BOOST_SYSTEM_LIBS)
    281278
    282 libMolecuilderQtUI_la_LIBADD = \
    283         ${QT_LIBS} \
    284         -lQtOpenGL \
    285         ${GLU_LIBS}
    286 
    287 
    288279nobase_libMolecuilderUI_la_include_HEADERS = ${UIHEADER}
    289 nobase_libMolecuilderQtUI_la_include_HEADERS = ${QTUIHEADER} $(QTUIUI_UIFILES)
    290280
    291281## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
     
    298288## which are already listed elsewhere in a _HEADERS variable assignment.
    299289libMolecuilderUI_la_SOURCES = ${UISOURCE}
    300 libMolecuilderQtUI_la_SOURCES = ${QTUISOURCE}
    301 nodist_libMolecuilderQtUI_la_SOURCES =
    302290
    303291## Instruct libtool to include ABI version information in the generated shared
     
    305293## that all version information is kept in one place.
    306294libMolecuilderUI_la_LDFLAGS += -version-info $(MOLECUILDER_SO_VERSION)
    307 libMolecuilderQtUI_la_LDFLAGS += -version-info $(MOLECUILDER_SO_VERSION)
    308295
    309296## The generated configuration header is installed in its own subdirectory of
     
    319306## shipped with the source tarball.
    320307#libMolecuilderUI_libincludedir = $(libdir)/MoleCuilder/include
    321 #libMolecuilderQtUI_libincludedir = $(libdir)/MoleCuilder/include
    322308#nodist_libMolecuilderUI_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
    323 #nodist_libMolecuilderQtUI_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
    324309
    325310## Install the generated pkg-config file (.pc) into the expected location for
     
    330315#pkgconfig_DATA = $(top_builddir)/MoleCuilder.pc
    331316
    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 $<
     317if CONDQTGUI
     318lib_LTLIBRARIES += libMolecuilderQtUI.la
     319
     320libMolecuilderQtUI_la_includedir = $(includedir)/MoleCuilder/UIElements/
     321libMolecuilderQtUI_la_CPPFLAGS = ${QT_CFLAGS} ${GLU_CXXFLAGS} ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS}
     322libMolecuilderQtUI_la_LDFLAGS = $(AM_LDFLAGS) $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_RANDOM_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS)
     323
     324libMolecuilderQtUI_la_LIBADD = \
     325        ${QT_LIBS} \
     326        -lQtOpenGL \
     327        ${GLU_LIBS}
     328
     329nobase_libMolecuilderQtUI_la_include_HEADERS = ${QTUIHEADER} $(QTUIUI_UIFILES)
     330libMolecuilderQtUI_la_SOURCES = ${QTUISOURCE}
     331nodist_libMolecuilderQtUI_la_SOURCES =
     332libMolecuilderQtUI_la_LDFLAGS += -version-info $(MOLECUILDER_SO_VERSION)
     333#libMolecuilderQtUI_libincludedir = $(libdir)/MoleCuilder/include
     334#nodist_libMolecuilderQtUI_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
    338335
    339336BUILT_SOURCES += ui_dialoglight.h ui_changeposition.h
    340337
    341 #noinst_HEADERS = dialoglight.h changeposition.h
    342 
    343338nodist_libMolecuilderQtUI_la_SOURCES += moc_dialoglight.cpp moc_changeposition.cpp
    344339
    345 #libMolecuilderQtUI_la_SOURCES += dialoglight.cpp changeposition.cpp
     340MOSTLYCLEANFILES += \
     341        *.moc.cpp \
     342        moc_*.cpp \
     343        ui_*.h
    346344
    347345ui_dialoglight.h: UIElements/Views/Qt4/dialoglight.ui
     
    373371        done;
    374372
    375 MOSTLYCLEANFILES += \
    376         *.moc.cpp \
    377         moc_*.cpp \
    378         ui_*.h
    379 
     373endif
Note: See TracChangeset for help on using the changeset viewer.