aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/qlementine-icons
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/qlementine-icons')
-rw-r--r--vcpkg/ports/qlementine-icons/portfile.cmake27
-rw-r--r--vcpkg/ports/qlementine-icons/usage4
-rw-r--r--vcpkg/ports/qlementine-icons/vcpkg.json26
3 files changed, 57 insertions, 0 deletions
diff --git a/vcpkg/ports/qlementine-icons/portfile.cmake b/vcpkg/ports/qlementine-icons/portfile.cmake
new file mode 100644
index 0000000..0c157be
--- /dev/null
+++ b/vcpkg/ports/qlementine-icons/portfile.cmake
@@ -0,0 +1,27 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO oclero/qlementine-icons
+ REF "v${VERSION}"
+ SHA512 1df1c98399a4babff46239f00182f751bbdd77bbf9616f8c9dc488ddb966969a084f8a2aa2921e1568d53f697858acd584a0042e18363f3066bb584234bc9661
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DQLEMENTINE_ICONS_SANDBOX=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/qlementine-icons)
+
+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-icons/usage b/vcpkg/ports/qlementine-icons/usage
new file mode 100644
index 0000000..ec4fe2a
--- /dev/null
+++ b/vcpkg/ports/qlementine-icons/usage
@@ -0,0 +1,4 @@
+qlementine-icons provides CMake targets:
+
+ find_package(qlementine-icons CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE qlementine-icons::qlementine-icons)
diff --git a/vcpkg/ports/qlementine-icons/vcpkg.json b/vcpkg/ports/qlementine-icons/vcpkg.json
new file mode 100644
index 0000000..5ffdafb
--- /dev/null
+++ b/vcpkg/ports/qlementine-icons/vcpkg.json
@@ -0,0 +1,26 @@
+{
+ "name": "qlementine-icons",
+ "version": "1.9.0",
+ "description": "Modern icon set for desktop Qt applications.",
+ "homepage": "https://github.com/oclero/qlementine-icons/",
+ "documentation": "https://oclero.github.io/qlementine-icons/",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "qtbase",
+ "default-features": false,
+ "features": [
+ "gui"
+ ]
+ },
+ "qtsvg",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}