Commit e41ee043 authored by Marco Trevisan's avatar Marco Trevisan 🎺

meson: Use `install_dir` to not install uninstalled .pc

Also bump meson dependency as this needs 0.50.0
parent ee005ba3
version: '3.31.4',
meson_version: '>= 0.48.1')
meson_version: '>= 0.50.0')
......@@ -80,14 +80,12 @@ pc_conf.set('XRES_PACKAGE', XRES_PACKAGE)
pc_conf.set('VERSION', meson.project_version())
foreach pc: [PACKAGE_NAME, PACKAGE_NAME + '-uninstalled']
install_path = []
if not pc.contains('-uninstalled')
install_path = join_paths(libdir, 'pkgconfig')
configure_file(input: pc + '',
output: pc + '.pc',
configuration: pc_conf,
install_dir: install_path)
install: not pc.contains('-uninstalled'),
install_dir: join_paths(libdir, 'pkgconfig'),
  • mentioned in merge request !7 (closed)

    Toggle commit list
  • Just FTR only. Just tested new 3.32 and looks like above still is not solving #138 (closed)

  • @kloczek That makes sense, because this commit is completely unrelated.

  • IIRC meson provides generating .pc file without template file. I think that libwnck should use that way because it will solve not propagating Requires.private when static libraries are not build.

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment