aboutsummaryrefslogtreecommitdiff
path: root/ports/oatpp-zlib
diff options
context:
space:
mode:
authorMichael Heyman <mheyman@gmail.com>2020-11-05 21:21:17 -0500
committerGitHub <noreply@github.com>2020-11-05 18:21:17 -0800
commitbf7f7a1162bf704f2b1a3047caf923bd0d5db0b3 (patch)
tree8055a136e86b9ecbbb3f2cb3f353dbe4387542f5 /ports/oatpp-zlib
parent5eae413e9ca1936dc94b643929a30d7660ab9593 (diff)
downloadvcpkg-bf7f7a1162bf704f2b1a3047caf923bd0d5db0b3.tar.gz
vcpkg-bf7f7a1162bf704f2b1a3047caf923bd0d5db0b3.zip
[oatpp] Add new port and vcpkg.json (#14341)
Diffstat (limited to 'ports/oatpp-zlib')
-rw-r--r--ports/oatpp-zlib/portfile.cmake28
-rw-r--r--ports/oatpp-zlib/vcpkg.json10
2 files changed, 38 insertions, 0 deletions
diff --git a/ports/oatpp-zlib/portfile.cmake b/ports/oatpp-zlib/portfile.cmake
new file mode 100644
index 000000000..d441a8522
--- /dev/null
+++ b/ports/oatpp-zlib/portfile.cmake
@@ -0,0 +1,28 @@
+set(OATPP_VERSION "1.2.0")
+
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO oatpp/oatpp-zlib
+ REF b3a0c1d140175d8ec43ebbe1da9ac46e2baa142c # 1.2.0
+ SHA512 a6a012ad5294f994a5a65a57ccfd8b9af77515d0c203d04193a2202996b3a831f314c0847a3f5ebc1867835fbd0c438284142c070998ed26881fdc1110a3c5ad
+ HEAD_REF master
+)
+
+set(VCPKG_C_FLAGS "${VCPKG_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS")
+set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS")
+
+vcpkg_configure_cmake(
+ SOURCE_PATH "${SOURCE_PATH}"
+ PREFER_NINJA
+ OPTIONS
+ "-DOATPP_BUILD_TESTS:BOOL=OFF"
+)
+
+vcpkg_install_cmake()
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/oatpp-zlib-${OATPP_VERSION})
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/ports/oatpp-zlib/vcpkg.json b/ports/oatpp-zlib/vcpkg.json
new file mode 100644
index 000000000..394d90a74
--- /dev/null
+++ b/ports/oatpp-zlib/vcpkg.json
@@ -0,0 +1,10 @@
+{
+ "name": "oatpp-zlib",
+ "version-string": "1.2.0",
+ "port-version": 1,
+ "description": "Oat++ functionality for automatically compressing/decompressing content with deflate and gzip.",
+ "homepage": "https://github.com/oatpp/oatpp-zlib",
+ "dependencies": [
+ "oatpp"
+ ]
+}