aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/dpp
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/dpp')
-rw-r--r--vcpkg/ports/dpp/portfile.cmake26
-rw-r--r--vcpkg/ports/dpp/usage3
-rw-r--r--vcpkg/ports/dpp/vcpkg.json22
3 files changed, 51 insertions, 0 deletions
diff --git a/vcpkg/ports/dpp/portfile.cmake b/vcpkg/ports/dpp/portfile.cmake
new file mode 100644
index 0000000..898c6df
--- /dev/null
+++ b/vcpkg/ports/dpp/portfile.cmake
@@ -0,0 +1,26 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO brainboxdotcc/DPP
+ REF "v${VERSION}"
+ SHA512 cb05d22396207681f016ea3a7ea1d3d296f7fcc66a9d72ae69819fe7b532db571a2e76495fa656ed8d99222c5cf07a6ac75f4cc2f8b633ed936ab899794229a1
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ DISABLE_PARALLEL_CONFIGURE
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(NO_PREFIX_CORRECTION)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share/dpp")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
+endif()
+
+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/dpp/usage b/vcpkg/ports/dpp/usage
new file mode 100644
index 0000000..4c9c1b3
--- /dev/null
+++ b/vcpkg/ports/dpp/usage
@@ -0,0 +1,3 @@
+dpp provides CMake targets:
+ find_package(dpp CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE dpp::dpp)
diff --git a/vcpkg/ports/dpp/vcpkg.json b/vcpkg/ports/dpp/vcpkg.json
new file mode 100644
index 0000000..e4f8344
--- /dev/null
+++ b/vcpkg/ports/dpp/vcpkg.json
@@ -0,0 +1,22 @@
+{
+ "name": "dpp",
+ "version": "10.1.3",
+ "description": "D++ Extremely Lightweight C++ Discord Library.",
+ "homepage": "https://dpp.dev/",
+ "license": "Apache-2.0",
+ "supports": "(windows & !static & !uwp) | linux | osx",
+ "dependencies": [
+ "nlohmann-json",
+ "openssl",
+ "opus",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ },
+ "zlib"
+ ]
+}