Skip to content

[question] How to separate generator files by requirements and tool requirements #12342

Closed
@prince-chrismc

Description

@prince-chrismc

In conan-io/conan-center-index#13612

We need to do some hackery in the build script to avoid both the dependencies and build requirements (which overlap) PkgConfigDeps being in the same folder.

@jwillikers implemented two different solutions

  • one with PkgConfigDeps.build_context_suffix and patching the Meson build script to use the new name.
  • one with manually copying the files to a seperate folder

Ideally there would be a generator folder for each for the advance case where we need to seperate them.


I'll get an error if I don't set the build_context_suffix for the wayland package because this library requires the wayland-client library from the wayland package as a regular requires while simultaneously requiring the wayland-scanner tool from the wayland package as a tool_requires.

If we were able to place the build-context pkg-config files in a separate directory from the others, this would avoid naming conflicts and the necessary patching to find the tool_requires dependencies. Meson would be able to handle this gracefully just by setting the standard project option build.pkg_config_path to a value including the directory for the build-context pkg-config files.

Originally posted by @jwillikers in conan-io/conan-center-index#13612 (comment)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions