bu5hm4n pushed a commit to branch feature/meson. http://git.enlightenment.org/core/efl.git/commit/?id=6e472f25c3d02e0bad756bbb92e4cf924cc58a3d
commit 6e472f25c3d02e0bad756bbb92e4cf924cc58a3d Author: Marcel Hollerbach <[email protected]> Date: Fri Dec 22 14:15:59 2017 +0100 meson: abort if the same repo was build with autotools this leads to really weird things, like wrongly used .eo.c files ... --- meson.build | 5 +++++ meson/clean_check.sh | 3 +++ 2 files changed, 8 insertions(+) diff --git a/meson.build b/meson.build index a566a5381d..a077f72951 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,10 @@ project('efl', ['c','cpp'], version: '1.20.99') +clean_check = run_command('meson/clean_check.sh') +if clean_check.returncode() == 0 + error('Meson build requires a clean source tree') +endif + pkgconfig = import('pkgconfig') version_arr = meson.project_version().split('.') diff --git a/meson/clean_check.sh b/meson/clean_check.sh new file mode 100644 index 0000000000..c054794048 --- /dev/null +++ b/meson/clean_check.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +test -f ${MESON_SOURCE_ROOT}/configure --
