abort meson build if source tree is not clean

devs/bu5hm4n/meson_wip
Mike Blumenkrantz 5 years ago
parent 263ee54545
commit eaebd704a9
  1. 5
      meson.build
  2. 3
      meson/clean_check.sh

@ -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')

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