forked from Mirrors/openclonk
autotools: Add mape
parent
36e966ba26
commit
b3c24dec56
88
Makefile.am
88
Makefile.am
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
ACLOCAL_AMFLAGS = -I autotools --install
|
ACLOCAL_AMFLAGS = -I autotools --install
|
||||||
|
|
||||||
bin_PROGRAMS = clonk c4group puncher c4script
|
bin_PROGRAMS = clonk c4group puncher c4script mape
|
||||||
|
|
||||||
EXTRA_PROGRAMS = tstc4netio gunzip4c4group
|
EXTRA_PROGRAMS = tstc4netio gunzip4c4group
|
||||||
|
|
||||||
|
@ -707,6 +707,92 @@ if WIN32
|
||||||
c4script_LDADD += -lwinmm
|
c4script_LDADD += -lwinmm
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
## mape
|
||||||
|
mape_SOURCES = \
|
||||||
|
src/landscape/C4MapCreatorS2.cpp \
|
||||||
|
src/landscape/C4Material.cpp \
|
||||||
|
src/landscape/C4Texture.cpp \
|
||||||
|
src/landscape/C4Scenario.cpp \
|
||||||
|
src/lib/C4Rect.cpp \
|
||||||
|
src/lib/C4SimpleLog.cpp \
|
||||||
|
src/lib/C4NameList.cpp \
|
||||||
|
src/mape/cpp-handles/group-handle.h \
|
||||||
|
src/mape/cpp-handles/group-handle.cpp \
|
||||||
|
src/mape/cpp-handles/mapgen-handle.h \
|
||||||
|
src/mape/cpp-handles/mapgen-handle.cpp \
|
||||||
|
src/mape/cpp-handles/material-handle.h \
|
||||||
|
src/mape/cpp-handles/material-handle.cpp \
|
||||||
|
src/mape/cpp-handles/random-handle.h \
|
||||||
|
src/mape/cpp-handles/random-handle.cpp \
|
||||||
|
src/mape/cpp-handles/texture-handle.h \
|
||||||
|
src/mape/cpp-handles/texture-handle.cpp \
|
||||||
|
src/mape/cpp-handles/stub-handle.cpp \
|
||||||
|
src/mape/configfile.c \
|
||||||
|
src/mape/configfile.h \
|
||||||
|
src/mape/diskview.c \
|
||||||
|
src/mape/diskview.h \
|
||||||
|
src/mape/editview.c \
|
||||||
|
src/mape/editview.h \
|
||||||
|
src/mape/fileicon.c \
|
||||||
|
src/mape/fileicon.h \
|
||||||
|
src/mape/forward.h \
|
||||||
|
src/mape/group.c \
|
||||||
|
src/mape/group.h \
|
||||||
|
src/mape/header.c \
|
||||||
|
src/mape/header.h \
|
||||||
|
src/mape/iconview.c \
|
||||||
|
src/mape/iconview.h \
|
||||||
|
src/mape/mape.c \
|
||||||
|
src/mape/mapgen.c \
|
||||||
|
src/mape/mapgen.h \
|
||||||
|
src/mape/material.c \
|
||||||
|
src/mape/material.h \
|
||||||
|
src/mape/mattexview.c \
|
||||||
|
src/mape/mattexview.h \
|
||||||
|
src/mape/preferences.c \
|
||||||
|
src/mape/preferences.h \
|
||||||
|
src/mape/preferencesdialog.c \
|
||||||
|
src/mape/preferencesdialog.h \
|
||||||
|
src/mape/preview.c \
|
||||||
|
src/mape/preview.h \
|
||||||
|
src/mape/random.c \
|
||||||
|
src/mape/random.h \
|
||||||
|
src/mape/statusbar.c \
|
||||||
|
src/mape/statusbar.h \
|
||||||
|
src/mape/texture.c \
|
||||||
|
src/mape/texture.h \
|
||||||
|
src/mape/window.c \
|
||||||
|
src/mape/window.h \
|
||||||
|
mape-icons.h
|
||||||
|
|
||||||
|
mape_CPPFLAGS = \
|
||||||
|
$(AM_CPPFLAGS) \
|
||||||
|
$(MAPE_CFLAGS)
|
||||||
|
|
||||||
|
mape_LDADD = \
|
||||||
|
libc4script.a \
|
||||||
|
libmisc.a \
|
||||||
|
$(LDADD) \
|
||||||
|
$(MAPE_LIBS) \
|
||||||
|
$(Z_LIBS)
|
||||||
|
|
||||||
|
mape_icons = \
|
||||||
|
$(srcdir)/src/res/ocd.ico \
|
||||||
|
$(srcdir)/src/res/ocf.ico \
|
||||||
|
$(srcdir)/src/res/ocg.ico \
|
||||||
|
$(srcdir)/src/res/ocm.ico \
|
||||||
|
$(srcdir)/src/res/ocs.ico
|
||||||
|
mape-icons.h: $(mape_icons)
|
||||||
|
gdk-pixbuf-csource --raw --static --build-list \
|
||||||
|
mape_icon_ocd "$(srcdir)/src/res/ocd.ico" \
|
||||||
|
mape_icon_ocf "$(srcdir)/src/res/ocf.ico" \
|
||||||
|
mape_icon_ocg "$(srcdir)/src/res/ocg.ico" \
|
||||||
|
mape_icon_ocm "$(srcdir)/src/res/ocm.ico" \
|
||||||
|
mape_icon_ocs "$(srcdir)/src/res/ocs.ico" \
|
||||||
|
> $@
|
||||||
|
BUILT_SOURCES += mape-icons.h
|
||||||
|
CLEANFILES += mape-icons.h
|
||||||
|
|
||||||
## documentation
|
## documentation
|
||||||
dist_doc_DATA = planet/AUTHORS planet/COPYING licenses/LGPL.txt Credits.txt
|
dist_doc_DATA = planet/AUTHORS planet/COPYING licenses/LGPL.txt Credits.txt
|
||||||
|
|
||||||
|
|
|
@ -129,7 +129,7 @@ AC_ARG_ENABLE([sound],
|
||||||
, [if test $enable_console = yes; then enable_sound=no; else enable_sound=yes; fi])
|
, [if test $enable_console = yes; then enable_sound=no; else enable_sound=yes; fi])
|
||||||
|
|
||||||
# GTK+
|
# GTK+
|
||||||
GTK2_REQUIRED="glib-2.0 >= 2.8 gtk+-2.0 >= 2.8"
|
GTK2_REQUIRED="glib-2.0 >= 2.14 gtk+-2.0 >= 2.12"
|
||||||
GTK3_REQUIRED="glib-2.0 >= 2.27.5 gtk+-3.0 >= 2.99.0"
|
GTK3_REQUIRED="glib-2.0 >= 2.27.5 gtk+-3.0 >= 2.99.0"
|
||||||
PKG_PROG_PKG_CONFIG
|
PKG_PROG_PKG_CONFIG
|
||||||
AC_MSG_CHECKING([which gtk+ version to compile against])
|
AC_MSG_CHECKING([which gtk+ version to compile against])
|
||||||
|
@ -151,11 +151,14 @@ AC_MSG_RESULT([$with_gtk])
|
||||||
AS_IF([test $with_gtk != no],[
|
AS_IF([test $with_gtk != no],[
|
||||||
case "$with_gtk" in
|
case "$with_gtk" in
|
||||||
2.0) GTK_REQUIRED="$GTK2_REQUIRED"
|
2.0) GTK_REQUIRED="$GTK2_REQUIRED"
|
||||||
|
MAPE_REQUIRED="$GTK2_REQUIRED gthread-2.0 gtksourceview-2.0"
|
||||||
;;
|
;;
|
||||||
3.0) GTK_REQUIRED="$GTK3_REQUIRED"
|
3.0) GTK_REQUIRED="$GTK3_REQUIRED"
|
||||||
|
MAPE_REQUIRED="$GTK3_REQUIRED gthread-2.0 gtksourceview-3.0"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
PKG_CHECK_MODULES(GTK, [$GTK_REQUIRED])
|
PKG_CHECK_MODULES(GTK, [$GTK_REQUIRED])
|
||||||
|
PKG_CHECK_MODULES(MAPE, [$MAPE_REQUIRED])
|
||||||
AC_DEFINE([WITH_GLIB], 1, [Glib])
|
AC_DEFINE([WITH_GLIB], 1, [Glib])
|
||||||
AC_DEFINE([WITH_DEVELOPER_MODE], 1, [Developer mode])
|
AC_DEFINE([WITH_DEVELOPER_MODE], 1, [Developer mode])
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in New Issue