-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
[vcpkg/scripts/meson] add cross file and some minor corrections #11543
Conversation
….cmake. Set debug to true or false
Do you know how to add meson to the linux/osx azure image ? |
probably should set |
- remove some unnecssary spaces - remove unnecessary prefix definition from pkg-config call (since *.pc files should have been made relocatable with vcpkg_fixup_pkgconfig)
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
The failures in boost with arm64 should adress by #11545 |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
What is the status of this pr ? |
@@ -0,0 +1,21 @@ | |||
[binaries] |
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_make
also requires that information to correctly set all build flags.
We need some kind of vcpkg_determine_compile_settings_from_cmake
or similar to generate the required information for vcpkg_configure_make
and vcpkg_configure_meson
and 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?
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_make
and vcpkg_configure_qmake
apart form vcpkg_configure_meson
Back to draft until somebody generalized #11543 (comment). |
(although meson does not allow to pass a cmake toolchain to the find_dep calls so we probably want to always use pkgconfig if possible |
add cross file. Use same cmake prefix has vcpkg cmake. Set debug to true or false
closes #11230
(requires mesonbuild/meson#7190 to correctly work)
hmm should I set the crossfile in the triplet instead? any opinions about that?