Add the autotools changes to enable ilor's new editor.

Commit based on ilor's patch.
This commit is contained in:
Mark de Wever 2008-06-12 15:02:22 +00:00
parent ea8fe73c5d
commit 2e12d16e4b
2 changed files with 27 additions and 0 deletions

View File

@ -239,6 +239,11 @@ AC_ARG_ENABLE([editor],
[editor=$enableval],
[editor=no])
AC_ARG_WITH([editor2],
AS_HELP_STRING([--enable-editor2], [build the new map editor in the game]),
[editor2=$withval],
[editor2=""])
AC_ARG_ENABLE([tools],
AS_HELP_STRING([--enable-tools], [enable building and installation of tools for artists and WML maintainers]),
[tools=$enableval],
@ -296,12 +301,18 @@ AM_CONDITIONAL([SERVER], [test x$server = xyes])
AM_CONDITIONAL([CAMPAIGNSERVER], [test x$campaignserver = xyes])
AM_CONDITIONAL([TESTS], [test x$tests = xyes])
AM_CONDITIONAL([EDITOR], [test x$editor = xyes])
AM_CONDITIONAL([EDITOR2], [test x$editor2 = xyes])
AM_CONDITIONAL([TOOLS], [test x$tools = xyes])
AM_CONDITIONAL([GCC], [test x$GXX = xyes])
AM_CONDITIONAL([INCLUDEDINTL], [test x$nls_cv_use_gnu_gettext = xyes])
AM_CONDITIONAL([INSTALLDATA], [test x$game = xyes || x$editor = xyes])
AM_CONDITIONAL([DUMMYLOCALES], [test x$dummylocales = xyes])
if test "x$editor2" = "xyes"
then
CXXFLAGS="$CXXFLAGS -DUSE_EDITOR2"
fi
if test x$dummylocales = xyes; then
AC_DEFINE([USE_DUMMYLOCALES],,[Define if the game should not use system locales])
fi

View File

@ -135,6 +135,22 @@ wesnoth_source = \
variant.cpp \
widgets/combo.cpp \
widgets/scrollpane.cpp
# used with editor2 option in the wesnoth target
wesnoth_editor2_SOURCES = \
editor2/editor_main.cpp \
editor/editor.cpp \
editor/editor_layout.cpp \
editor/map_manip.cpp \
editor/editor_display.cpp \
editor/editor_palettes.cpp \
editor/editor_dialogs.cpp \
editor/editor_undo.cpp
if EDITOR2
wesnoth_source += $(wesnoth_editor2_SOURCES)
endif
#############################################################################
# Wesnoth #