From b3362e350ad0c8603966bc485e66af553750c648 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 30 Sep 2017 18:25:33 +0300 Subject: [PATCH] Added release note snippet for prebuilt shared libs. --- docs/markdown/snippets/prebuilt.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docs/markdown/snippets/prebuilt.md diff --git a/docs/markdown/snippets/prebuilt.md b/docs/markdown/snippets/prebuilt.md new file mode 100644 index 000000000..a51176acc --- /dev/null +++ b/docs/markdown/snippets/prebuilt.md @@ -0,0 +1,15 @@ +# Better support for prebuilt shared libraries + +Meson has had support for prebuilt object files and static libraries. +This release adds feature parity to shared libraries. This means +that e.g. shipping prebuilt libraries as subprojects now can +be as simple as writing a definition file that looks like this. + + project('myprebuiltlibrary', 'c') + + cc = meson.get_compiler('c') + prebuilt = cc.find_library('mylib', dirs : meson.current_source_dir()) + mydep = declare_dependency(include_directories : include_directories('.'), + dependencies : prebuilt) + +Then you can use the dependency object in the same way as any other.