vcpkg/scripts
Frederik Carlier ba58a3fdf2
[glib] Support cross-compiling Objective C code using Meson (#33313)
* Support cross-compiling Objective C code using Meson

The glib port uses Objective C code and the Meson build system.
You'll end up cross compiling glib when compiling for x64 osx
on an arm64 osx machine, or vice versa.

For this to work, an Objective C compiler needs to be set
in the Meson cross file.

vcpkg generates this file based on the
`scripts/buildsystems/meson/meson.template.in` template, and expects
the `MESON_OBJC` CMake variable to be set.

That's the job of `z_vcpkg_meson_set_proglist_variables` in
`scripts/cmake/vcpkg_configure_meson.cmake`.  It will only generate data
for an Objective C compiler if:

- The `Languages` argument includes `OBJC`
- CMake has detected a Objective C compiler, and has set `VCPKG_DETECTED_CMAKE_OBJC_COMPILER`

To make this work, this patch:
- Enables the OBJC and OBJCXX language on Apple platforms
- Updates the call to `vcpkg_configure_meson` in the glib port file
  to include the OBJC OBJCXX languages.

Fixes https://github.com/microsoft/vcpkg/issues/26147
Fixes https://github.com/microsoft/vcpkg/issues/20341
Based on https://github.com/microsoft/vcpkg/pull/26259
Based on 27dee354e4

Tested on an arm64 mac to compile glib for x64 macos

* Update version database
2023-08-25 12:25:28 -07:00
..
angle [angle] Update to chromium/5414, improve build system (and future updates) (#27444) 2023-02-10 11:45:11 -08:00
azure-pipelines Add checklist items for Android Docker (#33119) 2023-08-14 16:09:52 -07:00
boost [boost-ublas] Remove dependency on boost-compute (#29325) 2023-07-25 18:22:42 -07:00
buildsystems Add initial LoongArch support (#32932) 2023-08-23 11:53:24 -07:00
cmake [python3] Update to 3.11.4 (#31727) 2023-08-07 13:19:53 -07:00
detect_compiler [OpenCV] upgrade to v4.5.5 (#22801) 2022-02-23 11:57:13 -08:00
get_cmake_vars [glib] Support cross-compiling Objective C code using Meson (#33313) 2023-08-25 12:25:28 -07:00
ifw [vcpkg-export-ifw] Maintenance Tool 2017-10-05 21:24:32 +03:00
posh-vcpkg/0.0.1 [vcpkg-tool] update to 2022-03-30 (#23886) 2022-03-31 19:08:09 -07:00
templates update link in portfile template (#33166) 2023-08-15 12:09:40 -07:00
test_ports [freerdp] Update, cleanup + [libusb] Fix pc file (#32416) 2023-07-31 15:53:11 -07:00
toolchains Add CMAKE_MODULE_LINKER_FLAGS to toolchain scripts. (#32841) 2023-08-03 12:14:01 -07:00
addPoshVcpkgToPowershellProfile.ps1 [vcpkg-tool] update to 2022-03-30 (#23886) 2022-03-31 19:08:09 -07:00
bootstrap.ps1 Disable metrics in bootstrap. (#33350) 2023-08-24 16:20:42 -07:00
bootstrap.sh Disable metrics in bootstrap. (#33350) 2023-08-24 16:20:42 -07:00
build_info.cmake [scripts] add policy VCPKG_POLICY_SKIP_ABSOLUTE_PATHS_CHECK (#27128) 2022-10-08 21:15:02 -07:00
ci.baseline.txt [libmicrodns] use supports expression (#33363) 2023-08-25 12:10:44 -07:00
file_script.py [vcpkg] Revise the file lists script (#20864) 2021-11-29 16:12:27 -08:00
generateBaseline.py [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
generatePortVersionsDb.py [vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00
Get-Changelog.ps1 [docs] Add catalog release process. (#24647) 2022-05-11 12:18:31 -07:00
ports.cmake [vcpkg] Move include ports.cmake after defining multiple macros (#29916) 2023-04-20 16:09:01 -07:00
tls12-download-arm64.exe Update vcpkg-tool to 2022-11-10. (#27764) 2022-11-11 12:53:43 -08:00
tls12-download.exe Update vcpkg-tool to 2022-11-10. (#27764) 2022-11-11 12:53:43 -08:00
update-vcpkg-tool-metadata.ps1 Update vcpkg-tool to 2023-08-02 and add update script. (#32885) 2023-08-03 19:09:46 -07:00
vcpkg_completion.bash [autocomplete] Add tab-completion support for bash 2018-12-13 14:02:02 -08:00
vcpkg_completion.fish Fix fish completions (#30050) 2023-03-07 14:55:05 -08:00
vcpkg_completion.zsh [scripts] Add vcpkg_completions.zsh (#18274) 2021-06-30 13:16:51 -07:00
vcpkg-tool-metadata.txt Update vcpkg-tool to 2023-08-09. (#33062) 2023-08-09 10:04:25 -07:00
vcpkgTools.xml [python3] Update to 3.11.4 (#31727) 2023-08-07 13:19:53 -07:00