Commit Graph

89 Commits

Author SHA1 Message Date
Billy Robert O'Neal III 9c49a77ea9
Normalize otherwise untouched files to have LFs. 2026-07-23 16:18:51 -07:00
Jonathan Feinberg 5b698638c9
[wasm32-emscripten] Apply VCPKG_C(XX)_FLAGS via a wrapper toolchain (#52925)
Co-authored-by: Jonathan Feinberg <jdf@Fifteener.local>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-15 17:59:33 -07:00
Jörg Bornemann f7f94113c3
Add HarmonyOS support files (#51470) 2026-05-20 23:17:58 +00:00
Rafael Kitover d7b75fa8a3
toolchains: fix MSVC rc.exe invocation (#51151)
Signed-off-by: Rafael Kitover <rkitover@gmail.com>
2026-04-15 10:02:04 +00:00
Waldemar Kornewald 68a6622119
Fixed watchos arm32 target (needs armv7k) (#49385) 2026-01-12 21:32:23 -08:00
Vitalii Koshura cba4940ff2
Fix x86-linux build (#48714)
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2025-12-08 18:23:59 -08:00
Jesper Stemann Andersen c70c929e48
Define CMAKE_Fortran_COMPILER etc. when cross-compiling (#44653) 2025-11-26 14:49:50 -08:00
Chuck Walbourn cc947bf80e
[community triplet, ms-gdkx] xbox updates for October 2025 new layouts (#48159) 2025-11-17 09:53:20 -08:00
Waldemar Kornewald 53c13a7853
Add support for tvOS and watchOS platforms (#47024) 2025-10-13 12:00:59 -07:00
CQ_Undefine 4ec418d6f5
Add support for NetBSD (#47586) 2025-10-08 13:24:48 -04:00
Albert Lee 4334d8b4c8
[vcpkg] Add platform support for Solaris and illumos (#45524) 2025-09-18 00:20:36 +00:00
Jacopo Gasparetto dd3097e305
Set CMAKE_SYSTEM_PROCESSOR for riscv64 (#46558) 2025-07-25 01:32:37 -07:00
Long Nguyen b7dabb6577
[mingw toolchain] Set target triple to `<arch>-w64-windows-gnu` (#44822) 2025-04-05 01:02:48 -07:00
Chuck Walbourn 20224c957c
[community triplet] x64-xbox-* link was using the wrong lib paths (#44544) 2025-03-21 20:13:56 -07:00
Chuck Walbourn 418da99d5a
[triplet] Xbox try-compile fix by using XBOX_CONSOLE_TARGET consistently (#44172) 2025-03-05 15:27:17 -08:00
Chuck Walbourn 756d03f542
[toolchain] Fixed a try_compile regression for xbox (#44171) 2025-03-04 15:43:29 -08:00
Kai Pastor 8143d2ef97
[vcpkg-ci-cmake-toolchain-file] Validate toolchain file (#43527) 2025-02-05 16:41:51 -08:00
Martin Storsjö 5e9c58536f
[scripts] Remove a redundant manual /D_DEBUG from CMAKE_<LANG>_FLAGS_DEBUG (#34123) 2025-02-05 16:35:40 -08:00
WangWeiLin-MV c1b381aafe
[vcpkg scripts] toolchain/linux: Change CMAKE_SYSTEM_PROCESSOR from x86 to i686 (#41519) 2024-10-29 02:31:26 -07:00
Maxim Ivanov 39580ae69a
xbox.cmake: remove incorrectly used SYSTEM path from link_directories (#41151) 2024-09-26 10:44:50 -04:00
WangWeiLin-MV fec650a9a1
[vcpkg scripts] toolchain/osx: Fix CMAKE_HOST_SYSTEM_PROCESSOR condition with lower case arm64 (#40503) 2024-09-19 12:33:45 -07:00
Jaap Aarts 3f530d4827
Don't unset CMAKE_CROSSCOMPILING when cross-compiling to linux (#37734) 2024-07-11 18:47:43 -04:00
Chuck Walbourn 4de4372b5b
[toolchain] Fix try compile handling for Xbox (#39654) 2024-07-11 16:59:35 -04:00
Billy O'Neal 0dab813d5f
Patch Tuesday June 2024 (#39325) 2024-07-03 20:01:35 -07:00
Alexander Neumann 9c0956e573
[world rebuild|toolchain] Fix try compile handling (#24493)
while playing with qtbase on x64-uwp i found that it could not pass a
try_compile command since important variables are not correctly
forwarded. As such I concluded that the handling of try_compile in vcpkg
is completely wrong.
2024-06-19 14:38:36 -07:00
Vitalii Koshura e9522a4a74
linux toolchain: add missing CMAKE_AS_FLAGS_INIT. (#39147)
This fixes: #39144.
2024-06-13 20:20:03 -07:00
fwcd 3f55ea9fce
[linux] Fix compiler in native ARM host builds (#38113)
#35084 introduced a regression for native ARM Linux builds where the
toolchain would mistakenly try to reference a cross-compiler (e.g.
`aarch64-linux-gnu-gcc`) despite building natively because vcpkg spells
the architecture differently from what the system reports (`arm64` vs.
`aarch64`).

This fixes the issue by checking whether the
`CMAKE_HOST_SYSTEM_PROCESSOR` matches the target (in CMake's spelling of
the architecture).

---------

Co-authored-by: Kai Pastor <dg0yt@darc.de>
2024-04-19 15:11:15 -04:00
Alonso Schaich f9f2a6e867
Copy-Paste the CMAKE_SYSTEM_PROCESSOR definition code from osx to the BSDs (#37692)
Fixes #37691.
2024-03-25 15:11:08 -07:00
Vasyl Gello aa628ceb5f
Fix CMake detection of cross-compilers on arm/arm64 build arch (#35084)
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
2023-12-04 16:46:19 -08:00
ivysnow 500c6f2b85
Add CMAKE_MODULE_LINKER_FLAGS to toolchain scripts. (#32841) 2023-08-03 12:14:01 -07:00
Alexander Neumann 472d1465c1
Force CMAKE_MSVC_DEBUG_INFORMATION_FORMAT to empty (#32338) 2023-07-24 11:50:27 -07:00
Darryl Pogue 95b51560e7
[linux x86] Set -m32 in Linker flags too (#31811)
When cross-compiling for x86 Linux, the -m32 flag must also be passed to the linker otherwise it complains about trying to link code built for the wrong architecture.
2023-06-13 22:36:21 -07:00
Billy O'Neal 638b1588be
Update vcpkg-tool to 2023-06-07 + xbox triplets cleanup (#31723)
* Update vcpkg-tool to 2023-05-31 + xbox triplets cleanup

https://github.com/microsoft/vcpkg-tool/releases/tag/2023-05-30 +
https://github.com/microsoft/vcpkg-tool/releases/tag/2023-05-31 +
https://github.com/microsoft/vcpkg-tool/releases/tag/2023-06-07

Clean up xbox triplets following teaching vcpkg.exe about xbox more directly.

Also deletes the seemingly-no-longer-used vcpkg_get_dep_info.cmake and vcpkg_get_tags.cmake.

Also: [redis-plus-plus] Add DISABLE_PARALLEL_CONFIGURE due to source tree write.
2023-06-08 11:17:29 -07:00
Chuck Walbourn d4d39d71b3
UWP toolchain switch to disable use of deprecated C++/CX extensions (#31427) 2023-05-15 15:18:00 -07:00
Chuck Walbourn 0f63ba5458
xbox toolchain update to ensure CHECK_INCLUDE_FILES macro works in all cases (#31426) 2023-05-15 13:41:35 -07:00
Chuck Walbourn e288d7bddb
Toolchain update to remove /MP when using clang-cl custom triplets (#31428)
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2023-05-15 13:39:23 -07:00
dan-shaw 5787cfa699
[vcpkg] Android CI support (#29406)
* initial

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix
2023-04-24 21:22:59 -07:00
Chuck Walbourn 7a4ca3fd46
UWP toolchain fix and update some supports expressions for uwp/xbox (#30096)
* UWP toolchain fix and update some ports supports expressions for uwp/xbox

* Update baseline

* More ports updated for !xbox

* Update baseline

* Update support expression for ms-gdkx

* Update baseline

* ms-gdkx port should fail on ado system

* Revert change to opengl-registry since its needed for angle on UWP

* Minor github actions cr

* Refresh baseline
2023-03-20 12:02:25 -07:00
Chuck Walbourn c1d764a742
[community triplet] adds triplets for building for the Xbox platform (#29210)
* Try adding xbox triplets

* Update for Gaming Command Prompt usage

* Fix directxtk12 shaders for xbox

* Add toolchain for xbox

* Fix ports for feature builds

* Code review feedback

* More code review

* Code review

* WIN32_LEAN_AND_MEAN is too aggressive for many libs

* Normalize GDK variable paths

* Need to leave oldnames.lib as many libs use POSIX names

* More code review feedback

* Remove extra file

* Use of /DEFAULTLIB fixed 41 ports

* Code review feedback

* Added basic xbox supports expression

* Updates for xbox-aware ports

* Update for CMake fixes upstream

* Minor synatx fix

* Fix up merge issues

* Need directx-headers for linux

* Missed one port revision

* Removed VCPKG_TARGET_IS_XBOX from project scope after upstream fixes

* Update baseline

* License updates per github-actions bot

* Update baseline

* Update toolchain to support try_compile for GDK headers

* Update port numbers

* Update baseline

* Don't need directx-dxc for Xbox builds

* Update baseline

* Update hashes

* Code review

* Update baseline

* Refresh hashes for upstream fixes

* Update baseline

* Add ms-gdkx stub port

* Update baseline

* updated ms-gdkx with user-friendly output

* Update baseline

* Code review for the toolchain file

* Update directxkt12 hash

* Refresh baseline

* Update MSBuild integration to select proper triplet for GDK custom platforms

* Update CMake integration to select proper xbox triplet from XBOX_CONSOLE_TARGET

* vcpkg.targets update

* Code review feedback

* Update baseline

* Refresh baseline

* Code review for MSBuild

* Code review for xbox toolchain

* vcpkg.cmake codereview

---------

Co-authored-by: walbourn <chuckw_walbourn@yahoo.com>
2023-03-08 14:06:20 -08:00
Jack·Boos·Yu bf1646e7b9
[vcpkg toolchain] Fix CMAKE_CROSSCOMPILING when building on UWP (#26866)
* [vcpkg toolchain] Fix CMAKE_CROSSCOMPILING when building on UWP

* [kfr] Set cpu arch to generic to avoid call try_run

* version

* [kfr] Re-fix cross configure issue

* version

* Revert changes about kfr, add kfr:x64-uwp to ci.baseline instead

* version

* Remove VCPKG_LINKER_FLAGS_RELEASE from debug builds, and apply other changes from windows.cmake for consistency.

Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2023-01-25 12:18:55 -08:00
dan-shaw 5908d702d6
[vcpkg] Add new community triplet arm64ec (#27814) 2023-01-17 17:23:11 -08:00
Eric Kilmer 1ed3a8935a
[vcpkg] Fix cross compiling macOS (#26240)
This follows the pattern in the Windows toolchain with respect to
setting VCPKG_CMAKE_SYSTEM_VERSION and also how arm64 macOS can execute
x86_64 through Rosetta.
2022-08-10 11:22:01 -07:00
Daniel Schürmann 8ca9b2b84c
[wavpack] arm support (#21790)
* [osx] set CMAKE_SYSTEM_PROCESSOR from VCPKG_TARGET_ARCHITECTURE on osx

* [linux] Set CMAKE_ASM_COMPILER and CMAKE_ASM-ATT_COMPILER in case of crosscompile

* [wavpack] migrate to vcpkg_cmake_install

* [wavpack] enable arm builds

* [wavpack] Add  license field to vcpkg.json

* [OSX] don't default to 86_64
2022-04-29 11:42:37 -07:00
nicole mazzuca 9ccd693f1b
[toolchain windows] set CMAKE_SYSTEM_PROCESSOR (#24100)
* [toolchain windows] set CMAKE_SYSTEM_NAME and CMAKE_SYSTEM_PROCESSOR

In specific, I did this for the cpuinfo PR - I realized the reason
that cpuinfo doesn't support arm64 windows cross compilation is because
we don't set CMAKE_SYSTEM_PROCESSOR.

* correctly set CMAKE_CROSSCOMPILING

* start fixin libraries

* more changes:

- gainput: remove line
- glog: remove try_run when cross compiling
- windows.cmake: set CMAKE_SYSTEM_VERSION

* more patches

- mapnik: set BOOST_REGEX_HAS_ICU to avoid check_cxx_source_runs
- orc: set HAS_PRE_1970 and HAS_POST_2038 for same
- seal: change out check_cxx_source_runs for check_cxx_source_compiles

* more changes

* fix x86-windows

* fix qpid-proton, glog

* build corrade-rc

* fix x64-uwp ports

* forgot to _actually_ always build corrade-rc .,.

* Replay #22831

* Dedupe CMAKE_SYSTEM_NAME settings.

* Add quotes for corrade_rc_param

Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>

* Update version DB.

Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
2022-04-29 11:40:30 -07:00
Alexander Neumann 05c93c5c5a
[Fix uwp toolchain|world rebuild] make ninja work for uwp (#22831) 2022-04-27 18:12:48 -07:00
Geoff Evans 75ad7f54db
[scripts/toolchains/android.cmake] Remove start-of-string regex check for overlay triplet name matching. (#20059)
This change allows for adding a prefix to android overlay ports, which many other systems support already. The android system relies on regex matching of the triplet name to deduce the ABI, so this change just allows for that string to be anywhere in the overlay triplet string.
2022-01-31 21:14:16 -08:00
Christophe Calmejane be65fbbf75
Fixed android toolchain with newest NDK (#21465)
* Fixed android toolchain with newest NDK
ANDROID_NATIVE_API_LEVEL has been removed from NDK cmake toolchain so we now have to use ANDROID_PLATFORM

* Fix android toolchain: Maintain backward compatibility for older NDK
2021-12-06 20:15:20 -08:00
talregev b8dbf43b08
[vcpkg] [Android]Compile armv6 with arm mode (#17962)
* Compile amrv6 with arm mode

* Update android.cmake
2021-06-07 11:33:48 -07:00
talregev 27fe7a50db
Compile for android including armv6. (#16847)
* compile for android including armv6.

* Update arm-android.cmake

* Update from comment in the PR
support ANDROID_NATIVE_API_LEVEL from env variable. (to be able to compile also 16 and not just 21 as default)

* Add ANDROID_ARM_NEON from env var

* Short version of update ANDROID_ARM_NEON.

* remove ANDROID_NATIVE_API_LEVEL now using vcpkg_CMAKE_SYSTEM_VERSION in triplet
Add cache to ANDROID_ARM_NEON
fix indents

* Update neon triplet

* Add arm-neon-android.cmake file.
2021-05-05 13:32:47 -07:00
Long Nguyen 08c867c52a
[mingw] Remove executable extension on non-Windows hosts (#15282) 2020-12-26 22:19:16 -08:00