Skip to content

Pkgconfig module

TingPing edited this page Oct 7, 2016 · 9 revisions

This module is a simple generator for pkg-config files. It has one method.

generate

The generated file's properties are specified with the following keyword arguments.

  • libraries a list of built libraries (usually results of shared_library) that the user needs to link against
  • version a string describing the version of this library
  • name the name of this library
  • description a string describing the library
  • filebase, the base name to use for the pkg-config file, as an example the value of libfoo would produce a pkg-config file called libfoo.pc
  • subdirs which subdirs of include should be added to the header search path, for example if you install headers into ${PREFIX}/include/foobar-1, the correct value for this argument would be foobar-1
  • requires list of strings to put in the Requires field
  • requires_private list of strings to put in the Requires.private field
  • libraries_private list of strings to put in the Libraries.private field
  • install_dir the directory to install to, defaults to the value of option libdir followed by /pkgconfig

Meson documentation has moved

All documentation is now on the main web site.

This page should be at this address.

Clone this wiki locally