aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/test_ports/vcpkg-ci-gobject-introspection/portfile.cmake
diff options
context:
space:
mode:
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.cmake22
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)