diff options
Diffstat (limited to 'vcpkg/ports/qlementine')
| -rw-r--r-- | vcpkg/ports/qlementine/portfile.cmake | 28 | ||||
| -rw-r--r-- | vcpkg/ports/qlementine/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/qlementine/vcpkg.json | 26 |
3 files changed, 58 insertions, 0 deletions
diff --git a/vcpkg/ports/qlementine/portfile.cmake b/vcpkg/ports/qlementine/portfile.cmake new file mode 100644 index 0000000..c909d74 --- /dev/null +++ b/vcpkg/ports/qlementine/portfile.cmake @@ -0,0 +1,28 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO oclero/qlementine + REF "v${VERSION}" + SHA512 dcba4b7a29352533ad63b4de22ab40985e84d08d5ad87b22a061c9bc0ed4d52bcc0277ef3ad20db4291c4dd9480a170323f6343e818badc0361457fc9ec6d2f1 +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DQLEMENTINE_SANDBOX=OFF + -DQLEMENTINE_SHOWCASE=OFF +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/qlementine) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +vcpkg_copy_pdbs() + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") diff --git a/vcpkg/ports/qlementine/usage b/vcpkg/ports/qlementine/usage new file mode 100644 index 0000000..ee5dde4 --- /dev/null +++ b/vcpkg/ports/qlementine/usage @@ -0,0 +1,4 @@ +qlementine provides CMake targets: + + find_package(qlementine CONFIG REQUIRED) + target_link_libraries(main PRIVATE qlementine::qlementine) diff --git a/vcpkg/ports/qlementine/vcpkg.json b/vcpkg/ports/qlementine/vcpkg.json new file mode 100644 index 0000000..b6fe85c --- /dev/null +++ b/vcpkg/ports/qlementine/vcpkg.json @@ -0,0 +1,26 @@ +{ + "name": "qlementine", + "version": "1.2.2", + "description": "Modern QStyle for desktop Qt6 applications.", + "homepage": "https://github.com/oclero/qlementine/", + "documentation": "https://oclero.github.io/qlementine/", + "license": "MIT", + "dependencies": [ + { + "name": "qtbase", + "default-features": false, + "features": [ + "widgets" + ] + }, + "qtsvg", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |