Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libqtrest] Add new port #34455

Merged
merged 7 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions ports/libqtrest/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO qtrest/qtrest
REF ${VERSION}
SHA512 2bdbbdde7c4f7a27943c93a2a26abe89e087e6b7c32d0e481422a8ad3e78c66c6921ef00c1cbf17f3b61db8a678685371c819218d10576ac9ec1548262415c04
HEAD_REF master
)

if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
set(BUILD_TYPE SHARED)
else()
set(BUILD_TYPE STATIC)
endif()

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
qml WITH_QML_SUPPORT
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_TYPE=${BUILD_TYPE}
-DBUILD_EXAMPLE=0
${FEATURE_OPTIONS}
)

vcpkg_cmake_install()
vcpkg_copy_pdbs()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()
29 changes: 29 additions & 0 deletions ports/libqtrest/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "libqtrest",
"version": "0.4.0",
"description": "Small and simple REST API (Json/Xml) client for any Qt/QML C++ application",
"homepage": "https://github.com/qtrest/qtrest",
"license": "MIT",
"supports": "!uwp",
"dependencies": [
{
"name": "qt5-base",
"default-features": false
},
{
"name": "vcpkg-cmake",
"host": true
}
],
"features": {
"qml": {
"description": "Enable QML support to compile with required dependencies",
"dependencies": [
{
"name": "qt5-declarative",
"default-features": false
}
]
}
}
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4588,6 +4588,10 @@
"baseline": "4.1.1",
"port-version": 2
},
"libqtrest": {
"baseline": "0.4.0",
"port-version": 0
},
"librabbitmq": {
"baseline": "0.11.0",
"port-version": 2
Expand Down
9 changes: 9 additions & 0 deletions versions/l-/libqtrest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "efcb288a743d19fa7e795479221b17644864890e",
"version": "0.4.0",
"port-version": 0
}
]
}