Mark things the scons recipe doesn't cover yet.

Implement the sanity checker in the scons recipe.
This commit is contained in:
Eric S. Raymond 2008-03-27 21:51:30 +00:00
parent 722512d600
commit ae70561807
4 changed files with 34 additions and 2 deletions

View file

@ -14,6 +14,7 @@ finddocdist=(cd $(top_srcdir) && find doc/manual -name "*.html" -o -name "*.css"
finddoc=($(finddocdist) | sed -e 's:doc/manual:manual:g' )
finddocdirs=(cd $(top_srcdir)/doc && find manual -type d \! \( -name .svn -prune \) -print; )
# *** Not yet covered by scons recipe
# This is a workaround to include manpage and manual translation files in the
# tarball. Manual and manpages are pre-built, so these files aren't actually
# needed to build Wesnoth, but are included because .po files are the
@ -28,6 +29,7 @@ w_preparefileinstall = if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
*) f=$$p;; \
esac;
# *** Not yet covered by scons recipe
bundle_contents=@PACKAGE_NAME@.app/Contents
@PACKAGE@_bundle: src/@PACKAGE@
mkdir -p "$(bundle_contents)/MacOS"
@ -35,6 +37,7 @@ bundle_contents=@PACKAGE_NAME@.app/Contents
echo "APPL????" > "$(bundle_contents)/PkgInfo"
$(INSTALL_PROGRAM) $< "$(bundle_contents)/MacOS/@PACKAGE_NAME@"
# *** Not yet covered by scons recipe
bundle_editor_contents=@PACKAGE_NAME@ Editor.app/Contents
@PACKAGE@_editor_bundle: src/@PACKAGE@_editor
mkdir -p "$(bundle_editor_contents)/MacOS"
@ -47,6 +50,7 @@ sanity-check:
cd utils; ./sanity_check
cd data/tools; make sanity-check
# *** Not yet covered by scons recipe (optipng, dummylocales)
install-data-local:
@$(NORMAL_INSTALL)
if OPTIPNG
@ -106,6 +110,7 @@ if TINYGUI
endif
endif
# *** Not yet covered by scons recipe
zip-install: install
$(top_srcdir)/utils/splittree "$(DESTDIR)$(pkgdatadir)" --zip
@ -187,28 +192,34 @@ pkgpython_PYTHON = data/tools/wesnoth/wmltools.py \
data/tools/wesnoth/__init__.py
endif
# *** Not yet covered by scons recipe
update-po:
@cd po && make $@ || exit $?
if MANUALUPDATE
@cd doc/manual && make update-po || exit $?
endif
# *** Not yet covered by scons recipe
if PO4AUPDATE
update-po4a:
@cd po && make update-po4a || exit $?
@echo -n "Removing empty man directories... "
@find doc/man/ -maxdepth 1 -type d -empty -exec rmdir {} \; && \
echo "done." || exit $?
# *** Not yet covered by scons recipe
if MANUALUPDATE
@cd doc/manual && make html || exit $?
endif
endif
# *** Not yet covered by scons recipe
if MANUALUPDATE
manual-en:
@cd doc/manual && make manual.en.html || exit $?
endif
# *** Not yet covered by scons recipe
# latest graph-includes.pl can be found currently at http://ydirson.free.fr/soft/wesnoth/graphs/
wesnoth-deps.dot:
PERL5LIB=$(top_srcdir) graph-includes -verbose --class wesnoth --consolidate 1-1 \

View file

@ -66,6 +66,7 @@ Available build targets include:
install-campaignd = install the Wesnoth campaign server
uninstall = uninstall all executables, tools, and servers
wesnoth.tgz = make compressed distribution tarball
sanity_check = run a pre-release sanity check on the distrivution
""" + opts.GenerateHelpText(env))
conf = Configure(env)
@ -715,6 +716,16 @@ env.Tar('wesnoth.tgz', manifest())
env.Append(TARFLAGS='-z --exclude=".svn" --exclude="~"',
TARCOMSTR="Making tarball...")
#
# Sanity checking
#
sanity_check = env.Command('sanity_check', '', [
Action("cd utils; ./sanity_check"),
Action("cd data/tools; make sanity-check"),
])
env.AlwaysBuild(sanity_check)
env.Precious(sanity_check)
#
# Known problems:
#

View file

@ -344,6 +344,7 @@ AC_PROG_CC
AC_PROG_INSTALL
AM_PROG_CC_C_O
# *** Not yet covered by scons recipe
# Check for __builtin_expect
AC_TRY_LINK([int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }],
[],
@ -371,6 +372,7 @@ AM_CONDITIONAL([X11], [test "$have_libx11" = 'yes'])
AC_PATH_PROGS([PNGMETA], [pngmeta], [none])
# *** Not yet covered by scons recipe
if test \( "x$PNGMETA" = "xnone" \) -a \( "x$TINYGUI" = xyes \); then
AC_MSG_ERROR([*** You must install the pngmeta utility before building with -- tinygui.])
fi
@ -503,6 +505,7 @@ AC_SUBST([PNG_CFLAGS])
AC_SUBST([PNG_LIBS])
AM_CONDITIONAL([LIBPNG], [test x$pngfound = xyes])
# *** Not yet covered by scons recipe
# Check for SDL version. Taken from sdl.m4
AC_ARG_ENABLE([sdltest],
@ -538,7 +541,7 @@ if test "x$enable_sdltest" = "xyes" ; then
LIBS="$LIBS $SDL_LIBS"
# Now check if the installed SDL is sufficiently new. (Also sanity
# checks the results of sdl-config to some extent
# checks the results of sdl-config to some extent)
rm -f conf.sdltest
AC_RUN_IFELSE([AC_LANG_SOURCE([
@ -623,6 +626,7 @@ int main (int argc, char **argv)
LIBS="$ac_save_LIBS"
fi
# *** Not yet covered by scons recipe
# po4a
AC_PATH_PROGS([PO4A], [po4a], [none])
@ -671,6 +675,7 @@ if test -n "$LDPREFIX" -a -r `$SDL_CONFIG --prefix`/lib/libSDL.la
then SDL_LIBS=`$SDL_CONFIG --prefix`/lib/libSDL.la
else SDL_LIBS=`$SDL_CONFIG --libs`
fi
# *** Not yet covered by scons recipe
case $host_os in
darwin*)
SDL_LIBS="-framework Carbon $SDL_LIBS"
@ -798,6 +803,7 @@ AC_CHECK_FUNCS([floor socket strtoul])
#######################################################################
# Check for PNG support in SDL_image #
#######################################################################
# *** Not yet covered by scons recipe
AC_LANG([C])
AC_MSG_CHECKING([for PNG support in SDL_image])
@ -840,6 +846,7 @@ LIBS=$OLD_LIBS
#######################################################################
# Check for OGG support in SDL_mixer #
#######################################################################
# *** Not yet covered by scons recipe
if test -e "data/core/music/main_menu.ogg" ; then
AC_LANG([C])
@ -959,6 +966,7 @@ AM_CONDITIONAL([BOOST_AUTO_TEST], [test x"$boost_auto_test" = xyes])
#######################################################################
# Tune gettext stuff for our needs #
#######################################################################
# *** Not yet covered by scons recipe
case $srcdir in
/*) topdir=$srcdir ;;
@ -1022,7 +1030,7 @@ AC_CONFIG_FILES([Makefile
po/wesnoth-trow/Makefile.in
po/wesnoth-tsg/Makefile.in
po/wesnoth-utbs/Makefile.in
po/wesnoth-aoi/Makefile.in
po/wesnoth-aoi/Makefile.in
m4/Makefile
icons/Makefile
src/Makefile

View file

@ -479,10 +479,12 @@ if PREFSDIR
CXXFLAGS += -DPREFERENCES_DIR=\"$(prefsdir)\"
endif
# *** Not yet covered by scons recipe
if BOOST_TEST_DYN_LINK
CXXFLAGS += -DBOOST_TEST_DYN_LINK
endif
# *** Not yet covered by scons recipe
if BOOST_AUTO_TEST
CXXFLAGS += -DWESNOTH_BOOST_AUTO_TEST_MAIN
else