diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/oatpp-sqlite | |
Diffstat (limited to 'vcpkg/ports/oatpp-sqlite')
| -rw-r--r-- | vcpkg/ports/oatpp-sqlite/fix-usage.patch | 14 | ||||
| -rw-r--r-- | vcpkg/ports/oatpp-sqlite/portfile.cmake | 26 | ||||
| -rw-r--r-- | vcpkg/ports/oatpp-sqlite/vcpkg.json | 20 |
3 files changed, 60 insertions, 0 deletions
diff --git a/vcpkg/ports/oatpp-sqlite/fix-usage.patch b/vcpkg/ports/oatpp-sqlite/fix-usage.patch new file mode 100644 index 0000000..eeec7ad --- /dev/null +++ b/vcpkg/ports/oatpp-sqlite/fix-usage.patch @@ -0,0 +1,14 @@ +diff --git a/cmake/module-config.cmake.in b/cmake/module-config.cmake.in +index 5cc12b0..5d94df8 100644 +--- a/cmake/module-config.cmake.in ++++ b/cmake/module-config.cmake.in +@@ -1,5 +1,9 @@ + @PACKAGE_INIT@ + ++include(CMakeFindDependencyMacro) ++find_dependency(oatpp CONFIG) ++find_dependency(unofficial-sqlite3 CONFIG) ++ + if(NOT TARGET oatpp::@OATPP_MODULE_NAME@) + include("${CMAKE_CURRENT_LIST_DIR}/@OATPP_MODULE_NAME@Targets.cmake") + endif() diff --git a/vcpkg/ports/oatpp-sqlite/portfile.cmake b/vcpkg/ports/oatpp-sqlite/portfile.cmake new file mode 100644 index 0000000..5672737 --- /dev/null +++ b/vcpkg/ports/oatpp-sqlite/portfile.cmake @@ -0,0 +1,26 @@ +set(OATPP_VERSION "1.3.0") + +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO oatpp/oatpp-sqlite + REF ${OATPP_VERSION} + SHA512 8a208145ee10ed858767b4b56c220b6befd83e6858759128103ce679b889e6218a95ed6627af5098e4d26367be8add82de26e1f1f8ef581b1913b8386f9d56de + HEAD_REF master + PATCHES + fix-usage.patch +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + "-DOATPP_BUILD_TESTS:BOOL=OFF" + "-DOATPP_SQLITE_AMALGAMATION:BOOL=OFF" +) +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp-sqlite CONFIG_PATH lib/cmake/oatpp-sqlite-${OATPP_VERSION}) +vcpkg_copy_pdbs() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/vcpkg/ports/oatpp-sqlite/vcpkg.json b/vcpkg/ports/oatpp-sqlite/vcpkg.json new file mode 100644 index 0000000..1f7d881 --- /dev/null +++ b/vcpkg/ports/oatpp-sqlite/vcpkg.json @@ -0,0 +1,20 @@ +{ + "name": "oatpp-sqlite", + "version": "1.3.0", + "port-version": 2, + "description": "Oat++ SQLite adapter for Oat++ ORM.", + "homepage": "https://github.com/oatpp/oatpp-sqlite", + "license": "Apache-2.0", + "dependencies": [ + "oatpp", + "sqlite3", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |