Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/9680_remove_qtassistant'
Browse files Browse the repository at this point in the history
Conflicts:
	Code/Mantid/docs/CMakeLists.txt

	re #9680
  • Loading branch information
NickDraper committed Jun 30, 2014
2 parents 8228dce + 4ae982b commit 9288ee5
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 30 deletions.
2 changes: 1 addition & 1 deletion Code/Mantid/Build/CMake/UseSystemQt4.cmake
Expand Up @@ -74,7 +74,7 @@ SET(QT_QAXSERVER_MODULE_DEPENDS QTGUI QTCORE)
SET(QT_QTSCRIPTTOOLS_MODULE_DEPENDS QTGUI QTCORE)

# Qt modules (in order of dependence)
FOREACH(module QT3SUPPORT QTOPENGL QTASSISTANT QTDESIGNER QTMOTIF QTNSPLUGIN
FOREACH(module QT3SUPPORT QTOPENGL QTDESIGNER QTMOTIF QTNSPLUGIN
QAXSERVER QAXCONTAINER QTSCRIPT QTSVG QTUITOOLS QTHELP
QTWEBKIT PHONON QTSCRIPTTOOLS QTGUI QTTEST QTDBUS QTXML QTSQL
QTXMLPATTERNS QTNETWORK QTCORE)
Expand Down
3 changes: 0 additions & 3 deletions Code/Mantid/Build/CMake/WindowsNSIS.cmake
Expand Up @@ -96,9 +96,6 @@
install ( DIRECTORY ${CMAKE_LIBRARY_PATH}/qt_plugins/imageformats ${CMAKE_LIBRARY_PATH}/qt_plugins/sqldrivers DESTINATION plugins/qtplugins
REGEX "^.*d4.dll$" EXCLUDE )
install ( FILES ${CMAKE_CURRENT_SOURCE_DIR}/Installers/WinInstaller/qt.conf DESTINATION bin )

# Copy assistant.exe
install ( FILES ${CMAKE_LIBRARY_PATH}/assistant.exe DESTINATION bin )

# Release deployments do modify enviromental variables, other deployments do not.
if(CPACK_PACKAGE_SUFFIX STREQUAL "")
Expand Down
@@ -1,6 +1,6 @@
Name: mantid-developer
Version: 1.1
Release: 4%{?dist}
Release: 5%{?dist}
Summary: Meta Package to install dependencies for Mantid Development

Group: Development/Tools
Expand Down Expand Up @@ -41,7 +41,6 @@ Requires: openssl-devel
Requires: texlive-latex
Requires: dvipng
Requires: mantidlibs-qt-devel
Requires: mantidlibs-qt-assistant
Requires: scl-utils

BuildArch: noarch
Expand Down
@@ -1,6 +1,6 @@
Name: mantid-developer
Version: 1.2
Release: 4%{?dist}
Release: 5%{?dist}
Summary: Meta Package to install dependencies for Mantid Development

Group: Development/Tools
Expand Down Expand Up @@ -41,7 +41,6 @@ Requires: openssl-devel
Requires: texlive-latex
Requires: dvipng
Requires: qt-devel
Requires: qt-assistant

BuildArch: noarch

Expand Down
@@ -1,6 +1,6 @@
Name: mantid-developer
Version: 1.3
Release: 7%{?dist}
Release: 8%{?dist}
Summary: Meta Package to install dependencies for Mantid Development

Group: Development/Tools
Expand Down Expand Up @@ -45,7 +45,6 @@ Requires: texlive-was
Requires: tex-preview
Requires: dvipng
Requires: qt-devel
Requires: qt-assistant
Requires: qtwebkit-devel

BuildArch: noarch
Expand Down
9 changes: 0 additions & 9 deletions Code/Mantid/CMakeLists.txt
Expand Up @@ -211,15 +211,6 @@ if ( ENABLE_CPACK )
set ( CPACK_RPM_PACKAGE_REQUIRES "${CPACK_RPM_PACKAGE_REQUIRES} scl-utils" )
endif()

# qt assistant is in different places in every distro
if ( "${UNIX_DIST}" MATCHES "RedHatEnterprise" )
set ( CPACK_RPM_PACKAGE_REQUIRES "${CPACK_RPM_PACKAGE_REQUIRES} qt4-x11" )
elseif ( "${UNIX_DIST}" MATCHES "Fedora" )
set ( CPACK_RPM_PACKAGE_REQUIRES "${CPACK_RPM_PACKAGE_REQUIRES} qt4-assistant" )
elseif ( "${UNIX_DIST}" MATCHES "SUSE LINUX" )
set ( CPACK_RPM_PACKAGE_REQUIRES "${CPACK_RPM_PACKAGE_REQUIRES} libqt4-devel-doc" )
endif ( "${UNIX_DIST}" MATCHES "RedHatEnterprise" )

if( "${UNIX_DIST}" MATCHES "Ubuntu" )
# common packages
set ( DEPENDS_LIST "libboost-date-time${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION},"
Expand Down
15 changes: 4 additions & 11 deletions Code/Mantid/docs/CMakeLists.txt
Expand Up @@ -32,7 +32,7 @@ if ( SPHINX_FOUND )
set ( DOCS_RUNNER_EXE ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/MantidPlot )
endif()

# qt-assistant target
# qthelp target
if (QT_QCOLLECTIONGENERATOR_EXECUTABLE)
set ( BUILDER qthelp )
set ( SPHINX_CONF_DIR ${SPHINX_BUILD_DIR}/conf/${BUILDER} )
Expand All @@ -48,7 +48,7 @@ if ( SPHINX_FOUND )
add_custom_command ( OUTPUT qthelp/MantidProject.qhc
COMMAND ${QT_QCOLLECTIONGENERATOR_EXECUTABLE} qthelp/MantidProject.qhcp
DEPENDS qthelp/MantidProject.qhcp
COMMENT "Compiling qt-assistant documentation")
COMMENT "Compiling Qt help documentation")

add_custom_target ( ${TARGET_PREFIX}-qthelp
DEPENDS qthelp/MantidProject.qhc ${SPHINX_CONF_DIR}/conf.py conf-qthelp.py )
Expand All @@ -59,7 +59,7 @@ if ( SPHINX_FOUND )
EXCLUDE_FROM_ALL 1)

else (QT_QCOLLECTIONGENERATOR_EXECUTABLE)
message (WARNING " Did not find qcollectiongenerator - cannot create qtassistant files")
message (WARNING " Did not find qcollectiongenerator - cannot create Qt help files")
endif ( QT_QCOLLECTIONGENERATOR_EXECUTABLE )

# HTML target
Expand Down Expand Up @@ -105,14 +105,7 @@ if ( SPHINX_FOUND )
if ( PACKAGE_DOCS )
set ( HTML_DOCS_DEST share/doc )
if ( QT_QCOLLECTIONGENERATOR_EXECUTABLE )
if (WIN32) # copy the assistant executable for windows 32 and 64
set (QTASSISTANT_EXE ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/assistant.exe)
add_custom_command( OUTPUT ${QTASSISTANT_EXE}
COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${CMAKE_LIBRARY_PATH}/assistant.exe
${QTASSISTANT_EXE} )
endif (WIN32)

# must "make qtassistant" before "make package" otherwise there will be a build failure
# must "make docs-qthelp" before "make package" otherwise there will be a build failure
install (FILES ${SPHINX_BUILD_DIR}/qthelp/MantidProject.qhc
${SPHINX_BUILD_DIR}/qthelp/MantidProject.qch
DESTINATION ${INBUNDLE}${HTML_DOCS_DEST} )
Expand Down

0 comments on commit 9288ee5

Please sign in to comment.