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/scripts/test_ports/vcpkg-ci-libgwenhywfar | |
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar')
4 files changed, 78 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/portfile.cmake b/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/portfile.cmake new file mode 100644 index 0000000..dd25706 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/portfile.cmake @@ -0,0 +1,10 @@ +set(VCPKG_POLICY_EMPTY_PACKAGE enabled) + +vcpkg_find_acquire_program(PKGCONFIG) + +vcpkg_cmake_configure( + SOURCE_PATH "${CURRENT_PORT_DIR}/project" + OPTIONS + "-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}" +) +vcpkg_cmake_build() diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/project/CMakeLists.txt b/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/project/CMakeLists.txt new file mode 100644 index 0000000..7e04f35 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/project/CMakeLists.txt @@ -0,0 +1,11 @@ +cmake_minimum_required(VERSION 3.10) +project(libgwenhywfar-test C) + +find_package(PkgConfig REQUIRED) + +block() + pkg_check_modules(gwenhywfar IMPORTED_TARGET REQUIRED gwenhywfar) + + add_executable(libgwenhywfar_pkgconfig main.c) + target_link_libraries(libgwenhywfar_pkgconfig PkgConfig::gwenhywfar) +endblock() diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/project/main.c b/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/project/main.c new file mode 100644 index 0000000..6a24a6a --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/project/main.c @@ -0,0 +1,8 @@ +#include <gwenhywfar/gwenhywfar.h> /* based on gwenhywfar.pc */ + +int main() +{ + int result = GWEN_Init(); + GWEN_Fini(); + return result; +} diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/vcpkg.json b/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/vcpkg.json new file mode 100644 index 0000000..3f9f827 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-libgwenhywfar/vcpkg.json @@ -0,0 +1,49 @@ +{ + "name": "vcpkg-ci-libgwenhywfar", + "version-string": "ci", + "description": "Validates libgwenhywfar", + "dependencies": [ + { + "name": "libgwenhywfar", + "default-features": false + }, + { + "name": "vcpkg-cmake", + "host": true + } + ], + "default-features": [ + { + "name": "openssl", + "platform": "!arm64" + }, + { + "name": "qt5", + "platform": "!(osx & static)" + } + ], + "features": { + "openssl": { + "description": "Use openssl", + "dependencies": [ + { + "name": "libgwenhywfar", + "features": [ + "openssl" + ] + } + ] + }, + "qt5": { + "description": "Install qt5 binding", + "dependencies": [ + { + "name": "libgwenhywfar", + "features": [ + "qt5" + ] + } + ] + } + } +} |