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-gobject-introspection/portfile.cmake | |
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-gobject-introspection/portfile.cmake')
| -rw-r--r-- | vcpkg/scripts/test_ports/vcpkg-ci-gobject-introspection/portfile.cmake | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-gobject-introspection/portfile.cmake b/vcpkg/scripts/test_ports/vcpkg-ci-gobject-introspection/portfile.cmake new file mode 100644 index 0000000..6d23f0a --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-gobject-introspection/portfile.cmake @@ -0,0 +1,22 @@ +set(VCPKG_POLICY_EMPTY_PACKAGE enabled) + +# Using release typelibs also for debug: +# vcpkg is unable to build the debug variant for MSVC +# as long as it doesn't install the python interpreter +# for the debug CRT. +set(ENV{GI_TYPELIB_PATH} "${CURRENT_INSTALLED_DIR}/lib/girepository-1.0") + +vcpkg_find_acquire_program(PKGCONFIG) + +vcpkg_check_features(OUT_FEATURE_OPTIONS options + FEATURES + run-test RUN_TEST +) + +vcpkg_cmake_configure( + SOURCE_PATH "${CURRENT_PORT_DIR}/project" + OPTIONS + ${options} + "-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}" +) +vcpkg_cmake_build(ADD_BIN_TO_PATH) |