abort meson build if source tree is not clean

This commit is contained in:
Mike Blumenkrantz 2017-07-21 16:20:04 -04:00
parent 263ee54545
commit eaebd704a9
2 changed files with 8 additions and 0 deletions

View File

@ -4,6 +4,11 @@ project('enlightenment', 'c',
default_options: [ 'c_std=gnu99', 'warning_level=2' ],
meson_version: '>= 0.40.0')
clean_check = run_command('meson/clean_check.sh')
if clean_check.returncode() == 0
error('Meson build requires a clean source tree')
endif
e_version = meson.project_version().split('.')
git_version = '0'
git = find_program('git')

3
meson/clean_check.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
test -f ${MESON_SOURCE_ROOT}/src/bin/e_fm_shared_types.h