1-
2- set (GI_MAJOR_MINOR 1.72 )
1+ # vcpkg_from_* is not used because the project uses submodules.
2+ string ( REGEX MATCH "^([0-9]*[.][0-9]*)" GI_MAJOR_MINOR " ${VERSION} " )
33set (GI_PATCH 0)
44
55vcpkg_download_distfile(ARCHIVE
6- URLS "https://download.gnome.org/sources/gobject-introspection/${GI_MAJOR_MINOR} /gobject-introspection-${GI_MAJOR_MINOR} . ${GI_PATCH } .tar.xz"
7- FILENAME "gobject-introspection-${GI_MAJOR_MINOR} . ${GI_PATCH } .tar.xz"
8- SHA512 b8fba2bd12e93776c55228acf3487bef36ee40b1abdc7f681b827780ac94a8bfa1f59b0c30d60fa5a1fea2f610de78b9e52029f411128067808f17eb6374cdc5
6+ URLS "https://download.gnome.org/sources/gobject-introspection/${GI_MAJOR_MINOR} /gobject-introspection-${VERSION } .tar.xz"
7+ FILENAME "gobject-introspection-${VERSION } .tar.xz"
8+ SHA512 e139fadb4174c72b648914f3774d89fc0e5eaee45bba0c13edf05de883664dad8276dbc34006217bb09871ed4bad23adab51ff232a17b9eb131329b2926cafb7
99)
1010
1111vcpkg_extract_source_archive(
@@ -15,7 +15,7 @@ vcpkg_extract_source_archive(
1515 0001-g-ir-tool-template.in.patch
1616 0002-cross-build .patch
1717 0003-fix-paths .patch
18- fix-pkgconfig .patch
18+ 0004-fastcall .patch # https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/498
1919)
2020
2121vcpkg_find_acquire_program(FLEX)
@@ -34,6 +34,18 @@ else()
3434 endif ()
3535endif ()
3636
37+ find_file (INITIAL_PYTHON3
38+ NAMES "python3${VCPKG_HOST_EXECUTABLE_SUFFIX} " "python${VCPKG_HOST_EXECUTABLE_SUFFIX} "
39+ PATHS "${PYTHON_DIR} /tools/python3"
40+ NO_DEFAULT_PATH
41+ REQUIRED
42+ )
43+ x_vcpkg_get_python_packages(OUT_PYTHON_VAR PYTHON3
44+ PYTHON_EXECUTABLE "${INITIAL_PYTHON3} "
45+ PYTHON_VERSION "3"
46+ PACKAGES setuptools
47+ )
48+
3749vcpkg_configure_meson(
3850 SOURCE_PATH "${SOURCE_PATH} "
3951 OPTIONS_DEBUG
@@ -46,7 +58,7 @@ vcpkg_configure_meson(
4658 g-ir-annotation-tool='${CURRENT_HOST_INSTALLED_DIR} /tools/gobject-introspection/g-ir-annotation-tool'
4759 g-ir-compiler='${CURRENT_HOST_INSTALLED_DIR} /tools/gobject-introspection/g-ir-compiler${VCPKG_HOST_EXECUTABLE_SUFFIX} '
4860 g-ir-scanner='${CURRENT_HOST_INSTALLED_DIR} /tools/gobject-introspection/g-ir-scanner'
49- python='${PYTHON_DIR} /tools/python3/python ${VCPKG_HOST_EXECUTABLE_SUFFIX } '
61+ python='${PYTHON3 } '
5062)
5163
5264vcpkg_host_path_list(APPEND ENV{PKG_CONFIG_PATH} "${CURRENT_INSTALLED_DIR} /lib/pkgconfig" )
0 commit comments