diff options
author | Corentin Noël <corentin@elementary.io> | 2017-10-03 20:26:16 +0200 |
---|---|---|
committer | Corentin Noël <corentin@elementary.io> | 2017-10-03 20:26:16 +0200 |
commit | 1320a98a33e4e9f188e5daa143316b24d0dce819 (patch) | |
tree | 82ea281b163115277e1c9524283b0d371b6c21ac /docs/markdown/snippets | |
parent | f13887b64a9d535682668960493158ae15bfbb2d (diff) | |
parent | 0c3d58baba4a61558ed9b4905f26155a3e95cf6c (diff) | |
download | meson-1320a98a33e4e9f188e5daa143316b24d0dce819.zip meson-1320a98a33e4e9f188e5daa143316b24d0dce819.tar.gz meson-1320a98a33e4e9f188e5daa143316b24d0dce819.tar.bz2 |
Merge github.com:mesonbuild/meson into vala-target-dirs
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/prebuilt.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/markdown/snippets/prebuilt.md b/docs/markdown/snippets/prebuilt.md new file mode 100644 index 0000000..19741c4 --- /dev/null +++ b/docs/markdown/snippets/prebuilt.md @@ -0,0 +1,20 @@ +# Better support for shared libraries in non-system paths + +Meson has had support for prebuilt object files and static libraries. +This release adds feature parity to shared libraries that are either +in non-standard system paths or shipped as part of your project. On +systems that support rpath, Meson automatically adds rpath entries +to built targets using manually found external libraries. + +This means that e.g. supporting prebuilt libraries shipped with your +source or provided by subprojects or wrap definitions by writing a +build file 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. |