aboutsummaryrefslogtreecommitdiff
path: root/ports/qt5-modularscripts
diff options
context:
space:
mode:
authorMaurice Kalinowski <mauricek@users.noreply.github.com>2019-03-22 09:08:50 +0100
committerPhil Christensen <philc@microsoft.com>2019-03-22 01:08:50 -0700
commit3d2db597ce17afc9308c515ef0ce3de7ddf2ffe1 (patch)
treede0f9344431d31b37df1ef11dfddac5a7cdca361 /ports/qt5-modularscripts
parent8b4a607c328d100ac9892e2cbcfb9a4b0cf44c10 (diff)
downloadvcpkg-3d2db597ce17afc9308c515ef0ce3de7ddf2ffe1.tar.gz
vcpkg-3d2db597ce17afc9308c515ef0ce3de7ddf2ffe1.zip
[qt5-mqtt] new port Qtmqtt (#5736) (#5737)
* [qt5-modularscripts] Split build steps When building modules not available from the vendor download side, the build process stays the same. Create two functions, one for accessing the sources, the other for compilation. * [qtmqtt] Add new port (#5736)
Diffstat (limited to 'ports/qt5-modularscripts')
-rw-r--r--ports/qt5-modularscripts/CONTROL2
-rw-r--r--ports/qt5-modularscripts/qt_modular_library.cmake10
2 files changed, 10 insertions, 2 deletions
diff --git a/ports/qt5-modularscripts/CONTROL b/ports/qt5-modularscripts/CONTROL
index eedb58432..f8e6f4894 100644
--- a/ports/qt5-modularscripts/CONTROL
+++ b/ports/qt5-modularscripts/CONTROL
@@ -1,3 +1,3 @@
Source: qt5-modularscripts
-Version: 2019-02-02
+Version: 2019-03-21
Description: Vcpkg helpers to package qt5 modules
diff --git a/ports/qt5-modularscripts/qt_modular_library.cmake b/ports/qt5-modularscripts/qt_modular_library.cmake
index fc3ebdef0..9f6d23fa1 100644
--- a/ports/qt5-modularscripts/qt_modular_library.cmake
+++ b/ports/qt5-modularscripts/qt_modular_library.cmake
@@ -1,6 +1,6 @@
set(_qt5base_port_dir "${CMAKE_CURRENT_LIST_DIR}")
-function(qt_modular_library NAME HASH)
+function(qt_modular_fetch_library NAME HASH TARGET_SOURCE_PATH)
string(LENGTH "${CURRENT_BUILDTREES_DIR}" BUILDTREES_PATH_LENGTH)
if(BUILDTREES_PATH_LENGTH GREATER 45)
message(WARNING "Qt5's buildsystem uses very long paths and may fail on your system.\n"
@@ -23,6 +23,10 @@ function(qt_modular_library NAME HASH)
REF ${FULL_VERSION}
)
+ set(${TARGET_SOURCE_PATH} ${SOURCE_PATH} PARENT_SCOPE)
+endfunction()
+
+function(qt_modular_build_library SOURCE_PATH)
# This fixes issues on machines with default codepages that are not ASCII compatible, such as some CJK encodings
set(ENV{_CL_} "/utf-8")
@@ -139,5 +143,9 @@ function(qt_modular_library NAME HASH)
set(LICENSE_PATH "${SOURCE_PATH}/LICENSE.GPL3-EXCEPT")
endif()
file(INSTALL ${LICENSE_PATH} DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
+endfunction()
+function(qt_modular_library NAME HASH)
+ qt_modular_fetch_library(${NAME} ${HASH} TARGET_SOURCE_PATH)
+ qt_modular_build_library(${TARGET_SOURCE_PATH})
endfunction()