Просмотр исходного кода

Parse build.config in configure.ac.

This gives us a reasonably cross-platform way to to build options. Works
well with LolRemez, where we no longer depend on GUI libraries.
legacy
Sam Hocevar 7 лет назад
Родитель
Сommit
a94e477f7f
1 измененных файлов: 19 добавлений и 1 удалений
  1. +19
    -1
      build/autotools/m4/lol-subproject.m4

+ 19
- 1
build/autotools/m4/lol-subproject.m4 Просмотреть файл

@@ -15,12 +15,30 @@ dnl
# ---------------------
AC_DEFUN([LOL_AC_SUBPROJECT], [

dnl
dnl Parse build.config if present
dnl

AC_MSG_WARN([${srcdir}])
ac_lol_configure_args=""
if test -f ${srcdir}/build.config; then
for x in `sed -ne 's,.*<enable_\(@<:@^>@:>@*\)>\(@<:@^<@:>@*\)</enable_@<:@^>@:>@*>.*,\1=\2,p' ${srcdir}/build.config`; do
eval "enable_${x}"
case ${x} in
*=no) arg="--disable-${x%=no}" ;;
*=yes) arg="--enable-${x%=yes}" ;;
*) arg="" ;;
esac
ac_lol_configure_args="${ac_lol_configure_args} ${arg}"
done
fi

dnl
dnl Build and configure Lol Engine before our repository
dnl Ensure $lol_srcdir and $lol_builddir are properly set
dnl

ac_configure_args="${ac_configure_args} --enable-subproject $1"
ac_configure_args="${ac_configure_args} --enable-subproject ${ac_lol_configure_args} $1"
AC_CONFIG_SUBDIRS([lol])
AC_SUBST(lol_srcdir, '${top_srcdir}/lol')
AC_SUBST(lol_builddir, '${top_builddir}/lol')


Загрузка…
Отмена
Сохранить