vcpkg/scripts
Kai Pastor 47633daa65
[vcpkg-scripts] Catch use of ambiguous cmake vars (#34546)
Avoid wrong use of popular but ambiguous variables (`WIN32` etc.) in
scripts and portfiles by detection in CI.

Sometimes the variables are used wrongly, and sometimes this isn't
caught in PR review. This PR tries to catch those variables (when in the
active code path in script mode). [This can happen to every
contributor](https://github.com/microsoft/vcpkg/pull/34356#discussion_r1360074122),
even if he/she knows the rules ... vcpkg is raising the bar higher than
usual, having to deal with targets and hosts even in script mode.

(`b2-options.cmake` (boost fragment) shows where we get if we don't pay
attention: the same code being used in script mode (`WIN32` meaning
host) and in project mode (`WIN32` meaning target).)

The new check doesn't break any user builds because it relies on command
line options. However it changes the ABI hashes.
2024-06-14 11:40:01 -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 Activate Android NDK r26d in vcpkg CI (#35851) 2024-06-11 13:26:30 -07:00
boost [boost-math] Fix build on x64-linux-dynamic, add feature legacy (#38728) 2024-05-30 09:53:46 -07:00
buildsystems Revert "Update vcpkg-tool to 2024-03-28." (#37843) 2024-03-29 15:04:50 -07:00
cmake [vcpkg-scripts] Catch use of ambiguous cmake vars (#34546) 2024-06-14 11:40:01 -07:00
detect_compiler [vcpkg] update detect compiler to print path (#36398) 2024-02-09 17:17:52 -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 Fix vcpkg create (#33954) 2023-09-25 23:49:57 -07:00
test_ports [vcpkg_fixup_pkgconfig] Fix lib names starting with debug/optimized/general (#39227) 2024-06-13 00:37:56 -07:00
toolchains linux toolchain: add missing CMAKE_AS_FLAGS_INIT. (#39147) 2024-06-13 20:20:03 -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 Update Arch Linux minimal requirements (#39112) 2024-06-07 02:56:45 -07:00
build_info.cmake Add policies to build_info.cmake and write the file only once. (#38629) 2024-05-08 20:47:22 -07:00
ci.baseline.txt Activate Android NDK r26d in vcpkg CI (#35851) 2024-06-11 13:26:30 -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
ports.cmake [vcpkg-scripts] Catch use of ambiguous cmake vars (#34546) 2024-06-14 11:40: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-tool-metadata.txt Update vcpkg-tool to 2024-06-10. (#39210) 2024-06-12 15:04:50 -07:00
vcpkgTools.xml [7zip] Update to 24.06 (#38790) 2024-06-11 12:16:41 -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