diff options
author | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
---|---|---|
committer | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/unit/10 build_rpath | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/test cases/unit/10 build_rpath')
-rw-r--r-- | meson/test cases/unit/10 build_rpath/meson.build | 16 | ||||
-rw-r--r-- | meson/test cases/unit/10 build_rpath/prog.c | 5 | ||||
-rw-r--r-- | meson/test cases/unit/10 build_rpath/prog.cc | 8 | ||||
-rw-r--r-- | meson/test cases/unit/10 build_rpath/sub/meson.build | 1 | ||||
-rw-r--r-- | meson/test cases/unit/10 build_rpath/sub/stuff.c | 3 |
5 files changed, 33 insertions, 0 deletions
diff --git a/meson/test cases/unit/10 build_rpath/meson.build b/meson/test cases/unit/10 build_rpath/meson.build new file mode 100644 index 000000000..c0bc3bd27 --- /dev/null +++ b/meson/test cases/unit/10 build_rpath/meson.build @@ -0,0 +1,16 @@ +project('build rpath', 'c', 'cpp') + +subdir('sub') +executable('prog', 'prog.c', + link_with : l, + build_rpath : '/foo/bar', + install_rpath : '/baz', + install : true, + ) + +executable('progcxx', 'prog.cc', + link_with : l, + build_rpath : '/foo/bar', + install_rpath : 'baz', + install : true, + ) diff --git a/meson/test cases/unit/10 build_rpath/prog.c b/meson/test cases/unit/10 build_rpath/prog.c new file mode 100644 index 000000000..45b2fa3df --- /dev/null +++ b/meson/test cases/unit/10 build_rpath/prog.c @@ -0,0 +1,5 @@ +int get_stuff(); + +int main(int argc, char **argv) { + return get_stuff(); +} diff --git a/meson/test cases/unit/10 build_rpath/prog.cc b/meson/test cases/unit/10 build_rpath/prog.cc new file mode 100644 index 000000000..c7c212370 --- /dev/null +++ b/meson/test cases/unit/10 build_rpath/prog.cc @@ -0,0 +1,8 @@ +#include <string> +#include <iostream> + +int main(int argc, char **argv) { + std::string* s = new std::string("Hello"); + delete s; + return 0; +} diff --git a/meson/test cases/unit/10 build_rpath/sub/meson.build b/meson/test cases/unit/10 build_rpath/sub/meson.build new file mode 100644 index 000000000..6879ec666 --- /dev/null +++ b/meson/test cases/unit/10 build_rpath/sub/meson.build @@ -0,0 +1 @@ +l = shared_library('stuff', 'stuff.c') diff --git a/meson/test cases/unit/10 build_rpath/sub/stuff.c b/meson/test cases/unit/10 build_rpath/sub/stuff.c new file mode 100644 index 000000000..d56d8b0ea --- /dev/null +++ b/meson/test cases/unit/10 build_rpath/sub/stuff.c @@ -0,0 +1,3 @@ +int get_stuff() { + return 0; +} |