diff options
| author | Florian "sp1rit" <sp1rit@disroot.org> | 2025-04-16 22:11:38 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2025-04-17 19:01:22 +0300 |
| commit | 855cf199fc950de3e764a74e7b545c2213aa601c (patch) | |
| tree | aaa1c702e0ed75b1fd40554495d9518036bcd4cd /test cases/android | |
| parent | da28caa63dc855ad897b259e6dbc1615c847fbf8 (diff) | |
| download | meson-855cf199fc950de3e764a74e7b545c2213aa601c.tar.gz | |
android: Added android_exe_type kwargs to executable
By setting android_exe_type to `application`, the executable gets
actually built as a shared library instead of an executable. This makes
it possible to use an application within an android application process.
mesonbuild#13758
https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/7555/
Diffstat (limited to 'test cases/android')
| -rw-r--r-- | test cases/android/1 exe_type/exe_type.c | 5 | ||||
| -rw-r--r-- | test cases/android/1 exe_type/meson.build | 15 |
2 files changed, 20 insertions, 0 deletions
diff --git a/test cases/android/1 exe_type/exe_type.c b/test cases/android/1 exe_type/exe_type.c new file mode 100644 index 000000000..cd9ca7db9 --- /dev/null +++ b/test cases/android/1 exe_type/exe_type.c @@ -0,0 +1,5 @@ +#include <stdio.h> + +int main(void) { + return 0; +} diff --git a/test cases/android/1 exe_type/meson.build b/test cases/android/1 exe_type/meson.build new file mode 100644 index 000000000..5b0e64a51 --- /dev/null +++ b/test cases/android/1 exe_type/meson.build @@ -0,0 +1,15 @@ +project('android exe type', 'c') +fs = import('fs') + +e = executable('executable', 'exe_type.c', + android_exe_type : 'executable') +a = executable('application', 'exe_type.c', + android_exe_type : 'application') + +if fs.name(e.full_path()).contains('.') + error('Executable with exe_type `executable` did have expected filename') +endif + +if not fs.name(a.full_path()).startswith('lib') or not fs.name(a.full_path()).endswith('.so') + error('Executable with exe_type `application` did not have expected filename') +endif |
