aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/dirent
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/dirent')
-rw-r--r--vcpkg/ports/dirent/portfile.cmake17
-rw-r--r--vcpkg/ports/dirent/vcpkg.json7
2 files changed, 24 insertions, 0 deletions
diff --git a/vcpkg/ports/dirent/portfile.cmake b/vcpkg/ports/dirent/portfile.cmake
new file mode 100644
index 0000000..1a8c4de
--- /dev/null
+++ b/vcpkg/ports/dirent/portfile.cmake
@@ -0,0 +1,17 @@
+if(VCPKG_CMAKE_SYSTEM_NAME AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
+ set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
+ return()
+endif()
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO tronkko/dirent
+ REF "${VERSION}"
+ SHA512 5dc3ae63247259e209f8a93c0be9369c094e6783bd0b9df41545067e4d807da2e5339509da03cfdb1ea1c2f9642b1fad33124b7b2ec7e649442cc6e561b0a3f9
+ HEAD_REF master
+)
+file(INSTALL ${SOURCE_PATH}/include/ DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
+vcpkg_copy_pdbs()
+
+set(VCPKG_POLICY_ALLOW_RESTRICTED_HEADERS enabled)
diff --git a/vcpkg/ports/dirent/vcpkg.json b/vcpkg/ports/dirent/vcpkg.json
new file mode 100644
index 0000000..7d80acb
--- /dev/null
+++ b/vcpkg/ports/dirent/vcpkg.json
@@ -0,0 +1,7 @@
+{
+ "name": "dirent",
+ "version": "1.26",
+ "description": "Dirent is a C/C++ programming interface that allows programmers to retrieve information about files and directories under Linux/UNIX. This project provides Linux compatible Dirent interface for Microsoft Windows.",
+ "homepage": "https://github.com/tronkko/dirent",
+ "license": "MIT"
+}