diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2022-12-18 09:33:20 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2022-12-18 09:33:20 +0530 |
commit | ec0fb1850bf816b341d23c5ebbdb68beba4ab805 (patch) | |
tree | a4f58d0f127eb267fbe5b13170d97e3f72b8fecd /src/meson.build | |
parent | a96abf1a4d29f78034273cbce96006cde950390c (diff) | |
download | libepoxy-ec0fb1850bf816b341d23c5ebbdb68beba4ab805.tar.gz |
meson: Override dependency to improve usage as a subproject
With this change, libepoxy can be consumed as a subproject without
making any changes to the build files of a project. All you need to do
is provide a wrap file with a `[provide]` section:
https://mesonbuild.com/Wrap-dependency-system-manual.html#provide-section
This is also necessary because otherwise projects need to hard-code
the subproject name, which might be `libepoxy` when using `wrap-git` or
`libepoxy-1.5.10` when using `wrap-file` (to build from a release
tarball). This can cause conflicts between different subprojects that
consume libepoxy differently.
Other projects like glib, cairo, pango, etc already do this.
Diffstat (limited to 'src/meson.build')
-rw-r--r-- | src/meson.build | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/meson.build b/src/meson.build index e19a918..da581ee 100644 --- a/src/meson.build +++ b/src/meson.build @@ -93,6 +93,7 @@ libepoxy_dep = declare_dependency( 'epoxy_has_wgl': epoxy_has_wgl, }, ) +meson.override_dependency('epoxy', libepoxy_dep) # We don't want to add these dependencies to the library, as they are # not needed when building Epoxy; we do want to add them to the generated |