-
Notifications
You must be signed in to change notification settings - Fork 7.4k
[vcpkg/scripts/meson] add cross file and some minor corrections #11543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a819e0a
[vcpkg/scripts/meson] add cross file. Use same cmake prefix has vcpkg…
Neumann-A 820a1b2
[vcpkg/scripts/acquire_program] download meson on !windows
Neumann-A 6b0e8f0
[vcpkg/scripts/meson] -move crossfile definition into triplet.
Neumann-A 314533c
[vcpkg/scripts/meson] environment variables require DEFINED
Neumann-A 555395c
[vcpkg/scripts] allow to find internal meson.py
Neumann-A File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| [binaries] | ||
| #exe_wrapper = 'None' # A command used to run generated executables. | ||
| cc = 'msvc' | ||
| c = 'cl' | ||
| cpp = 'cl' | ||
| ar = 'lib' | ||
| windres = 'rc' | ||
| cmake = 'cmake' | ||
| [properties] | ||
| #needs_exe_wrapper = true | ||
| skip_sanity_check = True | ||
| [host_machine] | ||
| system = 'windows' | ||
| cpu_family = 'aarch64' | ||
| cpu = 'armv8' | ||
| endian = 'little' | ||
| [build_machine] | ||
| system = 'windows' | ||
| cpu_family = 'x86_64' | ||
| cpu = 'x86_64' | ||
| endian = 'little' | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| set(VCPKG_TARGET_ARCHITECTURE arm64) | ||
| set(VCPKG_CRT_LINKAGE dynamic) | ||
| set(VCPKG_LIBRARY_LINKAGE dynamic) | ||
|
|
||
|
|
||
| set(VCPKG_MESON_CROSS_FILE "${SCRIPTS}/toolchains/meson.windows.arm64.crossfile") |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to autogenerate this file from the toolchain?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably Yes. Needs to be done anyway since
vcpkg_configure_makealso requires that information to correctly set all build flags.We need some kind of
vcpkg_determine_compile_settings_from_cmakeor similar to generate the required information forvcpkg_configure_makeandvcpkg_configure_mesonand maybe other not CMake related ports.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also meson tries to do it the other way around e.g. have a meson crossfile and generate a cmake toolchain out of it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should figure out how to autogenerate this file before merging this. Otherwise, we may have too many files to maintain.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ras0219-msft do you have some suggestions?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Existing places where we already do this kind of thing are in the boost helpers and openssl-unix ports:
https://github.com/microsoft/vcpkg/blob/master/ports/boost-modular-build-helper/boost-modular-build.cmake
https://github.com/microsoft/vcpkg/blob/master/ports/openssl-unix/CMakeLists.txt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice those two scripts should be generalized.
A lot of that stuff is actually also required for
vcpkg_configure_makeandvcpkg_configure_qmakeapart formvcpkg_configure_meson