-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[ignition-plugin1] Add new port 🤖 #11275
Conversation
ed9d160
to
5f93508
Compare
/azp run |
1 similar comment
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@strega-nil |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
These seem to be real errors, but I don't understand them. |
@strega-nil
@traversaro |
Probably it is necessary to pass |
Actually |
It seems that @Neumann-A |
I investigate a bit and indeed it make sense to have a
to
Other platforms used in community triplets probably will also need to be added to this if, but for now I only added the system considered in https://github.com/microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_common_definitions.cmake . |
You can either do that or call Probably also needs a case for |
That make totally sense. |
For which library? As far as I know on MinGW dl is provided by an external library (dlfcn-win32), but indeed I do not know if linking with |
don't know mingw or msys that well. Just thought that there might be a need for an additional case for it as well ;) |
5f93508
to
1c27b4c
Compare
@NancyLi1013 @Neumann-A @NancyLi1013 Thanks to the comment of @Electric-Turtle in #11273 (comment) I noticed a critical flaw in this PR. Namely, |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
The recent changes caused some new regressions. |
Azure Pipelines successfully started running 1 pipeline(s). |
I may be wrong, but the CI failures seems not to be related with this PR. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@traversaro I'll look into this tomorrow |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
By default the vcpkg_fixup_cmake_targets script remove the parent path of CONFIG_PATH if it named "cmake", this behaviour is not convenient for ports that install more than one CMake package config file, and for which vcpkg_fixup_cmake_targets is invoked multiple times. To optionally disable this behaviour, this commit adds the option DO_NOT_DELETE_PARENT_CONFIG_PATH to vcpkg_fixup_cmake_targets.
…tall multiple CMake package config files Some ignition libraries install several CMake package config files, to represent the different components of the library. This commit modifies the ignition_modular_library function to fixup correctly all the cmake package config files.
…ommon_definitions To correctly validate installed pkg-config files, vcpkg_fixup_pkgconfig needs to know for each platform which libraries are not managed by vcpkg. This commits improve this definitions for all the triplet supported by vcpkg, and move this definition to vcpkg_common_definitions in a way that permit custom triplets to overload its value.
1c27b4c
to
c564842
Compare
PR rebased over latest master. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
All checks seem to be successful. |
@@ -194,8 +194,8 @@ endfunction() | |||
function(vcpkg_fixup_pkgconfig) | |||
cmake_parse_arguments(_vfpkg "" "" "RELEASE_FILES;DEBUG_FILES;SYSTEM_LIBRARIES;SYSTEM_PACKAGES;IGNORE_FLAGS" ${ARGN}) | |||
|
|||
if(VCPKG_TARGET_IS_LINUX) | |||
list(APPEND _vfpkg_SYSTEM_LIBRARIES -ldl -lm) | |||
if(VCPKG_SYSTEM_LIBRARIES) |
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.
Does pkgconfig
need the system libraries on Windows?
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.
Yes, the system libraries that I have encounter in pkg-config files on Windows are defined in https://github.com/microsoft/vcpkg/pull/11275/files#diff-c1846c91b47ff94ccee5e8a6a1658e62R130 . In particular, I found them in the pcap port (see https://github.com/microsoft/vcpkg/blob/2020.06/ports/libpcap/portfile.cmake#L89), and adding them in a centralized place seems to me consistent to what we are doing in Linux/macOS .
Thanks for the PR! |
What does your PR fix?
Which triplets are supported/not supported?
Does your PR follow the maintainer guide?
As discussed in #7781, different major version of ignition robotics libraries (https://ignitionrobotics.org/) can be installed side by side, so each new major version is added as a new port.
In particular, ignition-plugin1 is a dependency of Ignition Robotics Citadel (that contains Ignition Gazebo 3, see https://www.openrobotics.org/blog/2019/12/11/ignition-citadel-released).