summaryrefslogtreecommitdiff
path: root/docs/markdown/Pkgconfig-module.md
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@osg.samsung.com>2017-03-29 15:03:43 -0300
committerJussi Pakkanen <jpakkane@gmail.com>2017-04-26 17:56:33 +0300
commitb371875e02cce2fb3fbb9fbb8f07eb5817ae0e8f (patch)
tree6e1a3c34b1a85479d3b9f42ccd071096e637929b /docs/markdown/Pkgconfig-module.md
parent7dc747ea54480c452b913e4bfe682ec67061c9bf (diff)
downloadmeson-b371875e02cce2fb3fbb9fbb8f07eb5817ae0e8f.tar.gz
docs: Import the website and wiki and build with hotdoc
This allows us to more easily have the documentation in sync with the source code as people will have to document new features etc right at the time where they implement it.
Diffstat (limited to 'docs/markdown/Pkgconfig-module.md')
-rw-r--r--docs/markdown/Pkgconfig-module.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/markdown/Pkgconfig-module.md b/docs/markdown/Pkgconfig-module.md
new file mode 100644
index 000000000..81ca02041
--- /dev/null
+++ b/docs/markdown/Pkgconfig-module.md
@@ -0,0 +1,22 @@
+# Pkgconfig module
+
+This module is a simple generator for [pkg-config](http://pkg-config.freedesktop.org/) 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 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`