aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonid Pospelov <pospelovlm@yandex.ru>2020-06-23 22:58:38 +0200
committerGitHub <noreply@github.com>2020-06-23 13:58:38 -0700
commit8af2f692ebdb1d914bb32bf1e0589007c4fc7cc9 (patch)
treee53902ff24d7fa8215f085446acc2a61ad6d76f1
parentc12aa1cd7b7389443d05b3b7fefa42d45693e7a2 (diff)
downloadvcpkg-8af2f692ebdb1d914bb32bf1e0589007c4fc7cc9.tar.gz
vcpkg-8af2f692ebdb1d914bb32bf1e0589007c4fc7cc9.zip
[efsw] Add new port (#11901)
* [efsw] Add new port * Update portfile.cmake * Remove unnecessary BUILD_SHARED_LIBS assigning * Update portfile.cmake * Update library Co-authored-by: Lily <47812810+LilyWangL@users.noreply.github.com>
-rw-r--r--ports/efsw/CONTROL5
-rw-r--r--ports/efsw/portfile.cmake28
2 files changed, 33 insertions, 0 deletions
diff --git a/ports/efsw/CONTROL b/ports/efsw/CONTROL
new file mode 100644
index 000000000..37a6919fd
--- /dev/null
+++ b/ports/efsw/CONTROL
@@ -0,0 +1,5 @@
+Source: efsw
+Version: 2020-06-08
+Homepage: https://github.com/SpartanJ/efsw
+Description: efsw is a C++ cross-platform file system watcher and notifier.
+Supports: !uwp
diff --git a/ports/efsw/portfile.cmake b/ports/efsw/portfile.cmake
new file mode 100644
index 000000000..542e79560
--- /dev/null
+++ b/ports/efsw/portfile.cmake
@@ -0,0 +1,28 @@
+vcpkg_fail_port_install(ON_TARGET "UWP")
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO SpartanJ/efsw
+ REF b62d04829bb0a6f3cacc7859e0b046a3c053bc50
+ SHA512 fc16ef6ad330941dc0a1112ce645b57bd126d353556d50f45fadf150f25edd42c1d4946bc54d629d94c208d67d4ce17dbf5d1079cbeed51f0f6b1ccbe2199132
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DVERBOSE=OFF
+ -DBUILD_TEST_APP=OFF
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake)
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+vcpkg_copy_pdbs()
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)