aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/wintoast
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/wintoast
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/wintoast')
-rw-r--r--vcpkg/ports/wintoast/Config.cmake.in19
-rw-r--r--vcpkg/ports/wintoast/portfile.cmake30
-rw-r--r--vcpkg/ports/wintoast/vcpkg.json12
3 files changed, 61 insertions, 0 deletions
diff --git a/vcpkg/ports/wintoast/Config.cmake.in b/vcpkg/ports/wintoast/Config.cmake.in
new file mode 100644
index 0000000..575d76b
--- /dev/null
+++ b/vcpkg/ports/wintoast/Config.cmake.in
@@ -0,0 +1,19 @@
+if(NOT TARGET unofficial::wintoast::wintoast)
+ add_library(unofficial::wintoast::wintoast UNKNOWN IMPORTED)
+
+ set_target_properties(unofficial::wintoast::wintoast PROPERTIES
+ INTERFACE_INCLUDE_DIRECTORIES "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include"
+ )
+
+ find_library(WinToast_LIBRARY_RELEASE NAMES WinToast PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib" NO_DEFAULT_PATH)
+ if(EXISTS "${WinToast_LIBRARY_RELEASE}")
+ set_property(TARGET unofficial::wintoast::wintoast APPEND PROPERTY IMPORTED_CONFIGURATIONS "Release")
+ set_target_properties(unofficial::wintoast::wintoast PROPERTIES IMPORTED_LOCATION_RELEASE "${WinToast_LIBRARY_RELEASE}")
+ endif()
+
+ find_library(WinToast_LIBRARY_DEBUG NAMES WinToast PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug/lib" NO_DEFAULT_PATH)
+ if(EXISTS "${WinToast_LIBRARY_DEBUG}")
+ set_property(TARGET unofficial::wintoast::wintoast APPEND PROPERTY IMPORTED_CONFIGURATIONS "Debug")
+ set_target_properties(unofficial::wintoast::wintoast PROPERTIES IMPORTED_LOCATION_DEBUG "${WinToast_LIBRARY_DEBUG}")
+ endif()
+endif() \ No newline at end of file
diff --git a/vcpkg/ports/wintoast/portfile.cmake b/vcpkg/ports/wintoast/portfile.cmake
new file mode 100644
index 0000000..619dcd3
--- /dev/null
+++ b/vcpkg/ports/wintoast/portfile.cmake
@@ -0,0 +1,30 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO mohabouje/WinToast
+ REF "v${VERSION}"
+ SHA512 50b97beeaa49247fc836a255d68a2cc1f6124386c76786f58e6fd0605ca821df33e101d30c16bf334815e8101db0a74fcb78fd2c27025eb5c18f4817855e3519
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DWINTOASTLIB_BUILD_EXAMPLES=OFF
+ -DWINTOASTLIB_QT_ENABLED=OFF
+)
+
+vcpkg_cmake_build(TARGET WinToast)
+
+if (NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
+ file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/${VCPKG_TARGET_STATIC_LIBRARY_PREFIX}WinToast${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}" DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
+endif()
+if (NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
+ file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/${VCPKG_TARGET_STATIC_LIBRARY_PREFIX}WinToast${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
+endif()
+file(INSTALL "${SOURCE_PATH}/include/wintoastlib.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
+
+configure_file("${CMAKE_CURRENT_LIST_DIR}/Config.cmake.in" "${CURRENT_PACKAGES_DIR}/share/unofficial-${PORT}/unofficial-${PORT}-config.cmake" @ONLY)
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") \ No newline at end of file
diff --git a/vcpkg/ports/wintoast/vcpkg.json b/vcpkg/ports/wintoast/vcpkg.json
new file mode 100644
index 0000000..24c49b1
--- /dev/null
+++ b/vcpkg/ports/wintoast/vcpkg.json
@@ -0,0 +1,12 @@
+{
+ "name": "wintoast",
+ "version": "1.3.2",
+ "description": "WinToast is a lightly library written in C++ which brings a complete integration of the modern toast notifications of Windows 8 & Windows 10.",
+ "supports": "windows & !uwp",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}