From 68f9846b7c584815d821c60fcdff866fe629955a Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 3 Jan 2018 11:46:13 -0500 Subject: Add both_libraries() to build both shared and static libraries Also support default_library='both' to make library() build both shared and static libraries. Closes #484 --- docs/markdown/snippets/both-libraries.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 docs/markdown/snippets/both-libraries.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/both-libraries.md b/docs/markdown/snippets/both-libraries.md new file mode 100644 index 0000000..1632f63 --- /dev/null +++ b/docs/markdown/snippets/both-libraries.md @@ -0,0 +1,9 @@ +## Building both shared and static libraries + +A new function `both_libraries()` has been added to build both shared and static +libraries at the same time. Source files will be compiled only once and object +files will be reused to build both shared and static libraries, unless +`b_staticpic` user option or `pic` argument are set to false in which case +sources will be compiled twice. + +The returned `buildtarget` object always represents the shared library. -- cgit v1.1