| 1 |
project('android exe type', 'c') |
| 2 |
fs = import('fs') |
| 3 |
|
| 4 |
e = executable('executable', 'exe_type.c', |
| 5 |
android_exe_type : 'executable') |
| 6 |
a = executable('application', 'exe_type.c', |
| 7 |
android_exe_type : 'application') |
| 8 |
|
| 9 |
if fs.name(e.full_path()).contains('.') |
| 10 |
error('Executable with exe_type `executable` did have expected filename') |
| 11 |
endif |
| 12 |
|
| 13 |
if not fs.name(a.full_path()).startswith('lib') or not fs.name(a.full_path()).endswith('.so') |
| 14 |
error('Executable with exe_type `application` did not have expected filename') |
| 15 |
endif |