diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-04-04 22:47:59 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-04 22:47:59 +0300 |
| commit | aef1a81b3586aeb48988b60fbeaef5c19e112c45 (patch) | |
| tree | 23abfa769e8b948a1d94afaa1bdc8ddcaa369429 /docs/markdown/snippets/both-libraries.md | |
| parent | c1fcc8ab3e1cac0823f3527000e543cc96885d48 (diff) | |
| parent | 68f9846b7c584815d821c60fcdff866fe629955a (diff) | |
| download | meson-aef1a81b3586aeb48988b60fbeaef5c19e112c45.tar.gz | |
Merge pull request #2711 from xclaesse/both-library
Add both_library() to build both shared and static library
Diffstat (limited to 'docs/markdown/snippets/both-libraries.md')
| -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 000000000..1632f63f4 --- /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. |
