summaryrefslogtreecommitdiff
path: root/test cases/android/1 exe_type/meson.build
blob: 5b0e64a5182dcf00a80f49494927e0ce182bff0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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