Commit 2cc6cfef authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

SuperBuild: STYLE: C-x h M-x indent-region

parent 7b86a143
INCLUDE_ONCE_MACRO(QT4)
SETUP_SUPERBUILD(PROJECT QT4)
message(STATUS " Using Qt4 SuperBuild version")
if(UNIX AND NOT APPLE)
message(STATUS " SuperBuild may fail to compile Qt4. If so, you should install it via package manager.")
endif()
SETUP_SUPERBUILD(PROJECT QT4)
message(STATUS " Using Qt4 SuperBuild version")
if(UNIX AND NOT APPLE)
message(STATUS " SuperBuild may fail to compile Qt4. If so, you should install it via package manager.")
endif()
if(NOT DEFINED git_protocol)
set(git_protocol "git")
endif()
if(NOT DEFINED git_protocol)
set(git_protocol "git")
endif()
#NOTE: make sure your superbuild install directory does not contain any
#Qt files from previous install of superbuild QT.
# declare dependencies
ADDTO_DEPENDENCIES_IF_NOT_SYSTEM(QT4 ZLIB SQLITE FREETYPE)
#NOTE: make sure your superbuild install directory does not contain any
#Qt files from previous install of superbuild QT.
# declare dependencies
ADDTO_DEPENDENCIES_IF_NOT_SYSTEM(QT4 ZLIB SQLITE FREETYPE)
#use system libs always for Qt4 as we build them from source or have already in system
set(QT4_SB_CONFIG)
#RK: building faling on mac. png include is in a macframework
if(USE_SYSTEM_PNG)
set(QT4_SB_CONFIG "-I ${PNG_PNG_INCLUDE_DIR}")
endif()
#use system libs always for Qt4 as we build them from source or have already in system
set(QT4_SB_CONFIG)
#RK: building faling on mac. png include is in a macframework
if(USE_SYSTEM_PNG)
set(QT4_SB_CONFIG "-I ${PNG_PNG_INCLUDE_DIR}")
endif()
if(UNIX)
set(QT4_SB_CONFIG "${QT4_SB_CONFIG} -no-openssl")
if(APPLE)
set(QT4_SB_CONFIG "${QT4_SB_CONFIG} -no-framework")
else() #Linux
set(QT4_SB_CONFIG "${QT4_SB_CONFIG} -no-sm -no-xrender -no-fontconfig -no-gtkstyle -no-glib")
endif()
endif()
STRING(REGEX REPLACE "/$" "" CMAKE_WIN_INSTALL_PREFIX ${SB_INSTALL_PREFIX})
STRING(REGEX REPLACE "/" "\\\\" CMAKE_WIN_INSTALL_PREFIX ${CMAKE_WIN_INSTALL_PREFIX})
if(UNIX)
set(QT4_SB_CONFIG "${QT4_SB_CONFIG} -no-openssl")
if(APPLE)
set(QT4_SB_CONFIG "${QT4_SB_CONFIG} -no-framework")
else() #Linux
set(QT4_SB_CONFIG "${QT4_SB_CONFIG} -no-sm -no-xrender -no-fontconfig -no-gtkstyle -no-glib")
endif()
endif()
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/QT4/configure_qt4.bat.in
${CMAKE_BINARY_DIR}/configure_qt4.bat
@ONLY)
if(MSVC)
configure_file(
${CMAKE_SOURCE_DIR}/patches/QT4/configure_qt4.bat.in
${CMAKE_BINARY_DIR}/configure_qt4.bat
@ONLY)
ExternalProject_Add(QT4
PREFIX QT4
URL "http://download.qt.io/official_releases/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz"
URL_MD5 d990ee66bf7ab0c785589776f35ba6ad
BINARY_DIR ${QT4_SB_SRC}
INSTALL_DIR ${SB_INSTALL_PREFIX}
DOWNLOAD_DIR ${DOWNLOAD_LOCATION}
PATCH_COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_BINARY_DIR}/configure_qt4.bat
${QT4_SB_SRC}
CONFIGURE_COMMAND
configure_qt4.bat
DEPENDS ${QT4_DEPENDENCIES} )
ExternalProject_Add(QT4
PREFIX QT4
URL "http://download.qt.io/official_releases/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz"
URL_MD5 d990ee66bf7ab0c785589776f35ba6ad
BINARY_DIR ${QT4_SB_SRC}
INSTALL_DIR ${SB_INSTALL_PREFIX}
DOWNLOAD_DIR ${DOWNLOAD_LOCATION}
PATCH_COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_BINARY_DIR}/configure_qt4.bat
${QT4_SB_SRC}
CONFIGURE_COMMAND
configure_qt4.bat
DEPENDS ${QT4_DEPENDENCIES} )
ExternalProject_Add_Step(QT4 _jpeg_lib_name
COMMAND
${CMAKE_COMMAND} -E copy
${CMAKE_SOURCE_DIR}/patches/QT4/qjpeghandler.pri
${QT4_SB_SRC}/src/gui/image/
DEPENDEES patch update
DEPENDERS configure )
ExternalProject_Add_Step(QT4 _jpeg_lib_name
COMMAND
${CMAKE_COMMAND} -E copy
${CMAKE_SOURCE_DIR}/patches/QT4/qjpeghandler.pri
${QT4_SB_SRC}/src/gui/image/
DEPENDEES patch update
DEPENDERS configure )
else()
configure_file(
${CMAKE_SOURCE_DIR}/patches/QT4/configure_qt4.sh.in
${CMAKE_BINARY_DIR}/configure_qt4.sh
@ONLY)
else()
configure_file(
${CMAKE_SOURCE_DIR}/patches/QT4/configure_qt4.sh.in
${CMAKE_BINARY_DIR}/configure_qt4.sh
@ONLY)
ExternalProject_Add(QT4
PREFIX QT4
URL "http://download.qt.io/official_releases/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz"
URL_MD5 d990ee66bf7ab0c785589776f35ba6ad
BINARY_DIR ${QT4_SB_SRC}
INSTALL_DIR ${SB_INSTALL_PREFIX}
DOWNLOAD_DIR ${DOWNLOAD_LOCATION}
PATCH_COMMAND
${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/configure_qt4.sh
${QT4_SB_SRC}
CONFIGURE_COMMAND
${CMAKE_BINARY_DIR}/configure_qt4.sh
DEPENDS ${QT4_DEPENDENCIES}
)
ExternalProject_Add(QT4
PREFIX QT4
URL "http://download.qt.io/official_releases/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz"
URL_MD5 d990ee66bf7ab0c785589776f35ba6ad
BINARY_DIR ${QT4_SB_SRC}
INSTALL_DIR ${SB_INSTALL_PREFIX}
DOWNLOAD_DIR ${DOWNLOAD_LOCATION}
PATCH_COMMAND
${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/configure_qt4.sh
${QT4_SB_SRC}
CONFIGURE_COMMAND
${CMAKE_BINARY_DIR}/configure_qt4.sh
DEPENDS ${QT4_DEPENDENCIES}
)
endif()
endif()
if(APPLE)
SUPERBUILD_PATCH_SOURCE(QT4)
endif()
if(APPLE)
SUPERBUILD_PATCH_SOURCE(QT4)
endif()
set(_SB_QT_QMAKE_EXECUTABLE ${SB_INSTALL_PREFIX}/bin/qmake)
set(_SB_QT_QMAKE_EXECUTABLE ${SB_INSTALL_PREFIX}/bin/qmake)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment