Skip to content
Snippets Groups Projects
Commit c16dee7b authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

ENH: superbuild: qt4 on msvc uses a wrapper script to configure and build

parent 79608724
No related branches found
No related tags found
No related merge requests found
......@@ -29,42 +29,37 @@ else()
STRING(REGEX REPLACE "/$" "" CMAKE_WIN_INSTALL_PREFIX ${SB_INSTALL_PREFIX})
STRING(REGEX REPLACE "/" "\\\\" CMAKE_WIN_INSTALL_PREFIX ${CMAKE_WIN_INSTALL_PREFIX})
if(MSVC)
configure_file(${CMAKE_SOURCE_DIR}/patches/${proj}/configure_qt4.bat.in
${CMAKE_BINARY_DIR}/configure_qt4.bat
@ONLY)
ExternalProject_Add(${proj}
PREFIX ${proj}
URL "http://download.qt-project.org/official_releases/qt/4.8/4.8.6/qt-everywhere-opensource-src-4.8.6.tar.gz"
URL_MD5 2edbe4d6c2eff33ef91732602f3518eb
BINARY_DIR ${QT4_SB_SRC}
INSTALL_DIR ${SB_INSTALL_PREFIX}
CONFIGURE_COMMAND
configure
-prefix ${CMAKE_WIN_INSTALL_PREFIX}
-opensource
-confirm-license
-release
-shared
-nomake demos
-nomake examples
-nomake tools
-no-phonon-backend
-no-phonon
-no-script
-no-scripttools
-no-multimedia
-no-webkit
-qt-sql-sqlite
-plugin-sql-sqlite
-no-nis
-no-qt3support
-system-zlib
-system-libpng
-system-libtiff
-system-libjpeg
#-system-sqlite
-L ${CMAKE_WIN_INSTALL_PREFIX}\\lib
-I ${CMAKE_WIN_INSTALL_PREFIX}\\include
DEPENDS ${${proj}_DEPENDENCIES}
)
ExternalProject_Add(${proj}
PREFIX ${proj}
URL "http://download.qt-project.org/official_releases/qt/4.8/4.8.6/qt-everywhere-opensource-src-4.8.6.tar.gz"
URL_MD5 2edbe4d6c2eff33ef91732602f3518eb
BINARY_DIR ${QT4_SB_SRC}
INSTALL_DIR ${SB_INSTALL_PREFIX}
CONFIGURE_COMMAND
configure_qt4.bat
PATCH_COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_BINARY_DIR}/configure_qt4.bat
${QT4_SB_SRC}
DEPENDS ${${proj}_DEPENDENCIES}
)
else()
ExternalProject_Add(${proj}
PREFIX ${proj}
URL "http://download.qt-project.org/official_releases/qt/4.8/4.8.6/qt-everywhere-opensource-src-4.8.6.tar.gz"
URL_MD5 2edbe4d6c2eff33ef91732602f3518eb
BINARY_DIR ${QT4_SB_SRC}
INSTALL_DIR ${SB_INSTALL_PREFIX}
CONFIGURE_COMMAND
configure -prefix ${CMAKE_WIN_INSTALL_PREFIX} -opensource -confirm-license -release -shared -nomake demos -nomake examples -nomake tools -no-phonon-backend -no-phonon -no-script -no-scripttools -no-multimedia -no-webkit -qt-sql-sqlite -plugin-sql-sqlite -no-nis -no-qt3support -system-zlib -system-libpng -system-libtiff -system-libjpeg -system-sqlite -L ${CMAKE_WIN_INSTALL_PREFIX}\\lib -I ${CMAKE_WIN_INSTALL_PREFIX}\\include
DEPENDS ${${proj}_DEPENDENCIES}
)
endif()
#copying Qt4 to have out-of-source build takes too much disk space
# ExternalProject_Add_Step(${proj} copy_source
......
set SB_SAVE_INCLUDE=%INCLUDE%
set SB_SAVE_LIB=%LIB%
set INCLUDE=%INCLUDE%;@CMAKE_WIN_INSTALL_PREFIX@\include
set LIB=%LIB%;@CMAKE_WIN_INSTALL_PREFIX@\lib
configure -prefix @CMAKE_WIN_INSTALL_PREFIX@ -opensource -confirm-license -release -shared -nomake demos -nomake examples -nomake tools -no-phonon-backend -no-phonon -no-script -no-scripttools -no-multimedia -no-webkit -qt-sql-sqlite -plugin-sql-sqlite -no-nis -no-qt3support -system-zlib -system-libpng -system-libtiff -system-libjpeg -system-sqlite -L @CMAKE_WIN_INSTALL_PREFIX@\lib -I @CMAKE_WIN_INSTALL_PREFIX@\include
set INCLUDE=%SB_SAVE_INCLUDE%
set LIB=%SB_SAVE_LIB%
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment