diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-07-15 05:33:03 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-07-21 19:40:54 +0300 |
commit | 2269b7f60b2443aa697a5616fcc3692fa3496046 (patch) | |
tree | 085e2a1b2dd75a46f0d5d837d8d039f93656ed83 /test cases/unit | |
parent | 381e8313ed191ae8e440a9ba3805d5322c769ea7 (diff) | |
download | meson-2269b7f60b2443aa697a5616fcc3692fa3496046.zip meson-2269b7f60b2443aa697a5616fcc3692fa3496046.tar.gz meson-2269b7f60b2443aa697a5616fcc3692fa3496046.tar.bz2 |
Add build_rpath as new property allowing people to specify rpath entries that are used in the build tree but will be removed on install.
Diffstat (limited to 'test cases/unit')
-rw-r--r-- | test cases/unit/11 build_rpath/meson.build | 9 | ||||
-rw-r--r-- | test cases/unit/11 build_rpath/prog.c | 5 | ||||
-rw-r--r-- | test cases/unit/11 build_rpath/sub/meson.build | 1 | ||||
-rw-r--r-- | test cases/unit/11 build_rpath/sub/stuff.c | 3 |
4 files changed, 18 insertions, 0 deletions
diff --git a/test cases/unit/11 build_rpath/meson.build b/test cases/unit/11 build_rpath/meson.build new file mode 100644 index 0000000..b84c259 --- /dev/null +++ b/test cases/unit/11 build_rpath/meson.build @@ -0,0 +1,9 @@ +project('build rpath', 'c') + +subdir('sub') +executable('prog', 'prog.c', + link_with : l, + build_rpath : '/foo/bar', + install_rpath : '/baz', + install : true, + ) diff --git a/test cases/unit/11 build_rpath/prog.c b/test cases/unit/11 build_rpath/prog.c new file mode 100644 index 0000000..45b2fa3 --- /dev/null +++ b/test cases/unit/11 build_rpath/prog.c @@ -0,0 +1,5 @@ +int get_stuff(); + +int main(int argc, char **argv) { + return get_stuff(); +} diff --git a/test cases/unit/11 build_rpath/sub/meson.build b/test cases/unit/11 build_rpath/sub/meson.build new file mode 100644 index 0000000..6879ec6 --- /dev/null +++ b/test cases/unit/11 build_rpath/sub/meson.build @@ -0,0 +1 @@ +l = shared_library('stuff', 'stuff.c') diff --git a/test cases/unit/11 build_rpath/sub/stuff.c b/test cases/unit/11 build_rpath/sub/stuff.c new file mode 100644 index 0000000..d56d8b0 --- /dev/null +++ b/test cases/unit/11 build_rpath/sub/stuff.c @@ -0,0 +1,3 @@ +int get_stuff() { + return 0; +} |