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-sdl3-ttf | |
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-sdl3-ttf')
4 files changed, 100 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-sdl3-ttf/portfile.cmake b/vcpkg/scripts/test_ports/vcpkg-ci-sdl3-ttf/portfile.cmake new file mode 100644 index 0000000..dd25706 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-sdl3-ttf/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-sdl3-ttf/project/CMakeLists.txt b/vcpkg/scripts/test_ports/vcpkg-ci-sdl3-ttf/project/CMakeLists.txt new file mode 100644 index 0000000..3e8d4a3 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-sdl3-ttf/project/CMakeLists.txt @@ -0,0 +1,13 @@ +cmake_minimum_required(VERSION 3.30) +project(sdl3-ttf-test C) + +find_package(SDL3_ttf CONFIG REQUIRED) + +add_executable(main main.c) +target_link_libraries(main PRIVATE SDL3_ttf::SDL3_ttf) + +find_package(PkgConfig REQUIRED) +pkg_check_modules(PC_SDL3_TTF sdl3-ttf REQUIRED IMPORTED_TARGET) + +add_executable(main-pkconfig main.c) +target_link_libraries(main-pkconfig PRIVATE PkgConfig::PC_SDL3_TTF) diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-sdl3-ttf/project/main.c b/vcpkg/scripts/test_ports/vcpkg-ci-sdl3-ttf/project/main.c new file mode 100644 index 0000000..dc280e5 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-sdl3-ttf/project/main.c @@ -0,0 +1,9 @@ +#include <SDL3_ttf/SDL_ttf.h> + +int main() +{ + TTF_Init(); + TTF_Version(); + TTF_Quit(); + return 0; +} diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-sdl3-ttf/vcpkg.json b/vcpkg/scripts/test_ports/vcpkg-ci-sdl3-ttf/vcpkg.json new file mode 100644 index 0000000..c348ea9 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-sdl3-ttf/vcpkg.json @@ -0,0 +1,68 @@ +{ + "name": "vcpkg-ci-sdl3-ttf", + "version-string": "ci", + "description": "Port to validate sdl3-ttf in CI", + "homepage": "https://github.com/microsoft/vcpkg", + "license": "MIT", + "dependencies": [ + { + "name": "sdl3-ttf", + "default-features": false + }, + { + "name": "vcpkg-cmake", + "host": true + } + ], + "default-features": [ + "all" + ], + "features": { + "all": { + "description": "Test all features", + "dependencies": [ + { + "name": "vcpkg-ci-sdl3-ttf", + "features": [ + "harfbuzz", + "plutosvg-freetype", + "svg" + ] + } + ] + }, + "harfbuzz": { + "description": "Use sdl3-ttf[harfbuzz]", + "dependencies": [ + { + "name": "sdl3-ttf", + "features": [ + "harfbuzz" + ] + } + ] + }, + "plutosvg-freetype": { + "description": "Use plutosvg[freetype]", + "dependencies": [ + { + "name": "plutosvg", + "features": [ + "freetype" + ] + } + ] + }, + "svg": { + "description": "Use sdl3-ttf[svg]", + "dependencies": [ + { + "name": "sdl3-ttf", + "features": [ + "svg" + ] + } + ] + } + } +} |