diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2018-01-03 11:46:13 -0500 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.com> | 2018-04-03 15:38:01 -0400 |
commit | 68f9846b7c584815d821c60fcdff866fe629955a (patch) | |
tree | d90a14a8d2e790bea3084e3226d0f5f326e5f482 /docs/markdown/snippets | |
parent | 809f01833336be63eb07441e120de2e4f8c4b3c4 (diff) | |
download | meson-68f9846b7c584815d821c60fcdff866fe629955a.zip meson-68f9846b7c584815d821c60fcdff866fe629955a.tar.gz meson-68f9846b7c584815d821c60fcdff866fe629955a.tar.bz2 |
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
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/both-libraries.md | 9 |
1 files changed, 9 insertions, 0 deletions
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. |