aboutsummaryrefslogtreecommitdiff
path: root/ports/oatpp-postgresql
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-postgresql
parent5eae413e9ca1936dc94b643929a30d7660ab9593 (diff)
downloadvcpkg-bf7f7a1162bf704f2b1a3047caf923bd0d5db0b3.tar.gz
vcpkg-bf7f7a1162bf704f2b1a3047caf923bd0d5db0b3.zip
[oatpp] Add new port and vcpkg.json (#14341)
Diffstat (limited to 'ports/oatpp-postgresql')
-rw-r--r--ports/oatpp-postgresql/portfile.cmake28
-rw-r--r--ports/oatpp-postgresql/vcpkg.json11
2 files changed, 39 insertions, 0 deletions
diff --git a/ports/oatpp-postgresql/portfile.cmake b/ports/oatpp-postgresql/portfile.cmake
new file mode 100644
index 000000000..410f1971c
--- /dev/null
+++ b/ports/oatpp-postgresql/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-postgresql
+ REF 349d610084375c46be95d50ce10b787ae6c2baf4 # 1.2.0
+ SHA512 2faa688077020bbe64807be85d8d61e5aa84163a044d42df0a3b1701cf82048ff0322acb72d4e757a38403e14cba6a7a766daa965862e04756e483d9b750a365
+ 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-postgresql-${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-postgresql/vcpkg.json b/ports/oatpp-postgresql/vcpkg.json
new file mode 100644
index 000000000..4872bbb3d
--- /dev/null
+++ b/ports/oatpp-postgresql/vcpkg.json
@@ -0,0 +1,11 @@
+{
+ "name": "oatpp-postgresql",
+ "version-string": "1.2.0",
+ "port-version": 1,
+ "description": "Oat++ PostgreSQL adapter for Oat++ ORM (alpha - not all datatypes are supported).",
+ "homepage": "https://github.com/oatpp/oatpp-postgresql",
+ "dependencies": [
+ "libpq",
+ "oatpp"
+ ]
+}