qt56: remove unused obsolete expressions
This commit is contained in:
parent
91b362c5cf
commit
9e05d61dd7
@ -1,384 +0,0 @@
|
|||||||
Index: qtbase-opensource-src-5.6.1/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.1.orig/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
|
|
||||||
+++ qtbase-opensource-src-5.6.1/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
|
|
||||||
@@ -9,30 +9,6 @@ if (CMAKE_VERSION VERSION_LESS 3.0.0)
|
|
||||||
endif()
|
|
||||||
!!ENDIF
|
|
||||||
|
|
||||||
-!!IF !isEmpty(CMAKE_USR_MOVE_WORKAROUND)
|
|
||||||
-!!IF !isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
|
|
||||||
-set(_qt5$${CMAKE_MODULE_NAME}_install_prefix \"$$[QT_INSTALL_PREFIX]\")
|
|
||||||
-!!ELSE
|
|
||||||
-get_filename_component(_IMPORT_PREFIX \"${CMAKE_CURRENT_LIST_FILE}\" PATH)
|
|
||||||
-# Use original install prefix when loaded through a
|
|
||||||
-# cross-prefix symbolic link such as /lib -> /usr/lib.
|
|
||||||
-get_filename_component(_realCurr \"${_IMPORT_PREFIX}\" REALPATH)
|
|
||||||
-get_filename_component(_realOrig \"$$CMAKE_INSTALL_LIBS_DIR/cmake/Qt5$${CMAKE_MODULE_NAME}\" REALPATH)
|
|
||||||
-if(_realCurr STREQUAL _realOrig)
|
|
||||||
- get_filename_component(_qt5$${CMAKE_MODULE_NAME}_install_prefix \"$$CMAKE_INSTALL_LIBS_DIR/$${CMAKE_RELATIVE_INSTALL_LIBS_DIR}\" ABSOLUTE)
|
|
||||||
-else()
|
|
||||||
- get_filename_component(_qt5$${CMAKE_MODULE_NAME}_install_prefix \"${CMAKE_CURRENT_LIST_DIR}/$${CMAKE_RELATIVE_INSTALL_DIR}\" ABSOLUTE)
|
|
||||||
-endif()
|
|
||||||
-unset(_realOrig)
|
|
||||||
-unset(_realCurr)
|
|
||||||
-unset(_IMPORT_PREFIX)
|
|
||||||
-!!ENDIF
|
|
||||||
-!!ELIF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
|
|
||||||
-get_filename_component(_qt5$${CMAKE_MODULE_NAME}_install_prefix \"${CMAKE_CURRENT_LIST_DIR}/$${CMAKE_RELATIVE_INSTALL_DIR}\" ABSOLUTE)
|
|
||||||
-!!ELSE
|
|
||||||
-set(_qt5$${CMAKE_MODULE_NAME}_install_prefix \"$$[QT_INSTALL_PREFIX]\")
|
|
||||||
-!!ENDIF
|
|
||||||
-
|
|
||||||
!!IF !equals(TEMPLATE, aux)
|
|
||||||
# For backwards compatibility only. Use Qt5$${CMAKE_MODULE_NAME}_VERSION instead.
|
|
||||||
set(Qt5$${CMAKE_MODULE_NAME}_VERSION_STRING "$$eval(QT.$${MODULE}.MAJOR_VERSION).$$eval(QT.$${MODULE}.MINOR_VERSION).$$eval(QT.$${MODULE}.PATCH_VERSION)")
|
|
||||||
@@ -59,7 +35,10 @@ macro(_populate_$${CMAKE_MODULE_NAME}_ta
|
|
||||||
set_property(TARGET Qt5::$${CMAKE_MODULE_NAME} APPEND PROPERTY IMPORTED_CONFIGURATIONS ${Configuration})
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_DLL_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
|
|
||||||
+ set(imported_location \"@NIX_OUT@/$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
|
|
||||||
+ if(NOT EXISTS \"${imported_location}\")
|
|
||||||
+ set(imported_location \"@NIX_DEV@/$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
|
|
||||||
+ endif()
|
|
||||||
!!ELSE
|
|
||||||
set(imported_location \"$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
|
|
||||||
!!ENDIF
|
|
||||||
@@ -74,45 +53,17 @@ macro(_populate_$${CMAKE_MODULE_NAME}_ta
|
|
||||||
\"IMPORTED_LINK_INTERFACE_LIBRARIES_${Configuration}\" \"${_Qt5$${CMAKE_MODULE_NAME}_LIB_DEPENDENCIES}\"
|
|
||||||
)
|
|
||||||
|
|
||||||
-!!IF !isEmpty(CMAKE_WINDOWS_BUILD)
|
|
||||||
-!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_implib \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}${IMPLIB_LOCATION}\")
|
|
||||||
-!!ELSE
|
|
||||||
- set(imported_implib \"IMPORTED_IMPLIB_${Configuration}\" \"$${CMAKE_LIB_DIR}${IMPLIB_LOCATION}\")
|
|
||||||
-!!ENDIF
|
|
||||||
- _qt5_$${CMAKE_MODULE_NAME}_check_file_exists(${imported_implib})
|
|
||||||
- if(NOT \"${IMPLIB_LOCATION}\" STREQUAL \"\")
|
|
||||||
- set_target_properties(Qt5::$${CMAKE_MODULE_NAME} PROPERTIES
|
|
||||||
- \"IMPORTED_IMPLIB_${Configuration}\" ${imported_implib}
|
|
||||||
- )
|
|
||||||
- endif()
|
|
||||||
-!!ENDIF
|
|
||||||
endmacro()
|
|
||||||
!!ENDIF
|
|
||||||
|
|
||||||
if (NOT TARGET Qt5::$${CMAKE_MODULE_NAME})
|
|
||||||
|
|
||||||
!!IF !no_module_headers
|
|
||||||
-!!IF !isEmpty(CMAKE_BUILD_IS_FRAMEWORK)
|
|
||||||
- set(_Qt5$${CMAKE_MODULE_NAME}_OWN_INCLUDE_DIRS
|
|
||||||
- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}Qt$${CMAKE_MODULE_NAME}.framework\"
|
|
||||||
- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}Qt$${CMAKE_MODULE_NAME}.framework/Headers\"
|
|
||||||
- )
|
|
||||||
-!!IF isEmpty(CMAKE_NO_PRIVATE_INCLUDES)
|
|
||||||
- set(Qt5$${CMAKE_MODULE_NAME}_PRIVATE_INCLUDE_DIRS
|
|
||||||
- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}Qt$${CMAKE_MODULE_NAME}.framework/Versions/$$section(VERSION, ., 0, 0)/Headers/$$VERSION/\"
|
|
||||||
- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}Qt$${CMAKE_MODULE_NAME}.framework/Versions/$$section(VERSION, ., 0, 0)/Headers/$$VERSION/$${MODULE_INCNAME}\"
|
|
||||||
- )
|
|
||||||
-!!ELSE
|
|
||||||
- set(Qt5$${CMAKE_MODULE_NAME}_PRIVATE_INCLUDE_DIRS \"\")
|
|
||||||
-!!ENDIF
|
|
||||||
-!!ELSE
|
|
||||||
!!IF isEmpty(CMAKE_INCLUDE_DIR_IS_ABSOLUTE)
|
|
||||||
- set(_Qt5$${CMAKE_MODULE_NAME}_OWN_INCLUDE_DIRS \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$$CMAKE_INCLUDE_DIR\" \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_INCLUDE_DIR}$${MODULE_INCNAME}\")
|
|
||||||
+ set(_Qt5$${CMAKE_MODULE_NAME}_OWN_INCLUDE_DIRS \"@NIX_OUT@/lib\" \"@NIX_OUT@/lib/$${MODULE_INCNAME}.framework/Headers\")
|
|
||||||
!!IF isEmpty(CMAKE_NO_PRIVATE_INCLUDES)
|
|
||||||
set(Qt5$${CMAKE_MODULE_NAME}_PRIVATE_INCLUDE_DIRS
|
|
||||||
- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_INCLUDE_DIR}$${MODULE_INCNAME}/$$VERSION\"
|
|
||||||
- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_INCLUDE_DIR}$${MODULE_INCNAME}/$$VERSION/$${MODULE_INCNAME}\"
|
|
||||||
+ \"\"
|
|
||||||
)
|
|
||||||
!!ELSE
|
|
||||||
set(Qt5$${CMAKE_MODULE_NAME}_PRIVATE_INCLUDE_DIRS \"\")
|
|
||||||
@@ -128,7 +80,7 @@ if (NOT TARGET Qt5::$${CMAKE_MODULE_NAME
|
|
||||||
set(Qt5$${CMAKE_MODULE_NAME}_PRIVATE_INCLUDE_DIRS \"\")
|
|
||||||
!!ENDIF
|
|
||||||
!!ENDIF
|
|
||||||
-!!ENDIF
|
|
||||||
+
|
|
||||||
!!IF !isEmpty(CMAKE_ADD_SOURCE_INCLUDE_DIRS)
|
|
||||||
include(\"${CMAKE_CURRENT_LIST_DIR}/ExtraSourceIncludes.cmake\" OPTIONAL)
|
|
||||||
!!ENDIF
|
|
||||||
@@ -253,28 +205,19 @@ if (NOT TARGET Qt5::$${CMAKE_MODULE_NAME
|
|
||||||
|
|
||||||
!!IF !isEmpty(CMAKE_FIND_OTHER_LIBRARY_BUILD)
|
|
||||||
!!IF isEmpty(CMAKE_DEBUG_TYPE)
|
|
||||||
-!!IF !isEmpty(CMAKE_STATIC_WINDOWS_BUILD)
|
|
||||||
-!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
|
|
||||||
- if (EXISTS \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" )
|
|
||||||
-!!ELSE // CMAKE_LIB_DIR_IS_ABSOLUTE
|
|
||||||
- if (EXISTS \"$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" )
|
|
||||||
-!!ENDIF // CMAKE_LIB_DIR_IS_ABSOLUTE
|
|
||||||
- _populate_$${CMAKE_MODULE_NAME}_target_properties(DEBUG \"$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" \"\" )
|
|
||||||
-!!ELSE // CMAKE_STATIC_WINDOWS_BUILD
|
|
||||||
if (EXISTS
|
|
||||||
!!IF isEmpty(CMAKE_DLL_DIR_IS_ABSOLUTE)
|
|
||||||
- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_DLL_DIR}$${CMAKE_LIB_FILE_LOCATION_DEBUG}\"
|
|
||||||
+ \"@NIX_OUT@/$${CMAKE_DLL_DIR}$${CMAKE_LIB_FILE_LOCATION_DEBUG}\"
|
|
||||||
!!ELSE
|
|
||||||
\"$${CMAKE_LIB_FILE_LOCATION_DEBUG}\"
|
|
||||||
!!ENDIF
|
|
||||||
AND EXISTS
|
|
||||||
!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
|
|
||||||
- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" )
|
|
||||||
+ \"@NIX_DEV@/$${CMAKE_LIB_DIR}$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" )
|
|
||||||
!!ELSE
|
|
||||||
\"$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" )
|
|
||||||
!!ENDIF
|
|
||||||
_populate_$${CMAKE_MODULE_NAME}_target_properties(DEBUG \"$${CMAKE_LIB_FILE_LOCATION_DEBUG}\" \"$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" )
|
|
||||||
-!!ENDIF // CMAKE_STATIC_WINDOWS_BUILD
|
|
||||||
endif()
|
|
||||||
!!ENDIF // CMAKE_DEBUG_TYPE
|
|
||||||
!!ENDIF // CMAKE_FIND_OTHER_LIBRARY_BUILD
|
|
||||||
@@ -282,36 +225,23 @@ if (NOT TARGET Qt5::$${CMAKE_MODULE_NAME
|
|
||||||
!!ENDIF // CMAKE_RELEASE_TYPE
|
|
||||||
|
|
||||||
!!IF !isEmpty(CMAKE_DEBUG_TYPE)
|
|
||||||
-!!IF !isEmpty(CMAKE_STATIC_WINDOWS_BUILD)
|
|
||||||
- _populate_$${CMAKE_MODULE_NAME}_target_properties(DEBUG \"$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" \"\" )
|
|
||||||
-!!ELSE
|
|
||||||
_populate_$${CMAKE_MODULE_NAME}_target_properties(DEBUG \"$${CMAKE_LIB_FILE_LOCATION_DEBUG}\" \"$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" )
|
|
||||||
-!!ENDIF // CMAKE_STATIC_WINDOWS_BUILD
|
|
||||||
|
|
||||||
!!IF !isEmpty(CMAKE_FIND_OTHER_LIBRARY_BUILD)
|
|
||||||
!!IF isEmpty(CMAKE_RELEASE_TYPE)
|
|
||||||
-!!IF !isEmpty(CMAKE_STATIC_WINDOWS_BUILD)
|
|
||||||
-!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
|
|
||||||
- if (EXISTS \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" )
|
|
||||||
-!!ELSE // CMAKE_LIB_DIR_IS_ABSOLUTE
|
|
||||||
- if (EXISTS \"$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" )
|
|
||||||
-!!ENDIF // CMAKE_LIB_DIR_IS_ABSOLUTE
|
|
||||||
- _populate_$${CMAKE_MODULE_NAME}_target_properties(RELEASE \"$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" \"\" )
|
|
||||||
-!!ELSE // CMAKE_STATIC_WINDOWS_BUILD
|
|
||||||
if (EXISTS
|
|
||||||
!!IF isEmpty(CMAKE_DLL_DIR_IS_ABSOLUTE)
|
|
||||||
- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_DLL_DIR}$${CMAKE_LIB_FILE_LOCATION_RELEASE}\"
|
|
||||||
+ \"@NIX_OUT@/$${CMAKE_DLL_DIR}$${CMAKE_LIB_FILE_LOCATION_RELEASE}\"
|
|
||||||
!!ELSE
|
|
||||||
\"$${CMAKE_LIB_FILE_LOCATION_RELEASE}\"
|
|
||||||
!!ENDIF
|
|
||||||
AND EXISTS
|
|
||||||
!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
|
|
||||||
- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" )
|
|
||||||
+ \"@NIX_DEV@/$${CMAKE_LIB_DIR}$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" )
|
|
||||||
!!ELSE
|
|
||||||
\"$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" )
|
|
||||||
!!ENDIF
|
|
||||||
_populate_$${CMAKE_MODULE_NAME}_target_properties(RELEASE \"$${CMAKE_LIB_FILE_LOCATION_RELEASE}\" \"$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" )
|
|
||||||
-!!ENDIF // CMAKE_STATIC_WINDOWS_BUILD
|
|
||||||
endif()
|
|
||||||
!!ENDIF // CMAKE_RELEASE_TYPE
|
|
||||||
!!ENDIF // CMAKE_FIND_OTHER_LIBRARY_BUILD
|
|
||||||
@@ -328,11 +258,7 @@ if (NOT TARGET Qt5::$${CMAKE_MODULE_NAME
|
|
||||||
macro(_populate_$${CMAKE_MODULE_NAME}_plugin_properties Plugin Configuration PLUGIN_LOCATION)
|
|
||||||
set_property(TARGET Qt5::${Plugin} APPEND PROPERTY IMPORTED_CONFIGURATIONS ${Configuration})
|
|
||||||
|
|
||||||
-!!IF isEmpty(CMAKE_PLUGIN_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_PLUGIN_DIR}${PLUGIN_LOCATION}\")
|
|
||||||
-!!ELSE
|
|
||||||
- set(imported_location \"$${CMAKE_PLUGIN_DIR}${PLUGIN_LOCATION}\")
|
|
||||||
-!!ENDIF
|
|
||||||
+ set(imported_location \"${PLUGIN_LOCATION}\")
|
|
||||||
_qt5_$${CMAKE_MODULE_NAME}_check_file_exists(${imported_location})
|
|
||||||
set_target_properties(Qt5::${Plugin} PROPERTIES
|
|
||||||
\"IMPORTED_LOCATION_${Configuration}\" ${imported_location}
|
|
||||||
Index: qtbase-opensource-src-5.6.1/src/gui/Qt5GuiConfigExtras.cmake.in
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.1.orig/src/gui/Qt5GuiConfigExtras.cmake.in
|
|
||||||
+++ qtbase-opensource-src-5.6.1/src/gui/Qt5GuiConfigExtras.cmake.in
|
|
||||||
@@ -2,7 +2,7 @@
|
|
||||||
!!IF !isEmpty(CMAKE_ANGLE_EGL_DLL_RELEASE)
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_INCLUDE_DIR_IS_ABSOLUTE)
|
|
||||||
-set(Qt5Gui_EGL_INCLUDE_DIRS \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$$CMAKE_INCLUDE_DIR/QtANGLE\")
|
|
||||||
+set(Qt5Gui_EGL_INCLUDE_DIRS \"@NIX_DEV@/$$CMAKE_INCLUDE_DIR/QtANGLE\")
|
|
||||||
!!ELSE
|
|
||||||
set(Qt5Gui_EGL_INCLUDE_DIRS \"$$CMAKE_INCLUDE_DIR/QtANGLE\")
|
|
||||||
!!ENDIF
|
|
||||||
@@ -17,13 +17,13 @@ macro(_populate_qt5gui_gl_target_propert
|
|
||||||
set_property(TARGET Qt5::${TargetName} APPEND PROPERTY IMPORTED_CONFIGURATIONS ${Configuration})
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_DLL_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5Gui_install_prefix}/$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
|
|
||||||
+ set(imported_location \"@NIX_OUT@/$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
|
|
||||||
!!ELSE
|
|
||||||
set(imported_location \"$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
|
|
||||||
!!ENDIF
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_implib \"${_qt5Gui_install_prefix}/$${CMAKE_LIB_DIR}${IMPLIB_LOCATION}\")
|
|
||||||
+ set(imported_implib \"@NIX_DEV@/$${CMAKE_LIB_DIR}${IMPLIB_LOCATION}\")
|
|
||||||
!!ELSE
|
|
||||||
set(imported_implib \"$${CMAKE_LIB_DIR}${IMPLIB_LOCATION}\")
|
|
||||||
!!ENDIF
|
|
||||||
Index: qtbase-opensource-src-5.6.1/src/widgets/Qt5WidgetsConfigExtras.cmake.in
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.1.orig/src/widgets/Qt5WidgetsConfigExtras.cmake.in
|
|
||||||
+++ qtbase-opensource-src-5.6.1/src/widgets/Qt5WidgetsConfigExtras.cmake.in
|
|
||||||
@@ -3,7 +3,7 @@ if (NOT TARGET Qt5::uic)
|
|
||||||
add_executable(Qt5::uic IMPORTED)
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5Widgets_install_prefix}/$${CMAKE_BIN_DIR}uic$$CMAKE_BIN_SUFFIX\")
|
|
||||||
+ set(imported_location \"@NIX_DEV@/$${CMAKE_BIN_DIR}uic$$CMAKE_BIN_SUFFIX\")
|
|
||||||
!!ELSE
|
|
||||||
set(imported_location \"$${CMAKE_BIN_DIR}uic$$CMAKE_BIN_SUFFIX\")
|
|
||||||
!!ENDIF
|
|
||||||
Index: qtbase-opensource-src-5.6.1/src/corelib/Qt5CoreConfigExtras.cmake.in
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.1.orig/src/corelib/Qt5CoreConfigExtras.cmake.in
|
|
||||||
+++ qtbase-opensource-src-5.6.1/src/corelib/Qt5CoreConfigExtras.cmake.in
|
|
||||||
@@ -3,7 +3,7 @@ if (NOT TARGET Qt5::qmake)
|
|
||||||
add_executable(Qt5::qmake IMPORTED)
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5Core_install_prefix}/$${CMAKE_BIN_DIR}qmake$$CMAKE_BIN_SUFFIX\")
|
|
||||||
+ set(imported_location \"@NIX_DEV@/$${CMAKE_BIN_DIR}qmake$$CMAKE_BIN_SUFFIX\")
|
|
||||||
!!ELSE
|
|
||||||
set(imported_location \"$${CMAKE_BIN_DIR}qmake$$CMAKE_BIN_SUFFIX\")
|
|
||||||
!!ENDIF
|
|
||||||
@@ -18,7 +18,7 @@ if (NOT TARGET Qt5::moc)
|
|
||||||
add_executable(Qt5::moc IMPORTED)
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5Core_install_prefix}/$${CMAKE_BIN_DIR}moc$$CMAKE_BIN_SUFFIX\")
|
|
||||||
+ set(imported_location \"@NIX_DEV@/$${CMAKE_BIN_DIR}moc$$CMAKE_BIN_SUFFIX\")
|
|
||||||
!!ELSE
|
|
||||||
set(imported_location \"$${CMAKE_BIN_DIR}moc$$CMAKE_BIN_SUFFIX\")
|
|
||||||
!!ENDIF
|
|
||||||
@@ -35,7 +35,7 @@ if (NOT TARGET Qt5::rcc)
|
|
||||||
add_executable(Qt5::rcc IMPORTED)
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5Core_install_prefix}/$${CMAKE_BIN_DIR}rcc$$CMAKE_BIN_SUFFIX\")
|
|
||||||
+ set(imported_location \"@NIX_DEV@/$${CMAKE_BIN_DIR}rcc$$CMAKE_BIN_SUFFIX\")
|
|
||||||
!!ELSE
|
|
||||||
set(imported_location \"$${CMAKE_BIN_DIR}rcc$$CMAKE_BIN_SUFFIX\")
|
|
||||||
!!ENDIF
|
|
||||||
@@ -131,7 +131,7 @@ if (NOT TARGET Qt5::WinMain)
|
|
||||||
!!IF !isEmpty(CMAKE_RELEASE_TYPE)
|
|
||||||
set_property(TARGET Qt5::WinMain APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
|
||||||
!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5Core_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_RELEASE}\")
|
|
||||||
+ set(imported_location \"@NIX_DEV@/$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_RELEASE}\")
|
|
||||||
!!ELSE
|
|
||||||
set(imported_location \"$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_RELEASE}\")
|
|
||||||
!!ENDIF
|
|
||||||
@@ -145,7 +145,7 @@ if (NOT TARGET Qt5::WinMain)
|
|
||||||
set_property(TARGET Qt5::WinMain APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5Core_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_DEBUG}\")
|
|
||||||
+ set(imported_location \"@NIX_DEV@/$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_DEBUG}\")
|
|
||||||
!!ELSE
|
|
||||||
set(imported_location \"$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_DEBUG}\")
|
|
||||||
!!ENDIF
|
|
||||||
Index: qtbase-opensource-src-5.6.1/src/corelib/Qt5CoreConfigExtrasMkspecDirForInstall.cmake.in
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.1.orig/src/corelib/Qt5CoreConfigExtrasMkspecDirForInstall.cmake.in
|
|
||||||
+++ qtbase-opensource-src-5.6.1/src/corelib/Qt5CoreConfigExtrasMkspecDirForInstall.cmake.in
|
|
||||||
@@ -1,6 +1,6 @@
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_INSTALL_DATA_DIR_IS_ABSOLUTE)
|
|
||||||
-set(_qt5_corelib_extra_includes \"${_qt5Core_install_prefix}/$${CMAKE_INSTALL_DATA_DIR}/mkspecs/$${CMAKE_MKSPEC}\")
|
|
||||||
+set(_qt5_corelib_extra_includes \"@NIX_DEV@/$${CMAKE_INSTALL_DATA_DIR}/mkspecs/$${CMAKE_MKSPEC}\")
|
|
||||||
!!ELSE
|
|
||||||
set(_qt5_corelib_extra_includes \"$${CMAKE_INSTALL_DATA_DIR}mkspecs/$${CMAKE_MKSPEC}\")
|
|
||||||
!!ENDIF
|
|
||||||
Index: qtbase-opensource-src-5.6.1/src/corelib/Qt5CoreConfigExtrasMkspecDir.cmake.in
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.1.orig/src/corelib/Qt5CoreConfigExtrasMkspecDir.cmake.in
|
|
||||||
+++ qtbase-opensource-src-5.6.1/src/corelib/Qt5CoreConfigExtrasMkspecDir.cmake.in
|
|
||||||
@@ -1,6 +1,6 @@
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_HOST_DATA_DIR_IS_ABSOLUTE)
|
|
||||||
-set(_qt5_corelib_extra_includes \"${_qt5Core_install_prefix}/$${CMAKE_HOST_DATA_DIR}/mkspecs/$${CMAKE_MKSPEC}\")
|
|
||||||
+set(_qt5_corelib_extra_includes \"@NIX_DEV@/$${CMAKE_HOST_DATA_DIR}/mkspecs/$${CMAKE_MKSPEC}\")
|
|
||||||
!!ELSE
|
|
||||||
set(_qt5_corelib_extra_includes \"$${CMAKE_HOST_DATA_DIR}mkspecs/$${CMAKE_MKSPEC}\")
|
|
||||||
!!ENDIF
|
|
||||||
Index: qtbase-opensource-src-5.6.1/src/dbus/Qt5DBusConfigExtras.cmake.in
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.1.orig/src/dbus/Qt5DBusConfigExtras.cmake.in
|
|
||||||
+++ qtbase-opensource-src-5.6.1/src/dbus/Qt5DBusConfigExtras.cmake.in
|
|
||||||
@@ -3,7 +3,7 @@ if (NOT TARGET Qt5::qdbuscpp2xml)
|
|
||||||
add_executable(Qt5::qdbuscpp2xml IMPORTED)
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5DBus_install_prefix}/$${CMAKE_BIN_DIR}qdbuscpp2xml$$CMAKE_BIN_SUFFIX\")
|
|
||||||
+ set(imported_location \"@NIX_DEV@/$${CMAKE_BIN_DIR}qdbuscpp2xml$$CMAKE_BIN_SUFFIX\")
|
|
||||||
!!ELSE
|
|
||||||
set(imported_location \"$${CMAKE_BIN_DIR}qdbuscpp2xml$$CMAKE_BIN_SUFFIX\")
|
|
||||||
!!ENDIF
|
|
||||||
@@ -18,7 +18,7 @@ if (NOT TARGET Qt5::qdbusxml2cpp)
|
|
||||||
add_executable(Qt5::qdbusxml2cpp IMPORTED)
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5DBus_install_prefix}/$${CMAKE_BIN_DIR}qdbusxml2cpp$$CMAKE_BIN_SUFFIX\")
|
|
||||||
+ set(imported_location \"@NIX_DEV@/$${CMAKE_BIN_DIR}qdbusxml2cpp$$CMAKE_BIN_SUFFIX\")
|
|
||||||
!!ELSE
|
|
||||||
set(imported_location \"$${CMAKE_BIN_DIR}qdbusxml2cpp$$CMAKE_BIN_SUFFIX\")
|
|
||||||
!!ENDIF
|
|
||||||
Index: qtbase-opensource-src-5.6.1/mkspecs/features/create_cmake.prf
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.1.orig/mkspecs/features/create_cmake.prf
|
|
||||||
+++ qtbase-opensource-src-5.6.1/mkspecs/features/create_cmake.prf
|
|
||||||
@@ -136,28 +136,28 @@ contains(CONFIG, plugin) {
|
|
||||||
|
|
||||||
win32 {
|
|
||||||
isEmpty(CMAKE_STATIC_TYPE) {
|
|
||||||
- CMAKE_PLUGIN_LOCATION_RELEASE = $$PLUGIN_TYPE/$${TARGET}.dll
|
|
||||||
- CMAKE_PLUGIN_LOCATION_DEBUG = $$PLUGIN_TYPE/$${TARGET}d.dll
|
|
||||||
+ CMAKE_PLUGIN_LOCATION_RELEASE = $${CMAKE_PLUGIN_DIR}$$PLUGIN_TYPE/$${TARGET}.dll
|
|
||||||
+ CMAKE_PLUGIN_LOCATION_DEBUG = $${CMAKE_PLUGIN_DIR}$$PLUGIN_TYPE/$${TARGET}d.dll
|
|
||||||
} else:mingw {
|
|
||||||
- CMAKE_PLUGIN_LOCATION_RELEASE = $$PLUGIN_TYPE/lib$${TARGET}.a
|
|
||||||
- CMAKE_PLUGIN_LOCATION_DEBUG = $$PLUGIN_TYPE/lib$${TARGET}d.a
|
|
||||||
+ CMAKE_PLUGIN_LOCATION_RELEASE = $${CMAKE_PLUGIN_DIR}/$$PLUGIN_TYPE/lib$${TARGET}.a
|
|
||||||
+ CMAKE_PLUGIN_LOCATION_DEBUG = $${CMAKE_PLUGIN_DIR}$$PLUGIN_TYPE/lib$${TARGET}d.a
|
|
||||||
} else { # MSVC static
|
|
||||||
- CMAKE_PLUGIN_LOCATION_RELEASE = $$PLUGIN_TYPE/$${TARGET}.lib
|
|
||||||
- CMAKE_PLUGIN_LOCATION_DEBUG = $$PLUGIN_TYPE/$${TARGET}d.lib
|
|
||||||
+ CMAKE_PLUGIN_LOCATION_RELEASE = $${CMAKE_PLUGIN_DIR}$$PLUGIN_TYPE/$${TARGET}.lib
|
|
||||||
+ CMAKE_PLUGIN_LOCATION_DEBUG = $${CMAKE_PLUGIN_DIR}$$PLUGIN_TYPE/$${TARGET}d.lib
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
mac {
|
|
||||||
isEmpty(CMAKE_STATIC_TYPE): CMAKE_PlUGIN_EXT = .dylib
|
|
||||||
else: CMAKE_PlUGIN_EXT = .a
|
|
||||||
|
|
||||||
- CMAKE_PLUGIN_LOCATION_RELEASE = $$PLUGIN_TYPE/lib$${TARGET}$${CMAKE_PlUGIN_EXT}
|
|
||||||
- CMAKE_PLUGIN_LOCATION_DEBUG = $$PLUGIN_TYPE/lib$${TARGET}$${CMAKE_PlUGIN_EXT}
|
|
||||||
+ CMAKE_PLUGIN_LOCATION_RELEASE = $${CMAKE_PLUGIN_DIR}$$PLUGIN_TYPE/lib$${TARGET}$${CMAKE_PlUGIN_EXT}
|
|
||||||
+ CMAKE_PLUGIN_LOCATION_DEBUG = $${CMAKE_PLUGIN_DIR}$$PLUGIN_TYPE/lib$${TARGET}$${CMAKE_PlUGIN_EXT}
|
|
||||||
} else {
|
|
||||||
isEmpty(CMAKE_STATIC_TYPE): CMAKE_PlUGIN_EXT = .so
|
|
||||||
else: CMAKE_PlUGIN_EXT = .a
|
|
||||||
|
|
||||||
- CMAKE_PLUGIN_LOCATION_RELEASE = $$PLUGIN_TYPE/lib$${TARGET}$${CMAKE_PlUGIN_EXT}
|
|
||||||
- CMAKE_PLUGIN_LOCATION_DEBUG = $$PLUGIN_TYPE/lib$${TARGET}$${CMAKE_PlUGIN_EXT}
|
|
||||||
+ CMAKE_PLUGIN_LOCATION_RELEASE = $${CMAKE_PLUGIN_DIR}$$PLUGIN_TYPE/lib$${TARGET}$${CMAKE_PlUGIN_EXT}
|
|
||||||
+ CMAKE_PLUGIN_LOCATION_DEBUG = $${CMAKE_PLUGIN_DIR}$$PLUGIN_TYPE/lib$${TARGET}$${CMAKE_PlUGIN_EXT}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
cmake_target_file.input = $$PWD/data/cmake/Qt5PluginTarget.cmake.in
|
|
||||||
Index: qtbase-opensource-src-5.6.1/mkspecs/features/data/cmake/Qt5PluginTarget.cmake.in
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.1.orig/mkspecs/features/data/cmake/Qt5PluginTarget.cmake.in
|
|
||||||
+++ qtbase-opensource-src-5.6.1/mkspecs/features/data/cmake/Qt5PluginTarget.cmake.in
|
|
||||||
@@ -2,10 +2,10 @@
|
|
||||||
add_library(Qt5::$$CMAKE_PLUGIN_NAME MODULE IMPORTED)
|
|
||||||
|
|
||||||
!!IF !isEmpty(CMAKE_RELEASE_TYPE)
|
|
||||||
-_populate_$${CMAKE_MODULE_NAME}_plugin_properties($$CMAKE_PLUGIN_NAME RELEASE \"$${CMAKE_PLUGIN_LOCATION_RELEASE}\")
|
|
||||||
+_populate_$${CMAKE_MODULE_NAME}_plugin_properties($$CMAKE_PLUGIN_NAME RELEASE \"@NIX_OUT@/$${CMAKE_PLUGIN_LOCATION_RELEASE}\")
|
|
||||||
!!ENDIF
|
|
||||||
!!IF !isEmpty(CMAKE_DEBUG_TYPE)
|
|
||||||
-_populate_$${CMAKE_MODULE_NAME}_plugin_properties($$CMAKE_PLUGIN_NAME DEBUG \"$${CMAKE_PLUGIN_LOCATION_DEBUG}\")
|
|
||||||
+_populate_$${CMAKE_MODULE_NAME}_plugin_properties($$CMAKE_PLUGIN_NAME DEBUG \"@NIX_OUT@/$${CMAKE_PLUGIN_LOCATION_DEBUG}\")
|
|
||||||
!!ENDIF
|
|
||||||
|
|
||||||
list(APPEND Qt5$${CMAKE_MODULE_NAME}_PLUGINS Qt5::$$CMAKE_PLUGIN_NAME)
|
|
@ -1,385 +0,0 @@
|
|||||||
Index: qtbase-opensource-src-5.6.1/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.1.orig/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
|
|
||||||
+++ qtbase-opensource-src-5.6.1/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
|
|
||||||
@@ -9,30 +9,6 @@ if (CMAKE_VERSION VERSION_LESS 3.0.0)
|
|
||||||
endif()
|
|
||||||
!!ENDIF
|
|
||||||
|
|
||||||
-!!IF !isEmpty(CMAKE_USR_MOVE_WORKAROUND)
|
|
||||||
-!!IF !isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
|
|
||||||
-set(_qt5$${CMAKE_MODULE_NAME}_install_prefix \"$$[QT_INSTALL_PREFIX]\")
|
|
||||||
-!!ELSE
|
|
||||||
-get_filename_component(_IMPORT_PREFIX \"${CMAKE_CURRENT_LIST_FILE}\" PATH)
|
|
||||||
-# Use original install prefix when loaded through a
|
|
||||||
-# cross-prefix symbolic link such as /lib -> /usr/lib.
|
|
||||||
-get_filename_component(_realCurr \"${_IMPORT_PREFIX}\" REALPATH)
|
|
||||||
-get_filename_component(_realOrig \"$$CMAKE_INSTALL_LIBS_DIR/cmake/Qt5$${CMAKE_MODULE_NAME}\" REALPATH)
|
|
||||||
-if(_realCurr STREQUAL _realOrig)
|
|
||||||
- get_filename_component(_qt5$${CMAKE_MODULE_NAME}_install_prefix \"$$CMAKE_INSTALL_LIBS_DIR/$${CMAKE_RELATIVE_INSTALL_LIBS_DIR}\" ABSOLUTE)
|
|
||||||
-else()
|
|
||||||
- get_filename_component(_qt5$${CMAKE_MODULE_NAME}_install_prefix \"${CMAKE_CURRENT_LIST_DIR}/$${CMAKE_RELATIVE_INSTALL_DIR}\" ABSOLUTE)
|
|
||||||
-endif()
|
|
||||||
-unset(_realOrig)
|
|
||||||
-unset(_realCurr)
|
|
||||||
-unset(_IMPORT_PREFIX)
|
|
||||||
-!!ENDIF
|
|
||||||
-!!ELIF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
|
|
||||||
-get_filename_component(_qt5$${CMAKE_MODULE_NAME}_install_prefix \"${CMAKE_CURRENT_LIST_DIR}/$${CMAKE_RELATIVE_INSTALL_DIR}\" ABSOLUTE)
|
|
||||||
-!!ELSE
|
|
||||||
-set(_qt5$${CMAKE_MODULE_NAME}_install_prefix \"$$[QT_INSTALL_PREFIX]\")
|
|
||||||
-!!ENDIF
|
|
||||||
-
|
|
||||||
!!IF !equals(TEMPLATE, aux)
|
|
||||||
# For backwards compatibility only. Use Qt5$${CMAKE_MODULE_NAME}_VERSION instead.
|
|
||||||
set(Qt5$${CMAKE_MODULE_NAME}_VERSION_STRING "$$eval(QT.$${MODULE}.MAJOR_VERSION).$$eval(QT.$${MODULE}.MINOR_VERSION).$$eval(QT.$${MODULE}.PATCH_VERSION)")
|
|
||||||
@@ -59,7 +35,10 @@ macro(_populate_$${CMAKE_MODULE_NAME}_ta
|
|
||||||
set_property(TARGET Qt5::$${CMAKE_MODULE_NAME} APPEND PROPERTY IMPORTED_CONFIGURATIONS ${Configuration})
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_DLL_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
|
|
||||||
+ set(imported_location \"@NIX_OUT@/$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
|
|
||||||
+ if(NOT EXISTS \"${imported_location}\")
|
|
||||||
+ set(imported_location \"@NIX_DEV@/$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
|
|
||||||
+ endif()
|
|
||||||
!!ELSE
|
|
||||||
set(imported_location \"$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
|
|
||||||
!!ENDIF
|
|
||||||
@@ -74,45 +53,18 @@ macro(_populate_$${CMAKE_MODULE_NAME}_ta
|
|
||||||
\"IMPORTED_LINK_INTERFACE_LIBRARIES_${Configuration}\" \"${_Qt5$${CMAKE_MODULE_NAME}_LIB_DEPENDENCIES}\"
|
|
||||||
)
|
|
||||||
|
|
||||||
-!!IF !isEmpty(CMAKE_WINDOWS_BUILD)
|
|
||||||
-!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_implib \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}${IMPLIB_LOCATION}\")
|
|
||||||
-!!ELSE
|
|
||||||
- set(imported_implib \"IMPORTED_IMPLIB_${Configuration}\" \"$${CMAKE_LIB_DIR}${IMPLIB_LOCATION}\")
|
|
||||||
-!!ENDIF
|
|
||||||
- _qt5_$${CMAKE_MODULE_NAME}_check_file_exists(${imported_implib})
|
|
||||||
- if(NOT \"${IMPLIB_LOCATION}\" STREQUAL \"\")
|
|
||||||
- set_target_properties(Qt5::$${CMAKE_MODULE_NAME} PROPERTIES
|
|
||||||
- \"IMPORTED_IMPLIB_${Configuration}\" ${imported_implib}
|
|
||||||
- )
|
|
||||||
- endif()
|
|
||||||
-!!ENDIF
|
|
||||||
endmacro()
|
|
||||||
!!ENDIF
|
|
||||||
|
|
||||||
if (NOT TARGET Qt5::$${CMAKE_MODULE_NAME})
|
|
||||||
|
|
||||||
!!IF !no_module_headers
|
|
||||||
-!!IF !isEmpty(CMAKE_BUILD_IS_FRAMEWORK)
|
|
||||||
- set(_Qt5$${CMAKE_MODULE_NAME}_OWN_INCLUDE_DIRS
|
|
||||||
- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}Qt$${CMAKE_MODULE_NAME}.framework\"
|
|
||||||
- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}Qt$${CMAKE_MODULE_NAME}.framework/Headers\"
|
|
||||||
- )
|
|
||||||
-!!IF isEmpty(CMAKE_NO_PRIVATE_INCLUDES)
|
|
||||||
- set(Qt5$${CMAKE_MODULE_NAME}_PRIVATE_INCLUDE_DIRS
|
|
||||||
- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}Qt$${CMAKE_MODULE_NAME}.framework/Versions/$$section(VERSION, ., 0, 0)/Headers/$$VERSION/\"
|
|
||||||
- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}Qt$${CMAKE_MODULE_NAME}.framework/Versions/$$section(VERSION, ., 0, 0)/Headers/$$VERSION/$${MODULE_INCNAME}\"
|
|
||||||
- )
|
|
||||||
-!!ELSE
|
|
||||||
- set(Qt5$${CMAKE_MODULE_NAME}_PRIVATE_INCLUDE_DIRS \"\")
|
|
||||||
-!!ENDIF
|
|
||||||
-!!ELSE
|
|
||||||
!!IF isEmpty(CMAKE_INCLUDE_DIR_IS_ABSOLUTE)
|
|
||||||
- set(_Qt5$${CMAKE_MODULE_NAME}_OWN_INCLUDE_DIRS \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$$CMAKE_INCLUDE_DIR\" \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_INCLUDE_DIR}$${MODULE_INCNAME}\")
|
|
||||||
+ set(_Qt5$${CMAKE_MODULE_NAME}_OWN_INCLUDE_DIRS \"@NIX_DEV@/$$CMAKE_INCLUDE_DIR\" \"@NIX_DEV@/$${CMAKE_INCLUDE_DIR}$${MODULE_INCNAME}\")
|
|
||||||
!!IF isEmpty(CMAKE_NO_PRIVATE_INCLUDES)
|
|
||||||
set(Qt5$${CMAKE_MODULE_NAME}_PRIVATE_INCLUDE_DIRS
|
|
||||||
- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_INCLUDE_DIR}$${MODULE_INCNAME}/$$VERSION\"
|
|
||||||
- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_INCLUDE_DIR}$${MODULE_INCNAME}/$$VERSION/$${MODULE_INCNAME}\"
|
|
||||||
+ \"@NIX_DEV@/$${CMAKE_INCLUDE_DIR}$${MODULE_INCNAME}/$$VERSION\"
|
|
||||||
+ \"@NIX_DEV@/$${CMAKE_INCLUDE_DIR}$${MODULE_INCNAME}/$$VERSION/$${MODULE_INCNAME}\"
|
|
||||||
)
|
|
||||||
!!ELSE
|
|
||||||
set(Qt5$${CMAKE_MODULE_NAME}_PRIVATE_INCLUDE_DIRS \"\")
|
|
||||||
@@ -128,7 +80,7 @@ if (NOT TARGET Qt5::$${CMAKE_MODULE_NAME
|
|
||||||
set(Qt5$${CMAKE_MODULE_NAME}_PRIVATE_INCLUDE_DIRS \"\")
|
|
||||||
!!ENDIF
|
|
||||||
!!ENDIF
|
|
||||||
-!!ENDIF
|
|
||||||
+
|
|
||||||
!!IF !isEmpty(CMAKE_ADD_SOURCE_INCLUDE_DIRS)
|
|
||||||
include(\"${CMAKE_CURRENT_LIST_DIR}/ExtraSourceIncludes.cmake\" OPTIONAL)
|
|
||||||
!!ENDIF
|
|
||||||
@@ -253,28 +205,19 @@ if (NOT TARGET Qt5::$${CMAKE_MODULE_NAME
|
|
||||||
|
|
||||||
!!IF !isEmpty(CMAKE_FIND_OTHER_LIBRARY_BUILD)
|
|
||||||
!!IF isEmpty(CMAKE_DEBUG_TYPE)
|
|
||||||
-!!IF !isEmpty(CMAKE_STATIC_WINDOWS_BUILD)
|
|
||||||
-!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
|
|
||||||
- if (EXISTS \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" )
|
|
||||||
-!!ELSE // CMAKE_LIB_DIR_IS_ABSOLUTE
|
|
||||||
- if (EXISTS \"$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" )
|
|
||||||
-!!ENDIF // CMAKE_LIB_DIR_IS_ABSOLUTE
|
|
||||||
- _populate_$${CMAKE_MODULE_NAME}_target_properties(DEBUG \"$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" \"\" )
|
|
||||||
-!!ELSE // CMAKE_STATIC_WINDOWS_BUILD
|
|
||||||
if (EXISTS
|
|
||||||
!!IF isEmpty(CMAKE_DLL_DIR_IS_ABSOLUTE)
|
|
||||||
- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_DLL_DIR}$${CMAKE_LIB_FILE_LOCATION_DEBUG}\"
|
|
||||||
+ \"@NIX_OUT@/$${CMAKE_DLL_DIR}$${CMAKE_LIB_FILE_LOCATION_DEBUG}\"
|
|
||||||
!!ELSE
|
|
||||||
\"$${CMAKE_LIB_FILE_LOCATION_DEBUG}\"
|
|
||||||
!!ENDIF
|
|
||||||
AND EXISTS
|
|
||||||
!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
|
|
||||||
- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" )
|
|
||||||
+ \"@NIX_DEV@/$${CMAKE_LIB_DIR}$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" )
|
|
||||||
!!ELSE
|
|
||||||
\"$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" )
|
|
||||||
!!ENDIF
|
|
||||||
_populate_$${CMAKE_MODULE_NAME}_target_properties(DEBUG \"$${CMAKE_LIB_FILE_LOCATION_DEBUG}\" \"$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" )
|
|
||||||
-!!ENDIF // CMAKE_STATIC_WINDOWS_BUILD
|
|
||||||
endif()
|
|
||||||
!!ENDIF // CMAKE_DEBUG_TYPE
|
|
||||||
!!ENDIF // CMAKE_FIND_OTHER_LIBRARY_BUILD
|
|
||||||
@@ -282,36 +225,23 @@ if (NOT TARGET Qt5::$${CMAKE_MODULE_NAME
|
|
||||||
!!ENDIF // CMAKE_RELEASE_TYPE
|
|
||||||
|
|
||||||
!!IF !isEmpty(CMAKE_DEBUG_TYPE)
|
|
||||||
-!!IF !isEmpty(CMAKE_STATIC_WINDOWS_BUILD)
|
|
||||||
- _populate_$${CMAKE_MODULE_NAME}_target_properties(DEBUG \"$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" \"\" )
|
|
||||||
-!!ELSE
|
|
||||||
_populate_$${CMAKE_MODULE_NAME}_target_properties(DEBUG \"$${CMAKE_LIB_FILE_LOCATION_DEBUG}\" \"$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" )
|
|
||||||
-!!ENDIF // CMAKE_STATIC_WINDOWS_BUILD
|
|
||||||
|
|
||||||
!!IF !isEmpty(CMAKE_FIND_OTHER_LIBRARY_BUILD)
|
|
||||||
!!IF isEmpty(CMAKE_RELEASE_TYPE)
|
|
||||||
-!!IF !isEmpty(CMAKE_STATIC_WINDOWS_BUILD)
|
|
||||||
-!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
|
|
||||||
- if (EXISTS \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" )
|
|
||||||
-!!ELSE // CMAKE_LIB_DIR_IS_ABSOLUTE
|
|
||||||
- if (EXISTS \"$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" )
|
|
||||||
-!!ENDIF // CMAKE_LIB_DIR_IS_ABSOLUTE
|
|
||||||
- _populate_$${CMAKE_MODULE_NAME}_target_properties(RELEASE \"$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" \"\" )
|
|
||||||
-!!ELSE // CMAKE_STATIC_WINDOWS_BUILD
|
|
||||||
if (EXISTS
|
|
||||||
!!IF isEmpty(CMAKE_DLL_DIR_IS_ABSOLUTE)
|
|
||||||
- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_DLL_DIR}$${CMAKE_LIB_FILE_LOCATION_RELEASE}\"
|
|
||||||
+ \"@NIX_OUT@/$${CMAKE_DLL_DIR}$${CMAKE_LIB_FILE_LOCATION_RELEASE}\"
|
|
||||||
!!ELSE
|
|
||||||
\"$${CMAKE_LIB_FILE_LOCATION_RELEASE}\"
|
|
||||||
!!ENDIF
|
|
||||||
AND EXISTS
|
|
||||||
!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
|
|
||||||
- \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" )
|
|
||||||
+ \"@NIX_DEV@/$${CMAKE_LIB_DIR}$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" )
|
|
||||||
!!ELSE
|
|
||||||
\"$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" )
|
|
||||||
!!ENDIF
|
|
||||||
_populate_$${CMAKE_MODULE_NAME}_target_properties(RELEASE \"$${CMAKE_LIB_FILE_LOCATION_RELEASE}\" \"$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" )
|
|
||||||
-!!ENDIF // CMAKE_STATIC_WINDOWS_BUILD
|
|
||||||
endif()
|
|
||||||
!!ENDIF // CMAKE_RELEASE_TYPE
|
|
||||||
!!ENDIF // CMAKE_FIND_OTHER_LIBRARY_BUILD
|
|
||||||
@@ -328,11 +258,7 @@ if (NOT TARGET Qt5::$${CMAKE_MODULE_NAME
|
|
||||||
macro(_populate_$${CMAKE_MODULE_NAME}_plugin_properties Plugin Configuration PLUGIN_LOCATION)
|
|
||||||
set_property(TARGET Qt5::${Plugin} APPEND PROPERTY IMPORTED_CONFIGURATIONS ${Configuration})
|
|
||||||
|
|
||||||
-!!IF isEmpty(CMAKE_PLUGIN_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_PLUGIN_DIR}${PLUGIN_LOCATION}\")
|
|
||||||
-!!ELSE
|
|
||||||
- set(imported_location \"$${CMAKE_PLUGIN_DIR}${PLUGIN_LOCATION}\")
|
|
||||||
-!!ENDIF
|
|
||||||
+ set(imported_location \"${PLUGIN_LOCATION}\")
|
|
||||||
_qt5_$${CMAKE_MODULE_NAME}_check_file_exists(${imported_location})
|
|
||||||
set_target_properties(Qt5::${Plugin} PROPERTIES
|
|
||||||
\"IMPORTED_LOCATION_${Configuration}\" ${imported_location}
|
|
||||||
Index: qtbase-opensource-src-5.6.1/src/gui/Qt5GuiConfigExtras.cmake.in
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.1.orig/src/gui/Qt5GuiConfigExtras.cmake.in
|
|
||||||
+++ qtbase-opensource-src-5.6.1/src/gui/Qt5GuiConfigExtras.cmake.in
|
|
||||||
@@ -2,7 +2,7 @@
|
|
||||||
!!IF !isEmpty(CMAKE_ANGLE_EGL_DLL_RELEASE)
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_INCLUDE_DIR_IS_ABSOLUTE)
|
|
||||||
-set(Qt5Gui_EGL_INCLUDE_DIRS \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$$CMAKE_INCLUDE_DIR/QtANGLE\")
|
|
||||||
+set(Qt5Gui_EGL_INCLUDE_DIRS \"@NIX_DEV@/$$CMAKE_INCLUDE_DIR/QtANGLE\")
|
|
||||||
!!ELSE
|
|
||||||
set(Qt5Gui_EGL_INCLUDE_DIRS \"$$CMAKE_INCLUDE_DIR/QtANGLE\")
|
|
||||||
!!ENDIF
|
|
||||||
@@ -17,13 +17,13 @@ macro(_populate_qt5gui_gl_target_propert
|
|
||||||
set_property(TARGET Qt5::${TargetName} APPEND PROPERTY IMPORTED_CONFIGURATIONS ${Configuration})
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_DLL_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5Gui_install_prefix}/$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
|
|
||||||
+ set(imported_location \"@NIX_OUT@/$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
|
|
||||||
!!ELSE
|
|
||||||
set(imported_location \"$${CMAKE_DLL_DIR}${LIB_LOCATION}\")
|
|
||||||
!!ENDIF
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_implib \"${_qt5Gui_install_prefix}/$${CMAKE_LIB_DIR}${IMPLIB_LOCATION}\")
|
|
||||||
+ set(imported_implib \"@NIX_DEV@/$${CMAKE_LIB_DIR}${IMPLIB_LOCATION}\")
|
|
||||||
!!ELSE
|
|
||||||
set(imported_implib \"$${CMAKE_LIB_DIR}${IMPLIB_LOCATION}\")
|
|
||||||
!!ENDIF
|
|
||||||
Index: qtbase-opensource-src-5.6.1/src/widgets/Qt5WidgetsConfigExtras.cmake.in
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.1.orig/src/widgets/Qt5WidgetsConfigExtras.cmake.in
|
|
||||||
+++ qtbase-opensource-src-5.6.1/src/widgets/Qt5WidgetsConfigExtras.cmake.in
|
|
||||||
@@ -3,7 +3,7 @@ if (NOT TARGET Qt5::uic)
|
|
||||||
add_executable(Qt5::uic IMPORTED)
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5Widgets_install_prefix}/$${CMAKE_BIN_DIR}uic$$CMAKE_BIN_SUFFIX\")
|
|
||||||
+ set(imported_location \"@NIX_DEV@/$${CMAKE_BIN_DIR}uic$$CMAKE_BIN_SUFFIX\")
|
|
||||||
!!ELSE
|
|
||||||
set(imported_location \"$${CMAKE_BIN_DIR}uic$$CMAKE_BIN_SUFFIX\")
|
|
||||||
!!ENDIF
|
|
||||||
Index: qtbase-opensource-src-5.6.1/src/corelib/Qt5CoreConfigExtras.cmake.in
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.1.orig/src/corelib/Qt5CoreConfigExtras.cmake.in
|
|
||||||
+++ qtbase-opensource-src-5.6.1/src/corelib/Qt5CoreConfigExtras.cmake.in
|
|
||||||
@@ -3,7 +3,7 @@ if (NOT TARGET Qt5::qmake)
|
|
||||||
add_executable(Qt5::qmake IMPORTED)
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5Core_install_prefix}/$${CMAKE_BIN_DIR}qmake$$CMAKE_BIN_SUFFIX\")
|
|
||||||
+ set(imported_location \"@NIX_DEV@/$${CMAKE_BIN_DIR}qmake$$CMAKE_BIN_SUFFIX\")
|
|
||||||
!!ELSE
|
|
||||||
set(imported_location \"$${CMAKE_BIN_DIR}qmake$$CMAKE_BIN_SUFFIX\")
|
|
||||||
!!ENDIF
|
|
||||||
@@ -18,7 +18,7 @@ if (NOT TARGET Qt5::moc)
|
|
||||||
add_executable(Qt5::moc IMPORTED)
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5Core_install_prefix}/$${CMAKE_BIN_DIR}moc$$CMAKE_BIN_SUFFIX\")
|
|
||||||
+ set(imported_location \"@NIX_DEV@/$${CMAKE_BIN_DIR}moc$$CMAKE_BIN_SUFFIX\")
|
|
||||||
!!ELSE
|
|
||||||
set(imported_location \"$${CMAKE_BIN_DIR}moc$$CMAKE_BIN_SUFFIX\")
|
|
||||||
!!ENDIF
|
|
||||||
@@ -35,7 +35,7 @@ if (NOT TARGET Qt5::rcc)
|
|
||||||
add_executable(Qt5::rcc IMPORTED)
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5Core_install_prefix}/$${CMAKE_BIN_DIR}rcc$$CMAKE_BIN_SUFFIX\")
|
|
||||||
+ set(imported_location \"@NIX_DEV@/$${CMAKE_BIN_DIR}rcc$$CMAKE_BIN_SUFFIX\")
|
|
||||||
!!ELSE
|
|
||||||
set(imported_location \"$${CMAKE_BIN_DIR}rcc$$CMAKE_BIN_SUFFIX\")
|
|
||||||
!!ENDIF
|
|
||||||
@@ -131,7 +131,7 @@ if (NOT TARGET Qt5::WinMain)
|
|
||||||
!!IF !isEmpty(CMAKE_RELEASE_TYPE)
|
|
||||||
set_property(TARGET Qt5::WinMain APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
|
||||||
!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5Core_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_RELEASE}\")
|
|
||||||
+ set(imported_location \"@NIX_DEV@/$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_RELEASE}\")
|
|
||||||
!!ELSE
|
|
||||||
set(imported_location \"$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_RELEASE}\")
|
|
||||||
!!ENDIF
|
|
||||||
@@ -145,7 +145,7 @@ if (NOT TARGET Qt5::WinMain)
|
|
||||||
set_property(TARGET Qt5::WinMain APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5Core_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_DEBUG}\")
|
|
||||||
+ set(imported_location \"@NIX_DEV@/$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_DEBUG}\")
|
|
||||||
!!ELSE
|
|
||||||
set(imported_location \"$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_DEBUG}\")
|
|
||||||
!!ENDIF
|
|
||||||
Index: qtbase-opensource-src-5.6.1/src/corelib/Qt5CoreConfigExtrasMkspecDirForInstall.cmake.in
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.1.orig/src/corelib/Qt5CoreConfigExtrasMkspecDirForInstall.cmake.in
|
|
||||||
+++ qtbase-opensource-src-5.6.1/src/corelib/Qt5CoreConfigExtrasMkspecDirForInstall.cmake.in
|
|
||||||
@@ -1,6 +1,6 @@
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_INSTALL_DATA_DIR_IS_ABSOLUTE)
|
|
||||||
-set(_qt5_corelib_extra_includes \"${_qt5Core_install_prefix}/$${CMAKE_INSTALL_DATA_DIR}/mkspecs/$${CMAKE_MKSPEC}\")
|
|
||||||
+set(_qt5_corelib_extra_includes \"@NIX_DEV@/$${CMAKE_INSTALL_DATA_DIR}/mkspecs/$${CMAKE_MKSPEC}\")
|
|
||||||
!!ELSE
|
|
||||||
set(_qt5_corelib_extra_includes \"$${CMAKE_INSTALL_DATA_DIR}mkspecs/$${CMAKE_MKSPEC}\")
|
|
||||||
!!ENDIF
|
|
||||||
Index: qtbase-opensource-src-5.6.1/src/corelib/Qt5CoreConfigExtrasMkspecDir.cmake.in
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.1.orig/src/corelib/Qt5CoreConfigExtrasMkspecDir.cmake.in
|
|
||||||
+++ qtbase-opensource-src-5.6.1/src/corelib/Qt5CoreConfigExtrasMkspecDir.cmake.in
|
|
||||||
@@ -1,6 +1,6 @@
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_HOST_DATA_DIR_IS_ABSOLUTE)
|
|
||||||
-set(_qt5_corelib_extra_includes \"${_qt5Core_install_prefix}/$${CMAKE_HOST_DATA_DIR}/mkspecs/$${CMAKE_MKSPEC}\")
|
|
||||||
+set(_qt5_corelib_extra_includes \"@NIX_DEV@/$${CMAKE_HOST_DATA_DIR}/mkspecs/$${CMAKE_MKSPEC}\")
|
|
||||||
!!ELSE
|
|
||||||
set(_qt5_corelib_extra_includes \"$${CMAKE_HOST_DATA_DIR}mkspecs/$${CMAKE_MKSPEC}\")
|
|
||||||
!!ENDIF
|
|
||||||
Index: qtbase-opensource-src-5.6.1/src/dbus/Qt5DBusConfigExtras.cmake.in
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.1.orig/src/dbus/Qt5DBusConfigExtras.cmake.in
|
|
||||||
+++ qtbase-opensource-src-5.6.1/src/dbus/Qt5DBusConfigExtras.cmake.in
|
|
||||||
@@ -3,7 +3,7 @@ if (NOT TARGET Qt5::qdbuscpp2xml)
|
|
||||||
add_executable(Qt5::qdbuscpp2xml IMPORTED)
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5DBus_install_prefix}/$${CMAKE_BIN_DIR}qdbuscpp2xml$$CMAKE_BIN_SUFFIX\")
|
|
||||||
+ set(imported_location \"@NIX_DEV@/$${CMAKE_BIN_DIR}qdbuscpp2xml$$CMAKE_BIN_SUFFIX\")
|
|
||||||
!!ELSE
|
|
||||||
set(imported_location \"$${CMAKE_BIN_DIR}qdbuscpp2xml$$CMAKE_BIN_SUFFIX\")
|
|
||||||
!!ENDIF
|
|
||||||
@@ -18,7 +18,7 @@ if (NOT TARGET Qt5::qdbusxml2cpp)
|
|
||||||
add_executable(Qt5::qdbusxml2cpp IMPORTED)
|
|
||||||
|
|
||||||
!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5DBus_install_prefix}/$${CMAKE_BIN_DIR}qdbusxml2cpp$$CMAKE_BIN_SUFFIX\")
|
|
||||||
+ set(imported_location \"@NIX_DEV@/$${CMAKE_BIN_DIR}qdbusxml2cpp$$CMAKE_BIN_SUFFIX\")
|
|
||||||
!!ELSE
|
|
||||||
set(imported_location \"$${CMAKE_BIN_DIR}qdbusxml2cpp$$CMAKE_BIN_SUFFIX\")
|
|
||||||
!!ENDIF
|
|
||||||
Index: qtbase-opensource-src-5.6.1/mkspecs/features/create_cmake.prf
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.1.orig/mkspecs/features/create_cmake.prf
|
|
||||||
+++ qtbase-opensource-src-5.6.1/mkspecs/features/create_cmake.prf
|
|
||||||
@@ -136,28 +136,28 @@ contains(CONFIG, plugin) {
|
|
||||||
|
|
||||||
win32 {
|
|
||||||
isEmpty(CMAKE_STATIC_TYPE) {
|
|
||||||
- CMAKE_PLUGIN_LOCATION_RELEASE = $$PLUGIN_TYPE/$${TARGET}.dll
|
|
||||||
- CMAKE_PLUGIN_LOCATION_DEBUG = $$PLUGIN_TYPE/$${TARGET}d.dll
|
|
||||||
+ CMAKE_PLUGIN_LOCATION_RELEASE = $${CMAKE_PLUGIN_DIR}$$PLUGIN_TYPE/$${TARGET}.dll
|
|
||||||
+ CMAKE_PLUGIN_LOCATION_DEBUG = $${CMAKE_PLUGIN_DIR}$$PLUGIN_TYPE/$${TARGET}d.dll
|
|
||||||
} else:mingw {
|
|
||||||
- CMAKE_PLUGIN_LOCATION_RELEASE = $$PLUGIN_TYPE/lib$${TARGET}.a
|
|
||||||
- CMAKE_PLUGIN_LOCATION_DEBUG = $$PLUGIN_TYPE/lib$${TARGET}d.a
|
|
||||||
+ CMAKE_PLUGIN_LOCATION_RELEASE = $${CMAKE_PLUGIN_DIR}/$$PLUGIN_TYPE/lib$${TARGET}.a
|
|
||||||
+ CMAKE_PLUGIN_LOCATION_DEBUG = $${CMAKE_PLUGIN_DIR}$$PLUGIN_TYPE/lib$${TARGET}d.a
|
|
||||||
} else { # MSVC static
|
|
||||||
- CMAKE_PLUGIN_LOCATION_RELEASE = $$PLUGIN_TYPE/$${TARGET}.lib
|
|
||||||
- CMAKE_PLUGIN_LOCATION_DEBUG = $$PLUGIN_TYPE/$${TARGET}d.lib
|
|
||||||
+ CMAKE_PLUGIN_LOCATION_RELEASE = $${CMAKE_PLUGIN_DIR}$$PLUGIN_TYPE/$${TARGET}.lib
|
|
||||||
+ CMAKE_PLUGIN_LOCATION_DEBUG = $${CMAKE_PLUGIN_DIR}$$PLUGIN_TYPE/$${TARGET}d.lib
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
mac {
|
|
||||||
isEmpty(CMAKE_STATIC_TYPE): CMAKE_PlUGIN_EXT = .dylib
|
|
||||||
else: CMAKE_PlUGIN_EXT = .a
|
|
||||||
|
|
||||||
- CMAKE_PLUGIN_LOCATION_RELEASE = $$PLUGIN_TYPE/lib$${TARGET}$${CMAKE_PlUGIN_EXT}
|
|
||||||
- CMAKE_PLUGIN_LOCATION_DEBUG = $$PLUGIN_TYPE/lib$${TARGET}$${CMAKE_PlUGIN_EXT}
|
|
||||||
+ CMAKE_PLUGIN_LOCATION_RELEASE = $${CMAKE_PLUGIN_DIR}$$PLUGIN_TYPE/lib$${TARGET}$${CMAKE_PlUGIN_EXT}
|
|
||||||
+ CMAKE_PLUGIN_LOCATION_DEBUG = $${CMAKE_PLUGIN_DIR}$$PLUGIN_TYPE/lib$${TARGET}$${CMAKE_PlUGIN_EXT}
|
|
||||||
} else {
|
|
||||||
isEmpty(CMAKE_STATIC_TYPE): CMAKE_PlUGIN_EXT = .so
|
|
||||||
else: CMAKE_PlUGIN_EXT = .a
|
|
||||||
|
|
||||||
- CMAKE_PLUGIN_LOCATION_RELEASE = $$PLUGIN_TYPE/lib$${TARGET}$${CMAKE_PlUGIN_EXT}
|
|
||||||
- CMAKE_PLUGIN_LOCATION_DEBUG = $$PLUGIN_TYPE/lib$${TARGET}$${CMAKE_PlUGIN_EXT}
|
|
||||||
+ CMAKE_PLUGIN_LOCATION_RELEASE = $${CMAKE_PLUGIN_DIR}$$PLUGIN_TYPE/lib$${TARGET}$${CMAKE_PlUGIN_EXT}
|
|
||||||
+ CMAKE_PLUGIN_LOCATION_DEBUG = $${CMAKE_PLUGIN_DIR}$$PLUGIN_TYPE/lib$${TARGET}$${CMAKE_PlUGIN_EXT}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
cmake_target_file.input = $$PWD/data/cmake/Qt5PluginTarget.cmake.in
|
|
||||||
Index: qtbase-opensource-src-5.6.1/mkspecs/features/data/cmake/Qt5PluginTarget.cmake.in
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.1.orig/mkspecs/features/data/cmake/Qt5PluginTarget.cmake.in
|
|
||||||
+++ qtbase-opensource-src-5.6.1/mkspecs/features/data/cmake/Qt5PluginTarget.cmake.in
|
|
||||||
@@ -2,10 +2,10 @@
|
|
||||||
add_library(Qt5::$$CMAKE_PLUGIN_NAME MODULE IMPORTED)
|
|
||||||
|
|
||||||
!!IF !isEmpty(CMAKE_RELEASE_TYPE)
|
|
||||||
-_populate_$${CMAKE_MODULE_NAME}_plugin_properties($$CMAKE_PLUGIN_NAME RELEASE \"$${CMAKE_PLUGIN_LOCATION_RELEASE}\")
|
|
||||||
+_populate_$${CMAKE_MODULE_NAME}_plugin_properties($$CMAKE_PLUGIN_NAME RELEASE \"@NIX_OUT@/$${CMAKE_PLUGIN_LOCATION_RELEASE}\")
|
|
||||||
!!ENDIF
|
|
||||||
!!IF !isEmpty(CMAKE_DEBUG_TYPE)
|
|
||||||
-_populate_$${CMAKE_MODULE_NAME}_plugin_properties($$CMAKE_PLUGIN_NAME DEBUG \"$${CMAKE_PLUGIN_LOCATION_DEBUG}\")
|
|
||||||
+_populate_$${CMAKE_MODULE_NAME}_plugin_properties($$CMAKE_PLUGIN_NAME DEBUG \"@NIX_OUT@/$${CMAKE_PLUGIN_LOCATION_DEBUG}\")
|
|
||||||
!!ENDIF
|
|
||||||
|
|
||||||
list(APPEND Qt5$${CMAKE_MODULE_NAME}_PLUGINS Qt5::$$CMAKE_PLUGIN_NAME)
|
|
@ -1,16 +0,0 @@
|
|||||||
Index: qtbase-opensource-src-5.6.0/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.0.orig/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp
|
|
||||||
+++ qtbase-opensource-src-5.6.0/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp
|
|
||||||
@@ -251,10 +251,7 @@ void TableGenerator::initPossibleLocatio
|
|
||||||
// the QTCOMPOSE environment variable
|
|
||||||
if (qEnvironmentVariableIsSet("QTCOMPOSE"))
|
|
||||||
m_possibleLocations.append(QString::fromLocal8Bit(qgetenv("QTCOMPOSE")));
|
|
||||||
- m_possibleLocations.append(QStringLiteral("/usr/share/X11/locale"));
|
|
||||||
- m_possibleLocations.append(QStringLiteral("/usr/local/share/X11/locale"));
|
|
||||||
- m_possibleLocations.append(QStringLiteral("/usr/lib/X11/locale"));
|
|
||||||
- m_possibleLocations.append(QStringLiteral("/usr/local/lib/X11/locale"));
|
|
||||||
+ m_possibleLocations.append(QStringLiteral("${libX11}/share/X11/locale"));
|
|
||||||
m_possibleLocations.append(QStringLiteral(X11_PREFIX "/share/X11/locale"));
|
|
||||||
m_possibleLocations.append(QStringLiteral(X11_PREFIX "/lib/X11/locale"));
|
|
||||||
}
|
|
@ -1,13 +0,0 @@
|
|||||||
Index: qtbase-opensource-src-5.5.1/src/network/ssl/qsslsocket_openssl.cpp
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.5.1.orig/src/network/ssl/qsslsocket_openssl.cpp
|
|
||||||
+++ qtbase-opensource-src-5.5.1/src/network/ssl/qsslsocket_openssl.cpp
|
|
||||||
@@ -48,7 +48,7 @@
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
//#define QSSLSOCKET_DEBUG
|
|
||||||
-//#define QT_DECRYPT_SSL_TRAFFIC
|
|
||||||
+#define QT_DECRYPT_SSL_TRAFFIC
|
|
||||||
|
|
||||||
#include "qssl_p.h"
|
|
||||||
#include "qsslsocket_openssl_p.h"
|
|
@ -1,325 +0,0 @@
|
|||||||
{ stdenv, lib, fetchgit, copyPathsToStore
|
|
||||||
, srcs, qtCompatVersion
|
|
||||||
|
|
||||||
, xlibs, libX11, libxcb, libXcursor, libXext, libXrender, libXi
|
|
||||||
, xcbutil, xcbutilimage, xcbutilkeysyms, xcbutilwm, libxkbcommon
|
|
||||||
, fontconfig, freetype, harfbuzz
|
|
||||||
, openssl, dbus, glib, udev, libxml2, libxslt, pcre16
|
|
||||||
, zlib, libjpeg, libpng, libtiff, sqlite, icu
|
|
||||||
|
|
||||||
, coreutils, bison, flex, gdb, gperf, lndir
|
|
||||||
, patchelf, perl, pkgconfig, python2
|
|
||||||
, darwin, libiconv
|
|
||||||
|
|
||||||
# optional dependencies
|
|
||||||
, cups ? null
|
|
||||||
, mysql ? null, postgresql ? null
|
|
||||||
|
|
||||||
# options
|
|
||||||
, mesaSupported ? (!stdenv.isDarwin)
|
|
||||||
, mesa
|
|
||||||
, buildExamples ? false
|
|
||||||
, buildTests ? false
|
|
||||||
, developerBuild ? false
|
|
||||||
, decryptSslTraffic ? false
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
|
||||||
system-x86_64 = lib.elem stdenv.system lib.platforms.x86_64;
|
|
||||||
in
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
|
|
||||||
name = "qtbase-${srcs.qtbase.version}";
|
|
||||||
inherit (srcs.qtbase) src version;
|
|
||||||
inherit qtCompatVersion;
|
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
|
||||||
|
|
||||||
patches =
|
|
||||||
copyPathsToStore (lib.readPathsFromFile ./. ./series)
|
|
||||||
++ [(if stdenv.isDarwin then ./cmake-paths-darwin.patch else ./cmake-paths.patch)]
|
|
||||||
++ lib.optional decryptSslTraffic ./decrypt-ssl-traffic.patch
|
|
||||||
++ lib.optionals mesaSupported [ ./dlopen-gl.patch ./mkspecs-libgl.patch ];
|
|
||||||
|
|
||||||
postPatch =
|
|
||||||
''
|
|
||||||
substituteInPlace configure --replace /bin/pwd pwd
|
|
||||||
substituteInPlace src/corelib/global/global.pri --replace /bin/ls ${coreutils}/bin/ls
|
|
||||||
sed -e 's@/\(usr\|opt\)/@/var/empty/@g' -i config.tests/*/*.test -i mkspecs/*/*.conf
|
|
||||||
|
|
||||||
sed -i 's/PATHS.*NO_DEFAULT_PATH//' "src/corelib/Qt5Config.cmake.in"
|
|
||||||
sed -i 's/PATHS.*NO_DEFAULT_PATH//' "src/corelib/Qt5CoreMacros.cmake"
|
|
||||||
sed -i 's/NO_DEFAULT_PATH//' "src/gui/Qt5GuiConfigExtras.cmake.in"
|
|
||||||
sed -i 's/PATHS.*NO_DEFAULT_PATH//' "mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in"
|
|
||||||
|
|
||||||
substituteInPlace src/network/kernel/qdnslookup_unix.cpp \
|
|
||||||
--replace "@glibc@" "${stdenv.cc.libc.out}"
|
|
||||||
substituteInPlace src/network/kernel/qhostinfo_unix.cpp \
|
|
||||||
--replace "@glibc@" "${stdenv.cc.libc.out}"
|
|
||||||
|
|
||||||
substituteInPlace src/network/ssl/qsslsocket_openssl_symbols.cpp \
|
|
||||||
--replace "@openssl@" "${openssl.out}"
|
|
||||||
'' + lib.optionalString stdenv.isLinux ''
|
|
||||||
substituteInPlace src/plugins/platforms/xcb/qxcbcursor.cpp \
|
|
||||||
--replace "@libXcursor@" "${libXcursor.out}"
|
|
||||||
|
|
||||||
substituteInPlace src/dbus/qdbus_symbols.cpp \
|
|
||||||
--replace "@dbus_libs@" "${dbus.lib}"
|
|
||||||
|
|
||||||
substituteInPlace \
|
|
||||||
src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp \
|
|
||||||
--replace "@libX11@" "${libX11.out}"
|
|
||||||
'' + lib.optionalString mesaSupported ''
|
|
||||||
substituteInPlace \
|
|
||||||
src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp \
|
|
||||||
--replace "@mesa_lib@" "${mesa.out}"
|
|
||||||
substituteInPlace mkspecs/common/linux.conf \
|
|
||||||
--replace "@mesa_lib@" "${mesa.out}" \
|
|
||||||
--replace "@mesa_inc@" "${mesa.dev or mesa}"
|
|
||||||
'' + lib.optionalString stdenv.isDarwin ''
|
|
||||||
sed -i \
|
|
||||||
-e 's|! /usr/bin/xcode-select --print-path >/dev/null 2>&1;|false;|' \
|
|
||||||
-e 's|! /usr/bin/xcrun -find xcodebuild >/dev/null 2>&1;|false;|' \
|
|
||||||
-e 's|sysroot=$(/usr/bin/xcodebuild -sdk $sdk -version Path 2>/dev/null)|sysroot=/nonsense|' \
|
|
||||||
-e 's|QMAKE_CONF_COMPILER=`getXQMakeConf QMAKE_CXX`|QMAKE_CXX="clang++"\nQMAKE_CONF_COMPILER="clang++"|' \
|
|
||||||
-e 's|XCRUN=`/usr/bin/xcrun -sdk macosx clang -v 2>&1`|XCRUN="clang -v 2>&1"|' \
|
|
||||||
-e 's#sdk_val=$(/usr/bin/xcrun -sdk $sdk -find $(echo $val | cut -d \x27 \x27 -f 1))##' \
|
|
||||||
-e 's#val=$(echo $sdk_val $(echo $val | cut -s -d \x27 \x27 -f 2-))##' \
|
|
||||||
./configure
|
|
||||||
sed -i '3,$d' ./mkspecs/features/mac/default_pre.prf
|
|
||||||
sed -i '26,$d' ./mkspecs/features/mac/default_post.prf
|
|
||||||
sed -i '1,$d' ./mkspecs/features/mac/sdk.prf
|
|
||||||
sed 's/QMAKE_LFLAGS_RPATH = -Wl,-rpath,/QMAKE_LFLAGS_RPATH =/' -i ./mkspecs/common/mac.conf
|
|
||||||
'';
|
|
||||||
# Note on the above: \x27 is a way if including a single-quote
|
|
||||||
# character in the sed string arguments.
|
|
||||||
|
|
||||||
qtPluginPrefix = "lib/qt-${qtCompatVersion}/plugins";
|
|
||||||
qtQmlPrefix = "lib/qt-${qtCompatVersion}/qml";
|
|
||||||
qtDocPrefix = "share/doc/qt-${qtCompatVersion}";
|
|
||||||
|
|
||||||
setOutputFlags = false;
|
|
||||||
preConfigure = ''
|
|
||||||
export LD_LIBRARY_PATH="$PWD/lib:$PWD/plugins/platforms:$LD_LIBRARY_PATH"
|
|
||||||
export MAKEFLAGS=-j$NIX_BUILD_CORES
|
|
||||||
# We need to set LD to CXX or otherwise we get nasty compile errors
|
|
||||||
export LD=$CXX
|
|
||||||
|
|
||||||
configureFlags+="\
|
|
||||||
-plugindir $out/$qtPluginPrefix \
|
|
||||||
-qmldir $out/$qtQmlPrefix \
|
|
||||||
-docdir $out/$qtDocPrefix"
|
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE+=" -DNIXPKGS_QT_PLUGIN_PREFIX=\"$qtPluginPrefix\""
|
|
||||||
NIX_CFLAGS_COMPILE+=" -DNIXPKGS_QPA_PLATFORM_PLUGIN_PATH=\"''${!outputLib}/$qtPluginPrefix/platforms\""
|
|
||||||
|
|
||||||
unset LD
|
|
||||||
'';
|
|
||||||
|
|
||||||
prefixKey = "-prefix ";
|
|
||||||
|
|
||||||
# -no-eglfs, -no-directfb, -no-linuxfb and -no-kms because of the current minimalist mesa
|
|
||||||
# TODO Remove obsolete and useless flags once the build will be totally mastered
|
|
||||||
configureFlags = ''
|
|
||||||
-verbose
|
|
||||||
-confirm-license
|
|
||||||
-opensource
|
|
||||||
|
|
||||||
-release
|
|
||||||
-shared
|
|
||||||
-c++11
|
|
||||||
${lib.optionalString developerBuild "-developer-build"}
|
|
||||||
-largefile
|
|
||||||
-accessibility
|
|
||||||
-optimized-qmake
|
|
||||||
-strip
|
|
||||||
-no-reduce-relocations
|
|
||||||
-system-proxies
|
|
||||||
-pkg-config
|
|
||||||
|
|
||||||
-gui
|
|
||||||
-widgets
|
|
||||||
-opengl desktop
|
|
||||||
-qml-debug
|
|
||||||
-iconv
|
|
||||||
-icu
|
|
||||||
-pch
|
|
||||||
|
|
||||||
${lib.optionalString (!system-x86_64) "-no-sse2"}
|
|
||||||
-no-sse3
|
|
||||||
-no-ssse3
|
|
||||||
-no-sse4.1
|
|
||||||
-no-sse4.2
|
|
||||||
-no-avx
|
|
||||||
-no-avx2
|
|
||||||
-no-mips_dsp
|
|
||||||
-no-mips_dspr2
|
|
||||||
|
|
||||||
-system-zlib
|
|
||||||
-system-libpng
|
|
||||||
-system-libjpeg
|
|
||||||
-system-harfbuzz
|
|
||||||
-system-pcre
|
|
||||||
-openssl-linked
|
|
||||||
|
|
||||||
-system-sqlite
|
|
||||||
-${if mysql != null then "plugin" else "no"}-sql-mysql
|
|
||||||
-${if postgresql != null then "plugin" else "no"}-sql-psql
|
|
||||||
|
|
||||||
-make libs
|
|
||||||
-make tools
|
|
||||||
-${lib.optionalString (buildExamples == false) "no"}make examples
|
|
||||||
-${lib.optionalString (buildTests == false) "no"}make tests
|
|
||||||
'' + lib.optionalString (!stdenv.isDarwin) ''
|
|
||||||
-no-rpath
|
|
||||||
-glib
|
|
||||||
-xcb
|
|
||||||
-qpa xcb
|
|
||||||
|
|
||||||
-${lib.optionalString (cups == null) "no-"}cups
|
|
||||||
|
|
||||||
-no-eglfs
|
|
||||||
-no-directfb
|
|
||||||
-no-linuxfb
|
|
||||||
-no-kms
|
|
||||||
|
|
||||||
-system-xcb
|
|
||||||
-system-xkbcommon
|
|
||||||
-dbus-linked
|
|
||||||
'' + lib.optionalString stdenv.isDarwin ''
|
|
||||||
-platform macx-clang
|
|
||||||
-no-use-gold-linker
|
|
||||||
-no-fontconfig
|
|
||||||
-qt-freetype
|
|
||||||
'';
|
|
||||||
|
|
||||||
# PostgreSQL autodetection fails sporadically because Qt omits the "-lpq" flag
|
|
||||||
# if dependency paths contain the string "pq", which can occur in the hash.
|
|
||||||
# To prevent these failures, we need to override PostgreSQL detection.
|
|
||||||
PSQL_LIBS = lib.optionalString (postgresql != null) "-L${postgresql.lib}/lib -lpq";
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
|
||||||
libxml2 libxslt openssl pcre16 sqlite zlib
|
|
||||||
|
|
||||||
# Text rendering
|
|
||||||
harfbuzz icu
|
|
||||||
|
|
||||||
# Image formats
|
|
||||||
libjpeg libpng libtiff
|
|
||||||
]
|
|
||||||
++ lib.optional mesaSupported mesa
|
|
||||||
++ lib.optionals (!stdenv.isDarwin) [
|
|
||||||
dbus glib udev
|
|
||||||
|
|
||||||
# Text rendering
|
|
||||||
fontconfig freetype
|
|
||||||
# X11 libs
|
|
||||||
xlibs.libXcomposite libX11 libxcb libXext libXrender libXi
|
|
||||||
xcbutil xcbutilimage xcbutilkeysyms xcbutilwm libxkbcommon
|
|
||||||
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
|
||||||
ApplicationServices CoreServices AppKit Carbon OpenGL AGL Cocoa
|
|
||||||
DiskArbitration darwin.cf-private libiconv
|
|
||||||
]);
|
|
||||||
|
|
||||||
buildInputs =
|
|
||||||
[ bison flex gperf ]
|
|
||||||
++ lib.optional developerBuild gdb
|
|
||||||
++ lib.optional (cups != null) cups
|
|
||||||
++ lib.optional (mysql != null) mysql.lib
|
|
||||||
++ lib.optional (postgresql != null) postgresql;
|
|
||||||
|
|
||||||
nativeBuildInputs = [ lndir perl pkgconfig python2 ] ++ lib.optional (!stdenv.isDarwin) patchelf;
|
|
||||||
|
|
||||||
# freetype-2.5.4 changed signedness of some struct fields
|
|
||||||
NIX_CFLAGS_COMPILE = "-Wno-error=sign-compare"
|
|
||||||
+ lib.optionalString stdenv.isDarwin " -D__MAC_OS_X_VERSION_MAX_ALLOWED=1090 -D__AVAILABILITY_INTERNAL__MAC_10_10=__attribute__((availability(macosx,introduced=10.10)))";
|
|
||||||
# Note that nixpkgs's objc4 is from macOS 10.11 while the SDK is
|
|
||||||
# 10.9 which necessitates the above macro definition that mentions
|
|
||||||
# 10.10
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
find "$out" -name "*.cmake" | while read file; do
|
|
||||||
substituteInPlace "$file" \
|
|
||||||
--subst-var-by NIX_OUT "''${!outputLib}" \
|
|
||||||
--subst-var-by NIX_DEV "''${!outputDev}" \
|
|
||||||
--subst-var-by NIX_BIN "''${!outputBin}"
|
|
||||||
done
|
|
||||||
'';
|
|
||||||
|
|
||||||
preFixup = ''
|
|
||||||
# We cannot simply set these paths in configureFlags because libQtCore retains
|
|
||||||
# references to the paths it was built with.
|
|
||||||
moveToOutput "bin" "$dev"
|
|
||||||
moveToOutput "include" "$dev"
|
|
||||||
moveToOutput "mkspecs" "$dev"
|
|
||||||
|
|
||||||
# The destination directory must exist or moveToOutput will do nothing
|
|
||||||
mkdir -p "$dev/share"
|
|
||||||
moveToOutput "share/doc" "$dev"
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Don't move .prl files on darwin because they end up in
|
|
||||||
# "dev/lib/Foo.framework/Foo.prl" which interferes with subsequent
|
|
||||||
# use of lndir in the qtbase setup-hook. On Linux, the .prl files
|
|
||||||
# are in lib, and so do not cause a subsequent recreation of deep
|
|
||||||
# framework directory trees.
|
|
||||||
postFixup =
|
|
||||||
''
|
|
||||||
# Don't retain build-time dependencies like gdb.
|
|
||||||
sed '/QMAKE_DEFAULT_.*DIRS/ d' -i $dev/mkspecs/qconfig.pri
|
|
||||||
|
|
||||||
# Move libtool archives and qmake projects
|
|
||||||
if [ "z''${!outputLib}" != "z''${!outputDev}" ]; then
|
|
||||||
pushd "''${!outputLib}"
|
|
||||||
find lib -name '*.a' -o -name '*.la'${if stdenv.isDarwin then "" else "-o -name '*.prl'"} | \
|
|
||||||
while read -r file; do
|
|
||||||
mkdir -p "''${!outputDev}/$(dirname "$file")"
|
|
||||||
mv "''${!outputLib}/$file" "''${!outputDev}/$file"
|
|
||||||
done
|
|
||||||
popd
|
|
||||||
fi
|
|
||||||
''
|
|
||||||
|
|
||||||
# fixup .pc file (where to find 'moc' etc.)
|
|
||||||
+ lib.optionalString (!stdenv.isDarwin) ''
|
|
||||||
sed -i "$dev/lib/pkgconfig/Qt5Core.pc" \
|
|
||||||
-e "/^host_bins=/ c host_bins=$dev/bin"
|
|
||||||
''
|
|
||||||
|
|
||||||
# Don't move .prl files on darwin because they end up in
|
|
||||||
# "dev/lib/Foo.framework/Foo.prl" which interferes with subsequent
|
|
||||||
# use of lndir in the qtbase setup-hook. On Linux, the .prl files
|
|
||||||
# are in lib, and so do not cause a subsequent recreation of deep
|
|
||||||
# framework directory trees.
|
|
||||||
+ lib.optionalString stdenv.isDarwin ''
|
|
||||||
fixDarwinDylibNames_rpath() {
|
|
||||||
local flags=()
|
|
||||||
|
|
||||||
for fn in "$@"; do
|
|
||||||
flags+=(-change "@rpath/$fn.framework/Versions/5/$fn" "$out/lib/$fn.framework/Versions/5/$fn")
|
|
||||||
done
|
|
||||||
|
|
||||||
for fn in "$@"; do
|
|
||||||
echo "$fn: fixing dylib"
|
|
||||||
install_name_tool -id "$out/lib/$fn.framework/Versions/5/$fn" "''${flags[@]}" "$out/lib/$fn.framework/Versions/5/$fn"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
fixDarwinDylibNames_rpath "QtConcurrent" "QtPrintSupport" "QtCore" "QtSql" "QtDBus" "QtTest" "QtGui" "QtWidgets" "QtNetwork" "QtXml" "QtOpenGL"
|
|
||||||
'';
|
|
||||||
|
|
||||||
inherit lndir;
|
|
||||||
setupHook = if stdenv.isDarwin
|
|
||||||
then ../../qtbase-setup-hook-darwin.sh
|
|
||||||
else ../../qtbase-setup-hook.sh;
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
homepage = http://www.qt.io;
|
|
||||||
description = "A cross-platform application framework for C++";
|
|
||||||
license = with licenses; [ fdl13 gpl2 lgpl21 lgpl3 ];
|
|
||||||
maintainers = with maintainers; [ qknight ttuegel ];
|
|
||||||
platforms = platforms.unix;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,13 +0,0 @@
|
|||||||
Index: qtbase-opensource-src-5.6.1/src/dbus/qdbus_symbols.cpp
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.1.orig/src/dbus/qdbus_symbols.cpp
|
|
||||||
+++ qtbase-opensource-src-5.6.1/src/dbus/qdbus_symbols.cpp
|
|
||||||
@@ -90,7 +90,7 @@ bool qdbus_loadLibDBus()
|
|
||||||
#ifdef Q_OS_WIN
|
|
||||||
QLatin1String("dbus-1"),
|
|
||||||
#endif
|
|
||||||
- QLatin1String("libdbus-1")
|
|
||||||
+ QLatin1String("@dbus_libs@/lib/libdbus-1")
|
|
||||||
};
|
|
||||||
|
|
||||||
lib->unload();
|
|
@ -1,17 +0,0 @@
|
|||||||
Index: qtbase-opensource-src-5.5.1/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.5.1.orig/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp
|
|
||||||
+++ qtbase-opensource-src-5.5.1/src/plugins/platforms/xcb/gl_integrations/xcb_glx/qglxintegration.cpp
|
|
||||||
@@ -563,7 +563,12 @@ void (*QGLXContext::getProcAddress(const
|
|
||||||
{
|
|
||||||
extern const QString qt_gl_library_name();
|
|
||||||
// QLibrary lib(qt_gl_library_name());
|
|
||||||
+ // Check system library paths first
|
|
||||||
QLibrary lib(QLatin1String("GL"));
|
|
||||||
+ if (!lib.load()) {
|
|
||||||
+ // Fallback to Mesa driver
|
|
||||||
+ lib.setFileName(QLatin1String("@mesa_lib@/lib/libGL"));
|
|
||||||
+ }
|
|
||||||
glXGetProcAddressARB = (qt_glXGetProcAddressARB) lib.resolve("glXGetProcAddressARB");
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,17 +0,0 @@
|
|||||||
Index: qtbase-opensource-src-5.6.0/src/plugins/platforms/xcb/qxcbcursor.cpp
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.0.orig/src/plugins/platforms/xcb/qxcbcursor.cpp
|
|
||||||
+++ qtbase-opensource-src-5.6.0/src/plugins/platforms/xcb/qxcbcursor.cpp
|
|
||||||
@@ -303,10 +303,10 @@ QXcbCursor::QXcbCursor(QXcbConnection *c
|
|
||||||
#if defined(XCB_USE_XLIB) && !defined(QT_NO_LIBRARY)
|
|
||||||
static bool function_ptrs_not_initialized = true;
|
|
||||||
if (function_ptrs_not_initialized) {
|
|
||||||
- QLibrary xcursorLib(QLatin1String("Xcursor"), 1);
|
|
||||||
+ QLibrary xcursorLib(QLatin1String("@libXcursor@/lib/libXcursor"), 1);
|
|
||||||
bool xcursorFound = xcursorLib.load();
|
|
||||||
if (!xcursorFound) { // try without the version number
|
|
||||||
- xcursorLib.setFileName(QLatin1String("Xcursor"));
|
|
||||||
+ xcursorLib.setFileName(QLatin1String("@libXcursor@/lib/Xcursor"));
|
|
||||||
xcursorFound = xcursorLib.load();
|
|
||||||
}
|
|
||||||
if (xcursorFound) {
|
|
@ -1,26 +0,0 @@
|
|||||||
Index: qtbase-opensource-src-5.6.0/src/network/ssl/qsslsocket_openssl_symbols.cpp
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.0.orig/src/network/ssl/qsslsocket_openssl_symbols.cpp
|
|
||||||
+++ qtbase-opensource-src-5.6.0/src/network/ssl/qsslsocket_openssl_symbols.cpp
|
|
||||||
@@ -652,8 +652,8 @@ static QPair<QLibrary*, QLibrary*> loadO
|
|
||||||
#endif
|
|
||||||
#if defined(SHLIB_VERSION_NUMBER) && !defined(Q_OS_QNX) // on QNX, the libs are always libssl.so and libcrypto.so
|
|
||||||
// first attempt: the canonical name is libssl.so.<SHLIB_VERSION_NUMBER>
|
|
||||||
- libssl->setFileNameAndVersion(QLatin1String("ssl"), QLatin1String(SHLIB_VERSION_NUMBER));
|
|
||||||
- libcrypto->setFileNameAndVersion(QLatin1String("crypto"), QLatin1String(SHLIB_VERSION_NUMBER));
|
|
||||||
+ libssl->setFileNameAndVersion(QLatin1String("@openssl@/lib/libssl"), QLatin1String(SHLIB_VERSION_NUMBER));
|
|
||||||
+ libcrypto->setFileNameAndVersion(QLatin1String("@openssl@/lib/libcrypto"), QLatin1String(SHLIB_VERSION_NUMBER));
|
|
||||||
if (libcrypto->load() && libssl->load()) {
|
|
||||||
// libssl.so.<SHLIB_VERSION_NUMBER> and libcrypto.so.<SHLIB_VERSION_NUMBER> found
|
|
||||||
return pair;
|
|
||||||
@@ -670,8 +670,8 @@ static QPair<QLibrary*, QLibrary*> loadO
|
|
||||||
// OS X's /usr/lib/libssl.dylib, /usr/lib/libcrypto.dylib will be picked up in the third
|
|
||||||
// attempt, _after_ <bundle>/Contents/Frameworks has been searched.
|
|
||||||
// iOS does not ship a system libssl.dylib, libcrypto.dylib in the first place.
|
|
||||||
- libssl->setFileNameAndVersion(QLatin1String("ssl"), -1);
|
|
||||||
- libcrypto->setFileNameAndVersion(QLatin1String("crypto"), -1);
|
|
||||||
+ libssl->setFileNameAndVersion(QLatin1String("@openssl@/lib/libssl"), -1);
|
|
||||||
+ libcrypto->setFileNameAndVersion(QLatin1String("@openssl@/lib/libcrypto"), -1);
|
|
||||||
if (libcrypto->load() && libssl->load()) {
|
|
||||||
// libssl.so.0 and libcrypto.so.0 found
|
|
||||||
return pair;
|
|
@ -1,26 +0,0 @@
|
|||||||
Index: qtbase-opensource-src-5.6.2/src/network/kernel/qdnslookup_unix.cpp
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.2.orig/src/network/kernel/qdnslookup_unix.cpp
|
|
||||||
+++ qtbase-opensource-src-5.6.2/src/network/kernel/qdnslookup_unix.cpp
|
|
||||||
@@ -83,7 +83,7 @@ static bool resolveLibraryInternal()
|
|
||||||
if (!lib.load())
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
- lib.setFileName(QLatin1String("resolv"));
|
|
||||||
+ lib.setFileName(QLatin1String("@glibc@/lib/resolv"));
|
|
||||||
if (!lib.load())
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
Index: qtbase-opensource-src-5.6.2/src/network/kernel/qhostinfo_unix.cpp
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.2.orig/src/network/kernel/qhostinfo_unix.cpp
|
|
||||||
+++ qtbase-opensource-src-5.6.2/src/network/kernel/qhostinfo_unix.cpp
|
|
||||||
@@ -94,7 +94,7 @@ static bool resolveLibraryInternal()
|
|
||||||
if (!lib.load())
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
- lib.setFileName(QLatin1String("resolv"));
|
|
||||||
+ lib.setFileName(QLatin1String("@glibc@/lib/libresolv"));
|
|
||||||
if (!lib.load())
|
|
||||||
return false;
|
|
||||||
}
|
|
@ -1,20 +0,0 @@
|
|||||||
Index: qtbase-opensource-src-5.6.2/src/corelib/kernel/qcoreapplication.cpp
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.2.orig/src/corelib/kernel/qcoreapplication.cpp
|
|
||||||
+++ qtbase-opensource-src-5.6.2/src/corelib/kernel/qcoreapplication.cpp
|
|
||||||
@@ -2533,6 +2533,15 @@ QStringList QCoreApplication::libraryPat
|
|
||||||
QStringList *app_libpaths = new QStringList;
|
|
||||||
coreappdata()->app_libpaths.reset(app_libpaths);
|
|
||||||
|
|
||||||
+ // Add library paths derived from PATH
|
|
||||||
+ const QStringList paths = QFile::decodeName(qgetenv("PATH")).split(':');
|
|
||||||
+ const QString plugindir = QStringLiteral("../" NIXPKGS_QT_PLUGIN_PREFIX);
|
|
||||||
+ for (const QString &path: paths) {
|
|
||||||
+ if (!path.isEmpty()) {
|
|
||||||
+ app_libpaths->append(QDir::cleanPath(path + QDir::separator() + plugindir));
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
const QByteArray libPathEnv = qgetenv("QT_PLUGIN_PATH");
|
|
||||||
if (!libPathEnv.isEmpty()) {
|
|
||||||
QStringList paths = QFile::decodeName(libPathEnv).split(QDir::listSeparator(), QString::SkipEmptyParts);
|
|
@ -1,33 +0,0 @@
|
|||||||
From 81494e67eccba04fc3fe554d76a9ca6fe7f2250e Mon Sep 17 00:00:00 2001
|
|
||||||
From: hasufell <hasufell@gentoo.org>
|
|
||||||
Date: Sat, 10 Oct 2015 01:15:01 +0200
|
|
||||||
Subject: [PATCH] Fix compilation with libressl
|
|
||||||
|
|
||||||
By additionally checking for defined(SSL_CTRL_SET_CURVES), which
|
|
||||||
is defined in openssl, but not in libressl.
|
|
||||||
---
|
|
||||||
src/network/ssl/qsslcontext_openssl.cpp | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
Index: qtbase-opensource-src-5.6.0/src/network/ssl/qsslcontext_openssl.cpp
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.0.orig/src/network/ssl/qsslcontext_openssl.cpp
|
|
||||||
+++ qtbase-opensource-src-5.6.0/src/network/ssl/qsslcontext_openssl.cpp
|
|
||||||
@@ -340,7 +340,7 @@ init_context:
|
|
||||||
|
|
||||||
const QVector<QSslEllipticCurve> qcurves = sslContext->sslConfiguration.ellipticCurves();
|
|
||||||
if (!qcurves.isEmpty()) {
|
|
||||||
-#if OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(OPENSSL_NO_EC)
|
|
||||||
+#if OPENSSL_VERSION_NUMBER >= 0x10002000L && defined(SSL_CTRL_SET_CURVES) && !defined(OPENSSL_NO_EC)
|
|
||||||
// Set the curves to be used
|
|
||||||
if (q_SSLeay() >= 0x10002000L) {
|
|
||||||
// SSL_CTX_ctrl wants a non-const pointer as last argument,
|
|
||||||
@@ -354,7 +354,7 @@ init_context:
|
|
||||||
return sslContext;
|
|
||||||
}
|
|
||||||
} else
|
|
||||||
-#endif // OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(OPENSSL_NO_EC)
|
|
||||||
+#endif // OPENSSL_VERSION_NUMBER >= 0x10002000L && defined(SSL_CTRL_SET_CURVES) && !defined(OPENSSL_NO_EC)
|
|
||||||
{
|
|
||||||
// specific curves requested, but not possible to set -> error
|
|
||||||
sslContext->errorStr = msgErrorSettingEllipticCurves(QSslSocket::tr("OpenSSL version too old, need at least v1.0.2"));
|
|
@ -1,15 +0,0 @@
|
|||||||
Index: qtbase-opensource-src-5.5.1/mkspecs/common/linux.conf
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.5.1.orig/mkspecs/common/linux.conf
|
|
||||||
+++ qtbase-opensource-src-5.5.1/mkspecs/common/linux.conf
|
|
||||||
@@ -12,8 +12,8 @@ QMAKE_INCDIR =
|
|
||||||
QMAKE_LIBDIR =
|
|
||||||
QMAKE_INCDIR_X11 =
|
|
||||||
QMAKE_LIBDIR_X11 =
|
|
||||||
-QMAKE_INCDIR_OPENGL =
|
|
||||||
-QMAKE_LIBDIR_OPENGL =
|
|
||||||
+QMAKE_INCDIR_OPENGL = @mesa_inc@/include
|
|
||||||
+QMAKE_LIBDIR_OPENGL = @mesa_lib@/lib
|
|
||||||
QMAKE_INCDIR_OPENGL_ES2 = $$QMAKE_INCDIR_OPENGL
|
|
||||||
QMAKE_LIBDIR_OPENGL_ES2 = $$QMAKE_LIBDIR_OPENGL
|
|
||||||
QMAKE_INCDIR_EGL =
|
|
@ -1,43 +0,0 @@
|
|||||||
Index: qtbase-opensource-src-5.6.2/src/gui/kernel/qplatformintegrationfactory.cpp
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.2.orig/src/gui/kernel/qplatformintegrationfactory.cpp
|
|
||||||
+++ qtbase-opensource-src-5.6.2/src/gui/kernel/qplatformintegrationfactory.cpp
|
|
||||||
@@ -67,9 +67,10 @@ QPlatformIntegration *QPlatformIntegrati
|
|
||||||
// Try loading the plugin from platformPluginPath first:
|
|
||||||
if (!platformPluginPath.isEmpty()) {
|
|
||||||
QCoreApplication::addLibraryPath(platformPluginPath);
|
|
||||||
- if (QPlatformIntegration *ret = loadIntegration(directLoader(), platform, paramList, argc, argv))
|
|
||||||
- return ret;
|
|
||||||
}
|
|
||||||
+ QCoreApplication::addLibraryPath(QStringLiteral(NIXPKGS_QPA_PLATFORM_PLUGIN_PATH));
|
|
||||||
+ if (QPlatformIntegration *ret = loadIntegration(directLoader(), platform, paramList, argc, argv))
|
|
||||||
+ return ret;
|
|
||||||
if (QPlatformIntegration *ret = loadIntegration(loader(), platform, paramList, argc, argv))
|
|
||||||
return ret;
|
|
||||||
#else
|
|
||||||
@@ -95,15 +96,16 @@ QStringList QPlatformIntegrationFactory:
|
|
||||||
QStringList list;
|
|
||||||
if (!platformPluginPath.isEmpty()) {
|
|
||||||
QCoreApplication::addLibraryPath(platformPluginPath);
|
|
||||||
- list = directLoader()->keyMap().values();
|
|
||||||
- if (!list.isEmpty()) {
|
|
||||||
- const QString postFix = QStringLiteral(" (from ")
|
|
||||||
- + QDir::toNativeSeparators(platformPluginPath)
|
|
||||||
- + QLatin1Char(')');
|
|
||||||
- const QStringList::iterator end = list.end();
|
|
||||||
- for (QStringList::iterator it = list.begin(); it != end; ++it)
|
|
||||||
- (*it).append(postFix);
|
|
||||||
- }
|
|
||||||
+ }
|
|
||||||
+ QCoreApplication::addLibraryPath(QStringLiteral(NIXPKGS_QPA_PLATFORM_PLUGIN_PATH));
|
|
||||||
+ list = directLoader()->keyMap().values();
|
|
||||||
+ if (!list.isEmpty()) {
|
|
||||||
+ const QString postFix = QStringLiteral(" (from ")
|
|
||||||
+ + QDir::toNativeSeparators(platformPluginPath)
|
|
||||||
+ + QLatin1Char(')');
|
|
||||||
+ const QStringList::iterator end = list.end();
|
|
||||||
+ for (QStringList::iterator it = list.begin(); it != end; ++it)
|
|
||||||
+ (*it).append(postFix);
|
|
||||||
}
|
|
||||||
list.append(loader()->keyMap().values());
|
|
||||||
return list;
|
|
@ -1,9 +0,0 @@
|
|||||||
dlopen-resolv.patch
|
|
||||||
tzdir.patch
|
|
||||||
dlopen-libXcursor.patch
|
|
||||||
dlopen-openssl.patch
|
|
||||||
dlopen-dbus.patch
|
|
||||||
xdg-config-dirs.patch
|
|
||||||
library-paths.patch
|
|
||||||
compose-search-path.patch
|
|
||||||
libressl.patch
|
|
@ -1,40 +0,0 @@
|
|||||||
Index: qtbase-opensource-src-5.6.2/src/corelib/tools/qtimezoneprivate_tz.cpp
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.2.orig/src/corelib/tools/qtimezoneprivate_tz.cpp
|
|
||||||
+++ qtbase-opensource-src-5.6.2/src/corelib/tools/qtimezoneprivate_tz.cpp
|
|
||||||
@@ -64,7 +64,10 @@ typedef QHash<QByteArray, QTzTimeZone> Q
|
|
||||||
// Parse zone.tab table, assume lists all installed zones, if not will need to read directories
|
|
||||||
static QTzTimeZoneHash loadTzTimeZones()
|
|
||||||
{
|
|
||||||
- QString path = QStringLiteral("/usr/share/zoneinfo/zone.tab");
|
|
||||||
+ QString path = qgetenv("TZDIR");
|
|
||||||
+ path += "/zone.tab";
|
|
||||||
+ if (!QFile::exists(path))
|
|
||||||
+ path = QStringLiteral("/usr/share/zoneinfo/zone.tab");
|
|
||||||
if (!QFile::exists(path))
|
|
||||||
path = QStringLiteral("/usr/lib/zoneinfo/zone.tab");
|
|
||||||
|
|
||||||
@@ -636,12 +639,18 @@ void QTzTimeZonePrivate::init(const QByt
|
|
||||||
if (!tzif.open(QIODevice::ReadOnly))
|
|
||||||
return;
|
|
||||||
} else {
|
|
||||||
- // Open named tz, try modern path first, if fails try legacy path
|
|
||||||
- tzif.setFileName(QLatin1String("/usr/share/zoneinfo/") + QString::fromLocal8Bit(ianaId));
|
|
||||||
+ // Try TZDIR first
|
|
||||||
+ QString zoneinfoDir = qgetenv("TZDIR");
|
|
||||||
+ zoneinfoDir += "/" + QString::fromLocal8Bit(ianaId);
|
|
||||||
+ tzif.setFileName(zoneinfoDir);
|
|
||||||
if (!tzif.open(QIODevice::ReadOnly)) {
|
|
||||||
- tzif.setFileName(QLatin1String("/usr/lib/zoneinfo/") + QString::fromLocal8Bit(ianaId));
|
|
||||||
- if (!tzif.open(QIODevice::ReadOnly))
|
|
||||||
- return;
|
|
||||||
+ // Open named tz, try modern path first, if fails try legacy path
|
|
||||||
+ tzif.setFileName(QLatin1String("/usr/share/zoneinfo/") + QString::fromLocal8Bit(ianaId));
|
|
||||||
+ if (!tzif.open(QIODevice::ReadOnly)) {
|
|
||||||
+ tzif.setFileName(QLatin1String("/usr/lib/zoneinfo/") + QString::fromLocal8Bit(ianaId));
|
|
||||||
+ if (!tzif.open(QIODevice::ReadOnly))
|
|
||||||
+ return;
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,42 +0,0 @@
|
|||||||
Index: qtbase-opensource-src-5.6.0/src/corelib/io/qsettings.cpp
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.0.orig/src/corelib/io/qsettings.cpp
|
|
||||||
+++ qtbase-opensource-src-5.6.0/src/corelib/io/qsettings.cpp
|
|
||||||
@@ -1155,6 +1155,24 @@ QConfFileSettingsPrivate::QConfFileSetti
|
|
||||||
if (!application.isEmpty())
|
|
||||||
confFiles[F_System | F_Application].reset(QConfFile::fromName(systemPath + appFile, false));
|
|
||||||
confFiles[F_System | F_Organization].reset(QConfFile::fromName(systemPath + orgFile, false));
|
|
||||||
+
|
|
||||||
+#if !defined(Q_OS_WIN)
|
|
||||||
+ // Add directories specified in $XDG_CONFIG_DIRS
|
|
||||||
+ const QString pathEnv = QString::fromLocal8Bit(getenv("XDG_CONFIG_DIRS"));
|
|
||||||
+ if (!pathEnv.isEmpty()) {
|
|
||||||
+ const QStringList pathEntries = pathEnv.split(QLatin1Char(':'), QString::SkipEmptyParts);
|
|
||||||
+ if (!pathEntries.isEmpty()) {
|
|
||||||
+ int j = 4; // This is the number of confFiles set above -- we need to start adding $XDG_CONFIG_DIRS after those.
|
|
||||||
+ for (int k = 0; k < pathEntries.size() && j < NumConfFiles - 1; ++k) {
|
|
||||||
+ const QString& path = pathEntries.at(k);
|
|
||||||
+ if (!application.isEmpty())
|
|
||||||
+ confFiles[j++].reset(QConfFile::fromName(path + QDir::separator() + appFile, false));
|
|
||||||
+ confFiles[j++].reset(QConfFile::fromName(path + QDir::separator() + orgFile, false));
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
#else
|
|
||||||
QString confName = getPath(format, QSettings::UserScope) + org;
|
|
||||||
if (!application.isEmpty())
|
|
||||||
Index: qtbase-opensource-src-5.6.0/src/corelib/io/qsettings_p.h
|
|
||||||
===================================================================
|
|
||||||
--- qtbase-opensource-src-5.6.0.orig/src/corelib/io/qsettings_p.h
|
|
||||||
+++ qtbase-opensource-src-5.6.0/src/corelib/io/qsettings_p.h
|
|
||||||
@@ -241,7 +241,7 @@ public:
|
|
||||||
F_Organization = 0x1,
|
|
||||||
F_User = 0x0,
|
|
||||||
F_System = 0x2,
|
|
||||||
- NumConfFiles = 4
|
|
||||||
+ NumConfFiles = 40 // HACK: increase NumConfFiles from 4 to 40 in order to accommodate more paths in $XDG_CONFIG_DIRS -- ellis
|
|
||||||
#else
|
|
||||||
SandboxConfFile = 0,
|
|
||||||
NumConfFiles = 1
|
|
@ -1,6 +0,0 @@
|
|||||||
{ qtSubmodule, qtbase, qtdeclarative }:
|
|
||||||
|
|
||||||
qtSubmodule {
|
|
||||||
name = "qtconnectivity";
|
|
||||||
qtInputs = [ qtbase qtdeclarative ];
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
{ qtSubmodule, lib, copyPathsToStore, python2, qtbase, qtsvg, qtxmlpatterns }:
|
|
||||||
|
|
||||||
qtSubmodule {
|
|
||||||
name = "qtdeclarative";
|
|
||||||
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
|
||||||
qtInputs = [ qtbase qtsvg qtxmlpatterns ];
|
|
||||||
nativeBuildInputs = [ python2 ];
|
|
||||||
|
|
||||||
preConfigure = ''
|
|
||||||
NIX_CFLAGS_COMPILE+=" -DNIXPKGS_QML2_IMPORT_PREFIX=\"$qtQmlPrefix\""
|
|
||||||
'';
|
|
||||||
}
|
|
@ -1,20 +0,0 @@
|
|||||||
Index: qtdeclarative-opensource-src-5.6.2/src/qml/qml/qqmlimport.cpp
|
|
||||||
===================================================================
|
|
||||||
--- qtdeclarative-opensource-src-5.6.2.orig/src/qml/qml/qqmlimport.cpp
|
|
||||||
+++ qtdeclarative-opensource-src-5.6.2/src/qml/qml/qqmlimport.cpp
|
|
||||||
@@ -1568,6 +1568,15 @@ QQmlImportDatabase::QQmlImportDatabase(Q
|
|
||||||
QString installImportsPath = QLibraryInfo::location(QLibraryInfo::Qml2ImportsPath);
|
|
||||||
addImportPath(installImportsPath);
|
|
||||||
|
|
||||||
+ // Add import paths derived from PATH
|
|
||||||
+ const QStringList paths = QFile::decodeName(qgetenv("PATH")).split(':');
|
|
||||||
+ const QString qmldir = QStringLiteral("../" NIXPKGS_QML2_IMPORT_PREFIX);
|
|
||||||
+ for (const QString &path: paths) {
|
|
||||||
+ if (!path.isEmpty()) {
|
|
||||||
+ addImportPath(QDir::cleanPath(path + QDir::separator() + qmldir));
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
// env import paths
|
|
||||||
if (Q_UNLIKELY(!qEnvironmentVariableIsEmpty("QML2_IMPORT_PATH"))) {
|
|
||||||
const QByteArray envImportPath = qgetenv("QML2_IMPORT_PATH");
|
|
@ -1 +0,0 @@
|
|||||||
import-paths.patch
|
|
@ -1,6 +0,0 @@
|
|||||||
{ qtSubmodule, qtdeclarative }:
|
|
||||||
|
|
||||||
qtSubmodule {
|
|
||||||
name = "qtdoc";
|
|
||||||
qtInputs = [ qtdeclarative ];
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
{ qtSubmodule, qtdeclarative }:
|
|
||||||
|
|
||||||
qtSubmodule {
|
|
||||||
name = "qtenginio";
|
|
||||||
qtInputs = [ qtdeclarative ];
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
{ qtSubmodule, qtdeclarative }:
|
|
||||||
|
|
||||||
qtSubmodule {
|
|
||||||
name = "qtgraphicaleffects";
|
|
||||||
qtInputs = [ qtdeclarative ];
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
{ qtSubmodule, qtbase }:
|
|
||||||
|
|
||||||
qtSubmodule {
|
|
||||||
name = "qtimageformats";
|
|
||||||
qtInputs = [ qtbase ];
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
{ qtSubmodule, qtbase, qtmultimedia }:
|
|
||||||
|
|
||||||
qtSubmodule {
|
|
||||||
name = "qtlocation";
|
|
||||||
qtInputs = [ qtbase qtmultimedia ];
|
|
||||||
}
|
|
@ -1,13 +0,0 @@
|
|||||||
{ qtSubmodule, qtbase, qtdeclarative, pkgconfig
|
|
||||||
, alsaLib, gstreamer, gst-plugins-base, libpulseaudio
|
|
||||||
}:
|
|
||||||
|
|
||||||
qtSubmodule {
|
|
||||||
name = "qtmultimedia";
|
|
||||||
qtInputs = [ qtbase qtdeclarative ];
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
|
||||||
buildInputs = [
|
|
||||||
alsaLib gstreamer gst-plugins-base libpulseaudio
|
|
||||||
];
|
|
||||||
qmakeFlags = [ "GST_VERSION=1.0" ];
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
{ qtSubmodule, qtdeclarative }:
|
|
||||||
|
|
||||||
qtSubmodule {
|
|
||||||
name = "qtquickcontrols";
|
|
||||||
qtInputs = [ qtdeclarative ];
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
{ qtSubmodule, qtdeclarative }:
|
|
||||||
|
|
||||||
qtSubmodule {
|
|
||||||
name = "qtquickcontrols2";
|
|
||||||
qtInputs = [ qtdeclarative ];
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
From abd80356449bb36c8adcc5c9ca1df6b47715d265 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Thomas Tuegel <ttuegel@gmail.com>
|
|
||||||
Date: Sun, 23 Aug 2015 09:13:34 -0500
|
|
||||||
Subject: [PATCH] glib-2.32
|
|
||||||
|
|
||||||
---
|
|
||||||
src/3rdparty/javascriptcore/JavaScriptCore/wtf/Threading.h | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Threading.h b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Threading.h
|
|
||||||
index 1f6d25e..087c3fb 100644
|
|
||||||
--- a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Threading.h
|
|
||||||
+++ b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Threading.h
|
|
||||||
@@ -81,7 +81,7 @@
|
|
||||||
#include <pthread.h>
|
|
||||||
#elif PLATFORM(GTK)
|
|
||||||
#include <wtf/gtk/GOwnPtr.h>
|
|
||||||
-typedef struct _GMutex GMutex;
|
|
||||||
+typedef union _GMutex GMutex;
|
|
||||||
typedef struct _GCond GCond;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
--
|
|
||||||
2.5.0
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
|||||||
{ qtSubmodule, qtbase, qttools }:
|
|
||||||
|
|
||||||
qtSubmodule {
|
|
||||||
name = "qtscript";
|
|
||||||
qtInputs = [ qtbase qttools ];
|
|
||||||
patches = [ ./0001-glib-2.32.patch ];
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
{ qtSubmodule, qtbase, qtdeclarative }:
|
|
||||||
|
|
||||||
qtSubmodule {
|
|
||||||
name = "qtsensors";
|
|
||||||
qtInputs = [ qtbase qtdeclarative ];
|
|
||||||
}
|
|
@ -1,28 +0,0 @@
|
|||||||
From d81c2c870b9bea8fb8e6b85baefb06542f568338 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Thomas Tuegel <ttuegel@gmail.com>
|
|
||||||
Date: Sun, 23 Aug 2015 09:16:02 -0500
|
|
||||||
Subject: [PATCH] dlopen serialport udev
|
|
||||||
|
|
||||||
---
|
|
||||||
src/serialport/qtudev_p.h | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/serialport/qtudev_p.h b/src/serialport/qtudev_p.h
|
|
||||||
index 6f2cabd..81b9849 100644
|
|
||||||
--- a/src/serialport/qtudev_p.h
|
|
||||||
+++ b/src/serialport/qtudev_p.h
|
|
||||||
@@ -105,10 +105,9 @@ inline QFunctionPointer resolveSymbol(QLibrary *udevLibrary, const char *symbolN
|
|
||||||
inline bool resolveSymbols(QLibrary *udevLibrary)
|
|
||||||
{
|
|
||||||
if (!udevLibrary->isLoaded()) {
|
|
||||||
- udevLibrary->setFileNameAndVersion(QStringLiteral("udev"), 1);
|
|
||||||
+ udevLibrary->setFileNameAndVersion(QLatin1String(NIXPKGS_LIBUDEV), 1);
|
|
||||||
if (!udevLibrary->load()) {
|
|
||||||
- udevLibrary->setFileNameAndVersion(QStringLiteral("udev"), 0);
|
|
||||||
+ udevLibrary->setFileNameAndVersion(QLatin1String(NIXPKGS_LIBUDEV), 0);
|
|
||||||
if (!udevLibrary->load()) {
|
|
||||||
qWarning("Failed to load the library: %s, supported version(s): %i and %i", qPrintable(udevLibrary->fileName()), 1, 0);
|
|
||||||
return false;
|
|
||||||
--
|
|
||||||
2.5.0
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
|||||||
{ stdenv, qtSubmodule, lib, copyPathsToStore, qtbase, substituteAll, systemd }:
|
|
||||||
|
|
||||||
let inherit (lib) getLib optional; in
|
|
||||||
|
|
||||||
qtSubmodule {
|
|
||||||
name = "qtserialport";
|
|
||||||
qtInputs = [ qtbase ];
|
|
||||||
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
|
||||||
NIX_CFLAGS_COMPILE =
|
|
||||||
optional stdenv.isLinux
|
|
||||||
''-DNIXPKGS_LIBUDEV="${getLib systemd}/lib/libudev"'';
|
|
||||||
}
|
|
@ -1,22 +0,0 @@
|
|||||||
Index: qtserialport-opensource-src-5.8.0/src/serialport/qtudev_p.h
|
|
||||||
===================================================================
|
|
||||||
--- qtserialport-opensource-src-5.8.0.orig/src/serialport/qtudev_p.h
|
|
||||||
+++ qtserialport-opensource-src-5.8.0/src/serialport/qtudev_p.h
|
|
||||||
@@ -111,9 +111,17 @@ inline QFunctionPointer resolveSymbol(QL
|
|
||||||
inline bool resolveSymbols(QLibrary *udevLibrary)
|
|
||||||
{
|
|
||||||
if (!udevLibrary->isLoaded()) {
|
|
||||||
+#ifdef NIXPKGS_LIBUDEV
|
|
||||||
+ udevLibrary->setFileNameAndVersion(QLatin1String(NIXPKGS_LIBUDEV), 1);
|
|
||||||
+#else
|
|
||||||
udevLibrary->setFileNameAndVersion(QStringLiteral("udev"), 1);
|
|
||||||
+#endif
|
|
||||||
if (!udevLibrary->load()) {
|
|
||||||
+#ifdef NIXPKGS_LIBUDEV
|
|
||||||
+ udevLibrary->setFileNameAndVersion(QLatin1String(NIXPKGS_LIBUDEV), 0);
|
|
||||||
+#else
|
|
||||||
udevLibrary->setFileNameAndVersion(QStringLiteral("udev"), 0);
|
|
||||||
+#endif
|
|
||||||
if (!udevLibrary->load()) {
|
|
||||||
qWarning("Failed to load the library: %s, supported version(s): %i and %i", qPrintable(udevLibrary->fileName()), 1, 0);
|
|
||||||
return false;
|
|
@ -1 +0,0 @@
|
|||||||
qtserialport-dlopen-udev.patch
|
|
@ -1,6 +0,0 @@
|
|||||||
{ qtSubmodule, qtbase }:
|
|
||||||
|
|
||||||
qtSubmodule {
|
|
||||||
name = "qtsvg";
|
|
||||||
qtInputs = [ qtbase ];
|
|
||||||
}
|
|
@ -1,72 +0,0 @@
|
|||||||
Index: qttools-opensource-src-5.5.1/src/assistant/help/Qt5HelpConfigExtras.cmake.in
|
|
||||||
===================================================================
|
|
||||||
--- qttools-opensource-src-5.5.1.orig/src/assistant/help/Qt5HelpConfigExtras.cmake.in
|
|
||||||
+++ qttools-opensource-src-5.5.1/src/assistant/help/Qt5HelpConfigExtras.cmake.in
|
|
||||||
@@ -2,11 +2,10 @@
|
|
||||||
if (NOT TARGET Qt5::qcollectiongenerator)
|
|
||||||
add_executable(Qt5::qcollectiongenerator IMPORTED)
|
|
||||||
|
|
||||||
-!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5Help_install_prefix}/$${CMAKE_BIN_DIR}qcollectiongenerator$$CMAKE_BIN_SUFFIX\")
|
|
||||||
-!!ELSE
|
|
||||||
- set(imported_location \"$${CMAKE_BIN_DIR}qcollectiongenerator$$CMAKE_BIN_SUFFIX\")
|
|
||||||
-!!ENDIF
|
|
||||||
+ set(imported_location \"@NIX_OUT@/$${CMAKE_BIN_DIR}qcollectiongenerator$$CMAKE_BIN_SUFFIX\")
|
|
||||||
+ if(NOT EXISTS \"${imported_location}\")
|
|
||||||
+ set(imported_location \"@NIX_DEV@/$${CMAKE_BIN_DIR}qcollectiongenerator$$CMAKE_BIN_SUFFIX\")
|
|
||||||
+ endif()
|
|
||||||
_qt5_Help_check_file_exists(${imported_location})
|
|
||||||
|
|
||||||
set_target_properties(Qt5::qcollectiongenerator PROPERTIES
|
|
||||||
Index: qttools-opensource-src-5.5.1/src/linguist/Qt5LinguistToolsConfig.cmake.in
|
|
||||||
===================================================================
|
|
||||||
--- qttools-opensource-src-5.5.1.orig/src/linguist/Qt5LinguistToolsConfig.cmake.in
|
|
||||||
+++ qttools-opensource-src-5.5.1/src/linguist/Qt5LinguistToolsConfig.cmake.in
|
|
||||||
@@ -44,11 +44,10 @@ endmacro()
|
|
||||||
if (NOT TARGET Qt5::lrelease)
|
|
||||||
add_executable(Qt5::lrelease IMPORTED)
|
|
||||||
|
|
||||||
-!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5_linguisttools_install_prefix}/$${CMAKE_BIN_DIR}lrelease$$CMAKE_BIN_SUFFIX\")
|
|
||||||
-!!ELSE
|
|
||||||
- set(imported_location \"$${CMAKE_BIN_DIR}lrelease$$CMAKE_BIN_SUFFIX\")
|
|
||||||
-!!ENDIF
|
|
||||||
+ set(imported_location \"@NIX_OUT@/$${CMAKE_BIN_DIR}lrelease$$CMAKE_BIN_SUFFIX\")
|
|
||||||
+ if(NOT EXISTS \"${imported_location}\")
|
|
||||||
+ set(imported_location \"@NIX_DEV@/$${CMAKE_BIN_DIR}lrelease$$CMAKE_BIN_SUFFIX\")
|
|
||||||
+ endif()
|
|
||||||
_qt5_LinguistTools_check_file_exists(${imported_location})
|
|
||||||
|
|
||||||
set_target_properties(Qt5::lrelease PROPERTIES
|
|
||||||
@@ -59,11 +58,10 @@ endif()
|
|
||||||
if (NOT TARGET Qt5::lupdate)
|
|
||||||
add_executable(Qt5::lupdate IMPORTED)
|
|
||||||
|
|
||||||
-!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5_linguisttools_install_prefix}/$${CMAKE_BIN_DIR}lupdate$$CMAKE_BIN_SUFFIX\")
|
|
||||||
-!!ELSE
|
|
||||||
- set(imported_location \"$${CMAKE_BIN_DIR}lupdate$$CMAKE_BIN_SUFFIX\")
|
|
||||||
-!!ENDIF
|
|
||||||
+ set(imported_location \"@NIX_OUT@/$${CMAKE_BIN_DIR}lupdate$$CMAKE_BIN_SUFFIX\")
|
|
||||||
+ if(NOT EXISTS \"${imported_location}\")
|
|
||||||
+ set(imported_location \"@NIX_DEV@/$${CMAKE_BIN_DIR}lupdate$$CMAKE_BIN_SUFFIX\")
|
|
||||||
+ endif()
|
|
||||||
_qt5_LinguistTools_check_file_exists(${imported_location})
|
|
||||||
|
|
||||||
set_target_properties(Qt5::lupdate PROPERTIES
|
|
||||||
@@ -74,11 +72,10 @@ endif()
|
|
||||||
if (NOT TARGET Qt5::lconvert)
|
|
||||||
add_executable(Qt5::lconvert IMPORTED)
|
|
||||||
|
|
||||||
-!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
|
|
||||||
- set(imported_location \"${_qt5_linguisttools_install_prefix}/$${CMAKE_BIN_DIR}lconvert$$CMAKE_BIN_SUFFIX\")
|
|
||||||
-!!ELSE
|
|
||||||
- set(imported_location \"$${CMAKE_BIN_DIR}lconvert$$CMAKE_BIN_SUFFIX\")
|
|
||||||
-!!ENDIF
|
|
||||||
+ set(imported_location \"@NIX_OUT@/$${CMAKE_BIN_DIR}lconvert$$CMAKE_BIN_SUFFIX\")
|
|
||||||
+ if(NOT EXISTS \"${imported_location}\")
|
|
||||||
+ set(imported_location \"@NIX_DEV@/$${CMAKE_BIN_DIR}lconvert$$CMAKE_BIN_SUFFIX\")
|
|
||||||
+ endif()
|
|
||||||
_qt5_LinguistTools_check_file_exists(${imported_location})
|
|
||||||
|
|
||||||
set_target_properties(Qt5::lconvert PROPERTIES
|
|
@ -1,12 +0,0 @@
|
|||||||
{ qtSubmodule, lib, copyPathsToStore, qtbase }:
|
|
||||||
|
|
||||||
qtSubmodule {
|
|
||||||
name = "qttools";
|
|
||||||
qtInputs = [ qtbase ];
|
|
||||||
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
|
||||||
postFixup = ''
|
|
||||||
moveToOutput "bin/qdbus" "$out"
|
|
||||||
moveToOutput "bin/qdbusviewer" "$out"
|
|
||||||
moveToOutput "bin/qtpaths" "$out"
|
|
||||||
'';
|
|
||||||
}
|
|
@ -1 +0,0 @@
|
|||||||
cmake-paths.patch
|
|
@ -1,6 +0,0 @@
|
|||||||
{ qtSubmodule, qttools }:
|
|
||||||
|
|
||||||
qtSubmodule {
|
|
||||||
name = "qttranslations";
|
|
||||||
qtInputs = [ qttools ];
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
{ qtSubmodule, qtbase, qtquickcontrols, wayland, pkgconfig }:
|
|
||||||
|
|
||||||
qtSubmodule {
|
|
||||||
name = "qtwayland";
|
|
||||||
qtInputs = [ qtbase qtquickcontrols ];
|
|
||||||
buildInputs = [ wayland ];
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
{ qtSubmodule, qtbase, qtdeclarative }:
|
|
||||||
|
|
||||||
qtSubmodule {
|
|
||||||
name = "qtwebchannel";
|
|
||||||
qtInputs = [ qtbase qtdeclarative ];
|
|
||||||
}
|
|
||||||
|
|
@ -1,90 +0,0 @@
|
|||||||
{ qtSubmodule, qtquickcontrols, qtlocation, qtwebchannel
|
|
||||||
|
|
||||||
, xlibs, libXcursor, libXScrnSaver, libXrandr, libXtst
|
|
||||||
, fontconfig, freetype, harfbuzz, icu, dbus
|
|
||||||
, zlib, minizip, libjpeg, libpng, libtiff, libwebp, libopus
|
|
||||||
, jsoncpp, protobuf, libvpx, srtp, snappy, nss, libevent
|
|
||||||
, alsaLib
|
|
||||||
, libcap
|
|
||||||
, pciutils
|
|
||||||
|
|
||||||
, bison, flex, git, which, gperf
|
|
||||||
, coreutils
|
|
||||||
, pkgconfig, python2
|
|
||||||
|
|
||||||
, lib, stdenv # lib.optional, needsPax
|
|
||||||
}:
|
|
||||||
|
|
||||||
qtSubmodule {
|
|
||||||
name = "qtwebengine";
|
|
||||||
qtInputs = [ qtquickcontrols qtlocation qtwebchannel ];
|
|
||||||
buildInputs = [ bison flex git which gperf ];
|
|
||||||
nativeBuildInputs = [ pkgconfig python2 coreutils ];
|
|
||||||
doCheck = true;
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
|
||||||
|
|
||||||
preConfigure = ''
|
|
||||||
export MAKEFLAGS=-j$NIX_BUILD_CORES
|
|
||||||
substituteInPlace ./src/3rdparty/chromium/build/common.gypi \
|
|
||||||
--replace /bin/echo ${coreutils}/bin/echo
|
|
||||||
substituteInPlace ./src/3rdparty/chromium/v8/build/toolchain.gypi \
|
|
||||||
--replace /bin/echo ${coreutils}/bin/echo
|
|
||||||
substituteInPlace ./src/3rdparty/chromium/v8/build/standalone.gypi \
|
|
||||||
--replace /bin/echo ${coreutils}/bin/echo
|
|
||||||
|
|
||||||
# hardcode paths for which default path resolution does not work in nix
|
|
||||||
sed -i -e 's,\(static QString potentialResourcesPath =\).*,\1 QLatin1String("'$out'/resources");,' src/core/web_engine_library_info.cpp
|
|
||||||
sed -i -e 's,\(static QString processPath\),\1 = QLatin1String("'$out'/libexec/QtWebEngineProcess"),' src/core/web_engine_library_info.cpp
|
|
||||||
sed -i -e 's,\(static QString potentialLocalesPath =\).*,\1 QLatin1String("'$out'/translations/qtwebengine_locales");,' src/core/web_engine_library_info.cpp
|
|
||||||
|
|
||||||
# fix default SSL bundle location
|
|
||||||
sed -i -e 's,/cert.pem,/certs/ca-bundle.crt,' src/3rdparty/chromium/third_party/boringssl/src/crypto/x509/x509_def.c
|
|
||||||
|
|
||||||
configureFlags+="\
|
|
||||||
-plugindir $out/$qtPluginPrefix \
|
|
||||||
-qmldir $out/$qtQmlPrefix \
|
|
||||||
-docdir $out/$qtDocPrefix"
|
|
||||||
'';
|
|
||||||
propagatedBuildInputs = [
|
|
||||||
# Image formats
|
|
||||||
libjpeg libpng libtiff libwebp
|
|
||||||
|
|
||||||
# Video formats
|
|
||||||
srtp libvpx
|
|
||||||
|
|
||||||
# Audio formats
|
|
||||||
libopus
|
|
||||||
|
|
||||||
# Text rendering
|
|
||||||
harfbuzz icu
|
|
||||||
]
|
|
||||||
++ lib.optionals (!stdenv.isDarwin) [
|
|
||||||
dbus zlib minizip snappy nss protobuf jsoncpp libevent
|
|
||||||
|
|
||||||
# Audio formats
|
|
||||||
alsaLib
|
|
||||||
|
|
||||||
# Text rendering
|
|
||||||
fontconfig freetype
|
|
||||||
|
|
||||||
libcap
|
|
||||||
pciutils
|
|
||||||
|
|
||||||
# X11 libs
|
|
||||||
xlibs.xrandr libXScrnSaver libXcursor libXrandr xlibs.libpciaccess libXtst
|
|
||||||
xlibs.libXcomposite
|
|
||||||
];
|
|
||||||
patches = [
|
|
||||||
./chromium-clang-update-py.patch
|
|
||||||
] ++ stdenv.lib.optional stdenv.needsPax ./qtwebengine-paxmark-mksnapshot.patch;
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
cat > $out/libexec/qt.conf <<EOF
|
|
||||||
[Paths]
|
|
||||||
Prefix = ..
|
|
||||||
EOF
|
|
||||||
|
|
||||||
paxmark m $out/libexec/QtWebEngineProcess
|
|
||||||
'';
|
|
||||||
}
|
|
@ -1,53 +0,0 @@
|
|||||||
From 862ce7d357a3ec32683ac6ec7c0ebdc9346b44ba Mon Sep 17 00:00:00 2001
|
|
||||||
From: Thomas Tuegel <ttuegel@gmail.com>
|
|
||||||
Date: Sun, 23 Aug 2015 09:18:54 -0500
|
|
||||||
Subject: [PATCH 1/3] dlopen webkit nsplugin
|
|
||||||
|
|
||||||
---
|
|
||||||
Source/WebCore/plugins/qt/PluginPackageQt.cpp | 2 +-
|
|
||||||
Source/WebCore/plugins/qt/PluginViewQt.cpp | 2 +-
|
|
||||||
Source/WebKit2/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp | 2 +-
|
|
||||||
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/Source/WebCore/plugins/qt/PluginPackageQt.cpp b/Source/WebCore/plugins/qt/PluginPackageQt.cpp
|
|
||||||
index a923d49..2731d05 100644
|
|
||||||
--- a/Source/WebCore/plugins/qt/PluginPackageQt.cpp
|
|
||||||
+++ b/Source/WebCore/plugins/qt/PluginPackageQt.cpp
|
|
||||||
@@ -136,7 +136,7 @@ static void initializeGtk(QLibrary* module = 0)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- QLibrary library(QLatin1String("libgtk-x11-2.0"), 0);
|
|
||||||
+ QLibrary library(QLatin1String("@gtk@/lib/libgtk-x11-2.0"), 0);
|
|
||||||
if (library.load()) {
|
|
||||||
typedef void *(*gtk_init_check_ptr)(int*, char***);
|
|
||||||
gtk_init_check_ptr gtkInitCheck = (gtk_init_check_ptr)library.resolve("gtk_init_check");
|
|
||||||
diff --git a/Source/WebCore/plugins/qt/PluginViewQt.cpp b/Source/WebCore/plugins/qt/PluginViewQt.cpp
|
|
||||||
index de06a2f..363bde5 100644
|
|
||||||
--- a/Source/WebCore/plugins/qt/PluginViewQt.cpp
|
|
||||||
+++ b/Source/WebCore/plugins/qt/PluginViewQt.cpp
|
|
||||||
@@ -697,7 +697,7 @@ static Display *getPluginDisplay()
|
|
||||||
// support gdk based plugins (like flash) that use a different X connection.
|
|
||||||
// The code below has the same effect as this one:
|
|
||||||
// Display *gdkDisplay = gdk_x11_display_get_xdisplay(gdk_display_get_default());
|
|
||||||
- QLibrary library(QLatin1String("libgdk-x11-2.0"), 0);
|
|
||||||
+ QLibrary library(QLatin1String("@gdk_pixbuf@/lib/libgdk-x11-2.0"), 0);
|
|
||||||
if (!library.load())
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
diff --git a/Source/WebKit2/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp b/Source/WebKit2/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp
|
|
||||||
index d734ff6..62a2197 100644
|
|
||||||
--- a/Source/WebKit2/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp
|
|
||||||
+++ b/Source/WebKit2/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp
|
|
||||||
@@ -64,7 +64,7 @@ static Display* getPluginDisplay()
|
|
||||||
// The code below has the same effect as this one:
|
|
||||||
// Display *gdkDisplay = gdk_x11_display_get_xdisplay(gdk_display_get_default());
|
|
||||||
|
|
||||||
- QLibrary library(QLatin1String("libgdk-x11-2.0"), 0);
|
|
||||||
+ QLibrary library(QLatin1String("@gdk_pixbuf@/libgdk-x11-2.0"), 0);
|
|
||||||
if (!library.load())
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
--
|
|
||||||
2.5.0
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
|||||||
From 6a407d30357c2551abceac75c82f4a1688e47437 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Thomas Tuegel <ttuegel@gmail.com>
|
|
||||||
Date: Sun, 23 Aug 2015 09:19:16 -0500
|
|
||||||
Subject: [PATCH 2/3] dlopen webkit gtk
|
|
||||||
|
|
||||||
---
|
|
||||||
Source/WebKit2/PluginProcess/qt/PluginProcessMainQt.cpp | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/Source/WebKit2/PluginProcess/qt/PluginProcessMainQt.cpp b/Source/WebKit2/PluginProcess/qt/PluginProcessMainQt.cpp
|
|
||||||
index 8de6521..0b25748 100644
|
|
||||||
--- a/Source/WebKit2/PluginProcess/qt/PluginProcessMainQt.cpp
|
|
||||||
+++ b/Source/WebKit2/PluginProcess/qt/PluginProcessMainQt.cpp
|
|
||||||
@@ -53,7 +53,7 @@ static void messageHandler(QtMsgType type, const QMessageLogContext&, const QStr
|
|
||||||
|
|
||||||
static bool initializeGtk()
|
|
||||||
{
|
|
||||||
- QLibrary gtkLibrary(QLatin1String("libgtk-x11-2.0"), 0);
|
|
||||||
+ QLibrary gtkLibrary(QLatin1String("@gtk@/lib/libgtk-x11-2.0"), 0);
|
|
||||||
if (!gtkLibrary.load())
|
|
||||||
return false;
|
|
||||||
typedef void* (*gtk_init_ptr)(void*, void*);
|
|
||||||
--
|
|
||||||
2.5.0
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
|||||||
From 864020dd47c3b6d532d9f26b82185904cf9324f2 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Thomas Tuegel <ttuegel@gmail.com>
|
|
||||||
Date: Sun, 23 Aug 2015 09:19:29 -0500
|
|
||||||
Subject: [PATCH 3/3] dlopen webkit udev
|
|
||||||
|
|
||||||
---
|
|
||||||
Source/WebCore/platform/qt/GamepadsQt.cpp | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/Source/WebCore/platform/qt/GamepadsQt.cpp b/Source/WebCore/platform/qt/GamepadsQt.cpp
|
|
||||||
index 60ff317..da8ac69 100644
|
|
||||||
--- a/Source/WebCore/platform/qt/GamepadsQt.cpp
|
|
||||||
+++ b/Source/WebCore/platform/qt/GamepadsQt.cpp
|
|
||||||
@@ -111,13 +111,12 @@ private:
|
|
||||||
bool load()
|
|
||||||
{
|
|
||||||
m_libUdev.setLoadHints(QLibrary::ResolveAllSymbolsHint);
|
|
||||||
- m_libUdev.setFileNameAndVersion(QStringLiteral("udev"), 1);
|
|
||||||
+ m_libUdev.setFileNameAndVersion(QLatin1String(NIXPKGS_LIBUDEV), 1);
|
|
||||||
m_loaded = m_libUdev.load();
|
|
||||||
if (resolveMethods())
|
|
||||||
return true;
|
|
||||||
|
|
||||||
- m_libUdev.setFileNameAndVersion(QStringLiteral("udev"), 0);
|
|
||||||
+ m_libUdev.setFileNameAndVersion(QLatin1String(NIXPKGS_LIBUDEV), 0);
|
|
||||||
m_loaded = m_libUdev.load();
|
|
||||||
return resolveMethods();
|
|
||||||
}
|
|
||||||
--
|
|
||||||
2.5.0
|
|
||||||
|
|
@ -1,40 +0,0 @@
|
|||||||
{ qtSubmodule, stdenv, copyPathsToStore, lib
|
|
||||||
, qtdeclarative, qtlocation, qtsensors
|
|
||||||
, fontconfig, gdk_pixbuf, gtk2, libwebp, libxml2, libxslt
|
|
||||||
, sqlite, systemd, glib, gst_all_1
|
|
||||||
, bison2, flex, gdb, gperf, perl, pkgconfig, python2, ruby
|
|
||||||
, darwin
|
|
||||||
, substituteAll
|
|
||||||
, flashplayerFix ? false
|
|
||||||
}:
|
|
||||||
|
|
||||||
let inherit (lib) optional optionals getLib; in
|
|
||||||
|
|
||||||
qtSubmodule {
|
|
||||||
name = "qtwebkit";
|
|
||||||
qtInputs = [ qtdeclarative qtlocation qtsensors ];
|
|
||||||
buildInputs = [ fontconfig libwebp libxml2 libxslt sqlite glib gst_all_1.gstreamer gst_all_1.gst-plugins-base ]
|
|
||||||
++ optionals (stdenv.isDarwin) (with darwin.apple_sdk.frameworks; [ OpenGL ]);
|
|
||||||
nativeBuildInputs = [
|
|
||||||
bison2 flex gdb gperf perl pkgconfig python2 ruby
|
|
||||||
];
|
|
||||||
|
|
||||||
__impureHostDeps = optionals (stdenv.isDarwin) [
|
|
||||||
"/usr/lib/libicucore.dylib"
|
|
||||||
];
|
|
||||||
|
|
||||||
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE =
|
|
||||||
optionals flashplayerFix
|
|
||||||
[
|
|
||||||
''-DNIXPKGS_LIBGTK2="${getLib gtk2}/lib/libgtk-x11-2.0"''
|
|
||||||
''-DNIXPKGS_LIBGDK2="${getLib gdk_pixbuf}/lib/libgdk-x11-2.0"''
|
|
||||||
]
|
|
||||||
++ optional (!stdenv.isDarwin) ''-DNIXPKGS_LIBUDEV="${getLib systemd}/lib/libudev"'';
|
|
||||||
|
|
||||||
# Hack to avoid TMPDIR in RPATHs.
|
|
||||||
preFixup = ''rm -rf "$(pwd)" && mkdir "$(pwd)" '';
|
|
||||||
|
|
||||||
meta.maintainers = with stdenv.lib.maintainers; [ abbradar periklis ];
|
|
||||||
}
|
|
@ -1,64 +0,0 @@
|
|||||||
Index: qtwebkit-opensource-src-5.8.0/Source/WebCore/plugins/qt/PluginPackageQt.cpp
|
|
||||||
===================================================================
|
|
||||||
--- qtwebkit-opensource-src-5.8.0.orig/Source/WebCore/plugins/qt/PluginPackageQt.cpp
|
|
||||||
+++ qtwebkit-opensource-src-5.8.0/Source/WebCore/plugins/qt/PluginPackageQt.cpp
|
|
||||||
@@ -136,7 +136,11 @@ static void initializeGtk(QLibrary* modu
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
+#ifdef NIXPKGS_LIBGTK2
|
|
||||||
+ QLibrary library(QLatin1String(NIXPKGS_LIBGTK2), 0);
|
|
||||||
+#else
|
|
||||||
QLibrary library(QLatin1String("libgtk-x11-2.0"), 0);
|
|
||||||
+#endif
|
|
||||||
if (library.load()) {
|
|
||||||
typedef void *(*gtk_init_check_ptr)(int*, char***);
|
|
||||||
gtk_init_check_ptr gtkInitCheck = (gtk_init_check_ptr)library.resolve("gtk_init_check");
|
|
||||||
Index: qtwebkit-opensource-src-5.8.0/Source/WebCore/plugins/qt/PluginViewQt.cpp
|
|
||||||
===================================================================
|
|
||||||
--- qtwebkit-opensource-src-5.8.0.orig/Source/WebCore/plugins/qt/PluginViewQt.cpp
|
|
||||||
+++ qtwebkit-opensource-src-5.8.0/Source/WebCore/plugins/qt/PluginViewQt.cpp
|
|
||||||
@@ -697,7 +697,11 @@ static Display *getPluginDisplay()
|
|
||||||
// support gdk based plugins (like flash) that use a different X connection.
|
|
||||||
// The code below has the same effect as this one:
|
|
||||||
// Display *gdkDisplay = gdk_x11_display_get_xdisplay(gdk_display_get_default());
|
|
||||||
+#ifdef NIXPKGS_LIBGDK2
|
|
||||||
+ QLibrary library(QLatin1String(NIXPKGS_LIBGDK2), 0);
|
|
||||||
+#else
|
|
||||||
QLibrary library(QLatin1String("libgdk-x11-2.0"), 0);
|
|
||||||
+#endif
|
|
||||||
if (!library.load())
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
Index: qtwebkit-opensource-src-5.8.0/Source/WebKit2/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp
|
|
||||||
===================================================================
|
|
||||||
--- qtwebkit-opensource-src-5.8.0.orig/Source/WebKit2/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp
|
|
||||||
+++ qtwebkit-opensource-src-5.8.0/Source/WebKit2/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp
|
|
||||||
@@ -64,7 +64,11 @@ static Display* getPluginDisplay()
|
|
||||||
// The code below has the same effect as this one:
|
|
||||||
// Display *gdkDisplay = gdk_x11_display_get_xdisplay(gdk_display_get_default());
|
|
||||||
|
|
||||||
+#ifdef NIXPKGS_LIBGDK2
|
|
||||||
+ QLibrary library(QLatin1String(NIXPKGS_LIBGDK2), 0);
|
|
||||||
+#else
|
|
||||||
QLibrary library(QLatin1String("libgdk-x11-2.0"), 0);
|
|
||||||
+#endif
|
|
||||||
if (!library.load())
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
Index: qtwebkit-opensource-src-5.8.0/Source/WebKit2/PluginProcess/qt/PluginProcessMainQt.cpp
|
|
||||||
===================================================================
|
|
||||||
--- qtwebkit-opensource-src-5.8.0.orig/Source/WebKit2/PluginProcess/qt/PluginProcessMainQt.cpp
|
|
||||||
+++ qtwebkit-opensource-src-5.8.0/Source/WebKit2/PluginProcess/qt/PluginProcessMainQt.cpp
|
|
||||||
@@ -53,7 +53,11 @@ static void messageHandler(QtMsgType typ
|
|
||||||
|
|
||||||
static bool initializeGtk()
|
|
||||||
{
|
|
||||||
+#ifdef NIXPKGS_LIBGTK2
|
|
||||||
+ QLibrary gtkLibrary(QLatin1String(NIXPKGS_LIBGTK2), 0);
|
|
||||||
+#else
|
|
||||||
QLibrary gtkLibrary(QLatin1String("libgtk-x11-2.0"), 0);
|
|
||||||
+#endif
|
|
||||||
if (!gtkLibrary.load())
|
|
||||||
return false;
|
|
||||||
typedef void* (*gtk_init_ptr)(void*, void*);
|
|
@ -1,86 +0,0 @@
|
|||||||
From: Konstantin Tokarev <annulen@yandex.ru>
|
|
||||||
Date: Thu, 4 May 2017 12:12:37 +0000 (+0300)
|
|
||||||
Subject: Fix compilation with ICU 59
|
|
||||||
X-Git-Url: https://codereview.qt-project.org/gitweb?p=qt%2Fqtwebkit.git;a=commitdiff_plain;h=bf172ae289a1348842005a9421797970f9b72060;hp=821eaaadc9d63d03aca65cf757230b520daaaa7c
|
|
||||||
|
|
||||||
Fix compilation with ICU 59
|
|
||||||
|
|
||||||
Upstream fix: https://bugs.webkit.org/show_bug.cgi?id=171612
|
|
||||||
|
|
||||||
Task-number: QTBUG-60532
|
|
||||||
Change-Id: I6014feea213aa70ebe40b09d9d1a03fd1ed3c843
|
|
||||||
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
|
|
||||||
---
|
|
||||||
|
|
||||||
diff --git a/Source/JavaScriptCore/API/JSStringRef.cpp b/Source/JavaScriptCore/API/JSStringRef.cpp
|
|
||||||
index 812f3d4..77a3fd0 100644
|
|
||||||
--- a/Source/JavaScriptCore/API/JSStringRef.cpp
|
|
||||||
+++ b/Source/JavaScriptCore/API/JSStringRef.cpp
|
|
||||||
@@ -37,7 +37,7 @@ using namespace WTF::Unicode;
|
|
||||||
JSStringRef JSStringCreateWithCharacters(const JSChar* chars, size_t numChars)
|
|
||||||
{
|
|
||||||
initializeThreading();
|
|
||||||
- return OpaqueJSString::create(chars, numChars).leakRef();
|
|
||||||
+ return OpaqueJSString::create(reinterpret_cast<const UChar*>(chars), numChars).leakRef();
|
|
||||||
}
|
|
||||||
|
|
||||||
JSStringRef JSStringCreateWithUTF8CString(const char* string)
|
|
||||||
@@ -62,7 +62,7 @@ JSStringRef JSStringCreateWithUTF8CString(const char* string)
|
|
||||||
JSStringRef JSStringCreateWithCharactersNoCopy(const JSChar* chars, size_t numChars)
|
|
||||||
{
|
|
||||||
initializeThreading();
|
|
||||||
- return OpaqueJSString::create(StringImpl::createWithoutCopying(chars, numChars, WTF::DoesNotHaveTerminatingNullCharacter)).leakRef();
|
|
||||||
+ return OpaqueJSString::create(StringImpl::createWithoutCopying(reinterpret_cast<const UChar*>(chars), numChars, WTF::DoesNotHaveTerminatingNullCharacter)).leakRef();
|
|
||||||
}
|
|
||||||
|
|
||||||
JSStringRef JSStringRetain(JSStringRef string)
|
|
||||||
@@ -83,7 +83,7 @@ size_t JSStringGetLength(JSStringRef string)
|
|
||||||
|
|
||||||
const JSChar* JSStringGetCharactersPtr(JSStringRef string)
|
|
||||||
{
|
|
||||||
- return string->characters();
|
|
||||||
+ return reinterpret_cast<const JSChar*>(string->characters());
|
|
||||||
}
|
|
||||||
|
|
||||||
size_t JSStringGetMaximumUTF8CStringSize(JSStringRef string)
|
|
||||||
diff --git a/Source/JavaScriptCore/runtime/DateConversion.cpp b/Source/JavaScriptCore/runtime/DateConversion.cpp
|
|
||||||
index 0b57f01..05e2733 100644
|
|
||||||
--- a/Source/JavaScriptCore/runtime/DateConversion.cpp
|
|
||||||
+++ b/Source/JavaScriptCore/runtime/DateConversion.cpp
|
|
||||||
@@ -107,7 +107,8 @@ String formatDateTime(const GregorianDateTime& t, DateTimeFormat format, bool as
|
|
||||||
#if OS(WINDOWS)
|
|
||||||
TIME_ZONE_INFORMATION timeZoneInformation;
|
|
||||||
GetTimeZoneInformation(&timeZoneInformation);
|
|
||||||
- const WCHAR* timeZoneName = t.isDST() ? timeZoneInformation.DaylightName : timeZoneInformation.StandardName;
|
|
||||||
+ const WCHAR* winTimeZoneName = t.isDST() ? timeZoneInformation.DaylightName : timeZoneInformation.StandardName;
|
|
||||||
+ String timeZoneName(reinterpret_cast<const UChar*>(winTimeZoneName));
|
|
||||||
#else
|
|
||||||
struct tm gtm = t;
|
|
||||||
char timeZoneName[70];
|
|
||||||
diff --git a/Source/WTF/wtf/TypeTraits.h b/Source/WTF/wtf/TypeTraits.h
|
|
||||||
index 9df2c95..f5d6121 100644
|
|
||||||
--- a/Source/WTF/wtf/TypeTraits.h
|
|
||||||
+++ b/Source/WTF/wtf/TypeTraits.h
|
|
||||||
@@ -72,6 +72,9 @@ namespace WTF {
|
|
||||||
template<> struct IsInteger<unsigned long> { static const bool value = true; };
|
|
||||||
template<> struct IsInteger<long long> { static const bool value = true; };
|
|
||||||
template<> struct IsInteger<unsigned long long> { static const bool value = true; };
|
|
||||||
+#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__) || (defined(_HAS_CHAR16_T_LANGUAGE_SUPPORT) && _HAS_CHAR16_T_LANGUAGE_SUPPORT)
|
|
||||||
+ template<> struct IsInteger<char16_t> { static const bool value = true; };
|
|
||||||
+#endif
|
|
||||||
#if !COMPILER(MSVC) || defined(_NATIVE_WCHAR_T_DEFINED)
|
|
||||||
template<> struct IsInteger<wchar_t> { static const bool value = true; };
|
|
||||||
#endif
|
|
||||||
diff --git a/Source/WebKit2/Shared/API/c/WKString.cpp b/Source/WebKit2/Shared/API/c/WKString.cpp
|
|
||||||
index cbac67d..23400a6 100644
|
|
||||||
--- a/Source/WebKit2/Shared/API/c/WKString.cpp
|
|
||||||
+++ b/Source/WebKit2/Shared/API/c/WKString.cpp
|
|
||||||
@@ -55,7 +55,7 @@ size_t WKStringGetLength(WKStringRef stringRef)
|
|
||||||
size_t WKStringGetCharacters(WKStringRef stringRef, WKChar* buffer, size_t bufferLength)
|
|
||||||
{
|
|
||||||
COMPILE_ASSERT(sizeof(WKChar) == sizeof(UChar), WKStringGetCharacters_sizeof_WKChar_matches_UChar);
|
|
||||||
- return (toImpl(stringRef)->getCharacters(static_cast<UChar*>(buffer), bufferLength));
|
|
||||||
+ return (toImpl(stringRef)->getCharacters(reinterpret_cast<UChar*>(buffer), bufferLength));
|
|
||||||
}
|
|
||||||
|
|
||||||
size_t WKStringGetMaximumUTF8CStringSize(WKStringRef stringRef)
|
|
@ -1,13 +0,0 @@
|
|||||||
Index: qtwebkit-opensource-src-5.8.0/Source/WTF/WTF.pri
|
|
||||||
===================================================================
|
|
||||||
--- qtwebkit-opensource-src-5.8.0.orig/Source/WTF/WTF.pri
|
|
||||||
+++ qtwebkit-opensource-src-5.8.0/Source/WTF/WTF.pri
|
|
||||||
@@ -12,7 +12,7 @@ mac {
|
|
||||||
# Mac OS does ship libicu but not the associated header files.
|
|
||||||
# Therefore WebKit provides adequate header files.
|
|
||||||
INCLUDEPATH = $${ROOT_WEBKIT_DIR}/Source/WTF/icu $$INCLUDEPATH
|
|
||||||
- LIBS += -licucore
|
|
||||||
+ LIBS += /usr/lib/libicucore.dylib
|
|
||||||
} else:!use?(wchar_unicode): {
|
|
||||||
win32 {
|
|
||||||
CONFIG(static, static|shared) {
|
|
@ -1,4 +0,0 @@
|
|||||||
qtwebkit-dlopen-gtk.patch
|
|
||||||
qtwebkit-dlopen-udev.patch
|
|
||||||
qtwebkit-icucore-darwin.patch
|
|
||||||
qtwebkit-icu-59.patch
|
|
@ -1,6 +0,0 @@
|
|||||||
{ qtSubmodule, qtbase, qtdeclarative }:
|
|
||||||
|
|
||||||
qtSubmodule {
|
|
||||||
name = "qtwebsockets";
|
|
||||||
qtInputs = [ qtbase qtdeclarative ];
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
{ qtSubmodule, qtbase }:
|
|
||||||
|
|
||||||
qtSubmodule {
|
|
||||||
name = "qtx11extras";
|
|
||||||
qtInputs = [ qtbase ];
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
{ qtSubmodule, qtbase }:
|
|
||||||
|
|
||||||
qtSubmodule {
|
|
||||||
name = "qtxmlpatterns";
|
|
||||||
qtInputs = [ qtbase ];
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user