The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.7 KiB
1.7 KiB
Pkgconfig module
This module is a simple generator for pkg-config files.
Usage
To use this module, just do: pkg = import('pkgconfig')
. The following function will then be available as pkg.generate()
. You can, of course, replace the name pkg
with anything else.
pkg.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 againstversion
a string describing the version of this libraryname
the name of this librarydescription
a string describing the libraryfilebase
, the base name to use for the pkg-config file, as an example the value oflibfoo
would produce a pkg-config file calledlibfoo.pc
subdirs
which subdirs ofinclude
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 befoobar-1
requires
list of strings to put in theRequires
fieldrequires_private
list of strings to put in theRequires.private
fieldlibraries_private
list of strings to put in theLibraries.private
fieldinstall_dir
the directory to install to, defaults to the value of optionlibdir
followed by/pkgconfig
extra_cflags
a list of extra compiler flags to be added to theCflags
field after the header search pathvariables
a list of strings with custom variables to add to the generated file. The strings must be in the formname=value
and may reference other pkgconfig variables, e.g.datadir=${prefix}/share
. The namesprefix
,libdir
andinstalldir
are reserved and may not be used.