early-access version 2853
This commit is contained in:
22
externals/vcpkg/ports/qtimageformats/no_target_promotion.patch
vendored
Executable file
22
externals/vcpkg/ports/qtimageformats/no_target_promotion.patch
vendored
Executable file
@@ -0,0 +1,22 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 7fdd7ddbd..f189c472c 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -9,7 +9,16 @@ project(QtImageFormats # special case
|
||||
HOMEPAGE_URL "https://qt.io/"
|
||||
LANGUAGES CXX C
|
||||
)
|
||||
-
|
||||
+find_package(Threads)
|
||||
+set_property(TARGET Threads::Threads PROPERTY _qt_no_promote_global TRUE)
|
||||
+find_package(ZLIB)
|
||||
+if(TARGET ZLIB::ZLIB)
|
||||
+ set_property(TARGET ZLIB::ZLIB PROPERTY _qt_no_promote_global TRUE)
|
||||
+endif()
|
||||
+find_package(JPEG)
|
||||
+if(TARGET JPEG::JPEG)
|
||||
+ set_property(TARGET JPEG::JPEG PROPERTY _qt_no_promote_global TRUE)
|
||||
+endif()
|
||||
# special case begin
|
||||
# Make sure we only use latest private CMake API, aka no compatibility wrappers.
|
||||
set(QT_NO_INTERNAL_COMPATIBILITY_FUNCTIONS TRUE)
|
||||
21
externals/vcpkg/ports/qtimageformats/no_target_promotion_latest.patch
vendored
Executable file
21
externals/vcpkg/ports/qtimageformats/no_target_promotion_latest.patch
vendored
Executable file
@@ -0,0 +1,21 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 7fdd7ddbd..f189c472c 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -9,6 +9,15 @@ project(QtImageFormats # special case
|
||||
HOMEPAGE_URL "https://qt.io/"
|
||||
LANGUAGES CXX C
|
||||
)
|
||||
-
|
||||
+find_package(Threads)
|
||||
+set_property(TARGET Threads::Threads PROPERTY _qt_no_promote_global TRUE)
|
||||
+find_package(ZLIB)
|
||||
+if(TARGET ZLIB::ZLIB)
|
||||
+ set_property(TARGET ZLIB::ZLIB PROPERTY _qt_no_promote_global TRUE)
|
||||
+endif()
|
||||
+find_package(JPEG)
|
||||
+if(TARGET JPEG::JPEG)
|
||||
+ set_property(TARGET JPEG::JPEG PROPERTY _qt_no_promote_global TRUE)
|
||||
+endif()
|
||||
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core) # special case
|
||||
find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG OPTIONAL_COMPONENTS Gui) # special case
|
||||
44
externals/vcpkg/ports/qtimageformats/portfile.cmake
vendored
Executable file
44
externals/vcpkg/ports/qtimageformats/portfile.cmake
vendored
Executable file
@@ -0,0 +1,44 @@
|
||||
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) # Only plugins
|
||||
set(SCRIPT_PATH "${CURRENT_INSTALLED_DIR}/share/qtbase")
|
||||
include("${SCRIPT_PATH}/qt_install_submodule.cmake")
|
||||
|
||||
if(NOT VCPKG_USE_HEAD_VERSION AND NOT QT_IS_LATEST)
|
||||
set(${PORT}_PATCHES no_target_promotion.patch)
|
||||
else()
|
||||
set(${PORT}_PATCHES no_target_promotion_latest.patch)
|
||||
endif()
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
#"jasper" CMAKE_REQUIRE_FIND_PACKAGE_WrapJasper
|
||||
#"webp" CMAKE_REQUIRE_FIND_PACKAGE_WrapWebP
|
||||
#"tiff" CMAKE_REQUIRE_FIND_PACKAGE_TIFF
|
||||
INVERTED_FEATURES
|
||||
"jasper" CMAKE_DISABLE_FIND_PACKAGE_WrapJasper
|
||||
"webp" CMAKE_DISABLE_FIND_PACKAGE_WrapWebP
|
||||
"tiff" CMAKE_DISABLE_FIND_PACKAGE_TIFF
|
||||
)
|
||||
|
||||
if("jasper" IN_LIST FEATURES)
|
||||
list(APPEND FEATURE_OPTIONS -DINPUT_jasper=system)
|
||||
else()
|
||||
list(APPEND FEATURE_OPTIONS -DINPUT_jasper=no)
|
||||
endif()
|
||||
if("webp" IN_LIST FEATURES)
|
||||
list(APPEND FEATURE_OPTIONS -DINPUT_webp=system)
|
||||
else()
|
||||
list(APPEND FEATURE_OPTIONS -DINPUT_webp=no)
|
||||
endif()
|
||||
if("tiff" IN_LIST FEATURES)
|
||||
list(APPEND FEATURE_OPTIONS -DINPUT_tiff=system)
|
||||
else()
|
||||
list(APPEND FEATURE_OPTIONS -DINPUT_tiff=no)
|
||||
endif()
|
||||
list(APPEND FEATURE_OPTIONS -DINPUT_mng=no) # marked as FIXME
|
||||
|
||||
qt_install_submodule(PATCHES ${${PORT}_PATCHES}
|
||||
CONFIGURE_OPTIONS
|
||||
${FEATURE_OPTIONS}
|
||||
CONFIGURE_OPTIONS_RELEASE
|
||||
CONFIGURE_OPTIONS_DEBUG
|
||||
)
|
||||
45
externals/vcpkg/ports/qtimageformats/vcpkg.json
vendored
Executable file
45
externals/vcpkg/ports/qtimageformats/vcpkg.json
vendored
Executable file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"name": "qtimageformats",
|
||||
"version": "6.3.0",
|
||||
"description": "Additional Image Format plugins for Qt",
|
||||
"homepage": "https://www.qt.io/",
|
||||
"license": null,
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "qtbase",
|
||||
"default-features": false,
|
||||
"features": [
|
||||
"gui"
|
||||
]
|
||||
}
|
||||
],
|
||||
"default-features": [
|
||||
"default-features",
|
||||
"jasper",
|
||||
"tiff",
|
||||
"webp"
|
||||
],
|
||||
"features": {
|
||||
"default-features": {
|
||||
"description": "Platform-dependent default features"
|
||||
},
|
||||
"jasper": {
|
||||
"description": "Use jasper",
|
||||
"dependencies": [
|
||||
"jasper"
|
||||
]
|
||||
},
|
||||
"tiff": {
|
||||
"description": "Use TIFF",
|
||||
"dependencies": [
|
||||
"tiff"
|
||||
]
|
||||
},
|
||||
"webp": {
|
||||
"description": "Use WebP",
|
||||
"dependencies": [
|
||||
"libwebp"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user