aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/crow
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/crow')
-rw-r--r--vcpkg/ports/crow/portfile.cmake21
-rw-r--r--vcpkg/ports/crow/vcpkg.json18
2 files changed, 39 insertions, 0 deletions
diff --git a/vcpkg/ports/crow/portfile.cmake b/vcpkg/ports/crow/portfile.cmake
new file mode 100644
index 0000000..7847449
--- /dev/null
+++ b/vcpkg/ports/crow/portfile.cmake
@@ -0,0 +1,21 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO CrowCpp/crow
+ REF "v${VERSION}"
+ SHA512 32c956a36652ac14a9ffd41333b9e80031f86b99b09f54affb9cb0196c4672c5877daebf6327a359c735f5246dd4119cf17ac5d68271953bfa389d660f745e42
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DCROW_BUILD_EXAMPLES=OFF
+ -DCROW_BUILD_TESTS=OFF
+)
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Crow)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/crow/vcpkg.json b/vcpkg/ports/crow/vcpkg.json
new file mode 100644
index 0000000..94bae05
--- /dev/null
+++ b/vcpkg/ports/crow/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "crow",
+ "version": "1.3.0",
+ "description": "Very fast and easy to use C++ micro web framework",
+ "homepage": "https://github.com/CrowCpp/crow",
+ "license": "BSD-3-Clause",
+ "dependencies": [
+ "asio",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}