From b4aee4675afd9f9f4a36aea628bab4249d7addbc Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 28 Mar 2018 18:19:42 -0400 Subject: pkgconfig: Add a simple version of the generator (#3284) --- docs/markdown/snippets/pkgconfig-generator.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 docs/markdown/snippets/pkgconfig-generator.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/pkgconfig-generator.md b/docs/markdown/snippets/pkgconfig-generator.md new file mode 100644 index 0000000..93920d3 --- /dev/null +++ b/docs/markdown/snippets/pkgconfig-generator.md @@ -0,0 +1,14 @@ +## Improvements to pkgconfig module + +A `StaticLibrary` or `SharedLibrary` object can optionally be passed +as first positional argument of the `generate()` method. If one is provided a +default value will be provided for all required fields of the pc file: +- `install_dir` is set to `pkgconfig` folder in the same location than the provided library. +- `description` is set to the project's name followed by the library's name. +- `name` is set to the library's name. + +Generating a .pc file is now as simple as: + +``` +pkgconfig.generate(mylib) +``` -- cgit v1.1