diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-10-02 19:09:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-02 19:09:08 +0300 |
commit | 9483875798bb6842769a0b3d52635ff950ea11a7 (patch) | |
tree | ac6927aacd5e1e4c0aeb0fb4ffb01734201c5262 /docs/markdown | |
parent | 35313c2a850020dc2d98c1aa5b2f4340e49f01d6 (diff) | |
parent | ec45c29c9ddd5d848eb1555cdc09246d8900afec (diff) | |
download | meson-9483875798bb6842769a0b3d52635ff950ea11a7.zip meson-9483875798bb6842769a0b3d52635ff950ea11a7.tar.gz meson-9483875798bb6842769a0b3d52635ff950ea11a7.tar.bz2 |
Merge pull request #2397 from mesonbuild/prebuilt
Better support for prebuilt shared libs
Diffstat (limited to 'docs/markdown')
-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. |