remove autogenerated comments (leftovers from am2cmake)
add "what is missing" in the main CMake file
This commit is contained in:
parent
938e4fd6ac
commit
1d0b4d401e
2 changed files with 6 additions and 666 deletions
251
CMakeLists.txt
251
CMakeLists.txt
|
@ -1,4 +1,9 @@
|
|||
# this is a preliminary version of the CMake build stuff and was originally created by am2cmake
|
||||
# most stuff should be implemented so far, mgoe should know the details (he has done all the work...)
|
||||
# what is not working so far:
|
||||
# * equivalent to make update-po4a
|
||||
# * (probably) --enable-dummy-locales
|
||||
# * some other smaller stuff
|
||||
# * nice INSTALL howto
|
||||
|
||||
# use our own version of FindBoost.cmake
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
|
||||
|
@ -79,254 +84,10 @@ endif(ENABLE_PYTHON AND PYTHON_LIBRARY)
|
|||
|
||||
# only one of the subdirs working so far...
|
||||
add_subdirectory(po)
|
||||
#add_subdirectory(m4)
|
||||
add_subdirectory(src)
|
||||
#add_subdirectory(doc)
|
||||
|
||||
# some stuff from am2cmake
|
||||
|
||||
#message(STATUS "${CMAKE_CURRENT_SOURCE_DIR}: skipped subdir $(ISUBDIRS)")
|
||||
|
||||
########### install files ###############
|
||||
|
||||
# total bogus so far...
|
||||
|
||||
#install(FILES copyright changelog players_changelog campaign_server.dsp editor.dev editor_gcc4.dev map_editor.dsp server.dev server.dsp unit_test.dev wesnothd.dev wesnoth.dev wesnothd_gcc4.dev wesnoth.dsp wesnoth.dsw wesnoth_gcc4.dev wesnoth.kdevelop DESTINATION )
|
||||
#install(FILES DESTINATION /share/@DATADIR@)
|
||||
|
||||
install(DIRECTORY data fonts images sounds DESTINATION ${DATADIR} PATTERN ".svn" EXCLUDE )
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
#ISUBDIRS = icons
|
||||
#SUBDIRS = po m4 src doc $(ISUBDIRS)
|
||||
#pkgdatadir=$(datadir)/@DATADIR@
|
||||
#
|
||||
#bin_SCRIPTS =
|
||||
#
|
||||
## Ignore junk -- object files, editor backup files, wmllint backup files.
|
||||
#findfilterflags=! \( -name .svn -prune -o -name ".\#*" -o -name "*~" -o -name "*bak" -o -name 'Makefile' -o -name '*Makefile' -o -type d \)
|
||||
#
|
||||
## List all datafiles, ignoring junk
|
||||
#finddata=(cd $(top_srcdir) && find data fonts icons images sounds $(findfilterflags) -print )
|
||||
## List all data subdirectories
|
||||
#finddatadirs=(cd $(top_srcdir) && find data fonts icons images sounds -type d \! \( -name .svn -prune \) -print )
|
||||
## List non-installable utility files
|
||||
#findnoinst=(cd $(top_srcdir) && find utils $(findfilterflags) -print )
|
||||
#findnoinst_headers=(cd $(top_srcdir) && find src -name "*.hpp" -print )
|
||||
#findsconscript=(cd $(top_srcdir) && find . -name "SConscript" -print )
|
||||
#findsconstruct=(cd $(top_srcdir) && find . -name "SConstruct" -print )
|
||||
#
|
||||
## Find files derived from the manual that should go in a distribution
|
||||
#finddocdist=(cd $(top_srcdir) && find doc/manual -name "*.html" -o -name "*.css" -o -name "*.jpg" -o -name "*.txt")
|
||||
## Same list as previous, but with doc/ stripped off the front
|
||||
#finddoc=($(finddocdist) | sed -e 's:doc/manual:manual:g' )
|
||||
## List all document directories
|
||||
#finddocdirs=(cd $(top_srcdir)/doc && find manual -type d \! \( -name .svn -prune \) -print; )
|
||||
#
|
||||
## 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
|
||||
## preferred source of modification.
|
||||
#findextrapo=(cd $(top_srcdir) && \
|
||||
# find po/wesnoth-manpages po/wesnoth-manual \
|
||||
# -name "*.pot" -o -name "*.po" -o -name "*.cfg")
|
||||
#
|
||||
#w_preparefileinstall = if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
# case $$p in \
|
||||
# $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
# *) f=$$p;; \
|
||||
# esac;
|
||||
#
|
||||
## Create Macintosh app bundle from the game
|
||||
#bundle_contents=@PACKAGE_NAME@.app/Contents
|
||||
#@PACKAGE@_bundle: src/@PACKAGE@
|
||||
# mkdir -p "$(bundle_contents)/MacOS"
|
||||
# mkdir -p "$(bundle_contents)/Resources"
|
||||
# echo "APPL????" > "$(bundle_contents)/PkgInfo"
|
||||
# $(INSTALL_PROGRAM) $< "$(bundle_contents)/MacOS/@PACKAGE_NAME@"
|
||||
#
|
||||
## Create Macintosh app bundle from the editor
|
||||
#bundle_editor_contents=@PACKAGE_NAME@ Editor.app/Contents
|
||||
#@PACKAGE@_editor_bundle: src/@PACKAGE@_editor
|
||||
# mkdir -p "$(bundle_editor_contents)/MacOS"
|
||||
# mkdir -p "$(bundle_editor_contents)/Resources"
|
||||
# echo "APPL????" > "$(bundle_editor_contents)/PkgInfo"
|
||||
# $(INSTALL_PROGRAM) $< "$(bundle_editor_contents)/MacOS/@PACKAGE_NAME@ Editor"
|
||||
#
|
||||
## Run this before release to check that POTs and data are in good shape
|
||||
#sanity-check:
|
||||
# cd utils; ./sanity_check
|
||||
# cd data/tools; make sanity-check
|
||||
#
|
||||
## *** Not yet covered by scons recipe (dummylocales)
|
||||
#install-data-local:
|
||||
# @$(NORMAL_INSTALL)
|
||||
#if INSTALLDATA
|
||||
# @echo "Replicate data directory skeleton under target shared-data directory."
|
||||
# @echo "Then copy all corresponding files."
|
||||
# test -z "$(pkgdatadir)" || $(mkdir_p) "$(DESTDIR)$(pkgdatadir)"
|
||||
# ( $(finddatadirs) ) | while read p; do \
|
||||
# $(mkdir_p) "$(DESTDIR)$(pkgdatadir)/$$p"; \
|
||||
# done; \
|
||||
# srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
# ( $(finddata) ) | while read p; do \
|
||||
# $(w_preparefileinstall) \
|
||||
# echo $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pkgdatadir)/$$f"; \
|
||||
# $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pkgdatadir)/$$f"; \
|
||||
# done
|
||||
# @echo "Replicate doc directory skeleton under target doc subdirectory"
|
||||
# @echo "Then copy all corresponding files."
|
||||
# test -z "$(docdir)" || $(mkdir_p) "$(DESTDIR)$(docdir)"
|
||||
# ( $(finddocdirs) ) | while read p; do \
|
||||
# $(mkdir_p) "$(DESTDIR)$(docdir)/$$p"; \
|
||||
# done; \
|
||||
# ( $(finddoc) ) | while read p; do \
|
||||
# cd doc && $(w_preparefileinstall) \
|
||||
# echo $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \
|
||||
# $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; cd ..; \
|
||||
# done
|
||||
#if DUMMYLOCALES
|
||||
# @echo "Create dummy locales beneath the Wesnoth data directory"
|
||||
# $(mkdir_p) "$(DESTDIR)$(pkgdatadir)/locales"
|
||||
# if test -d "$(DESTDIR)$(pkgdatadir)/locales/C" ; then rm -r "$(DESTDIR)$(pkgdatadir)/locales/C" ; fi
|
||||
# echo | localedef --force "$(DESTDIR)$(pkgdatadir)/locales/C" 2> /dev/null; \
|
||||
# for loc in `ls data/languages/*.cfg | sed -e's/data\/languages\/\(.*\)\.cfg/\1/'`; do \
|
||||
# loclnk="$(DESTDIR)$(pkgdatadir)/locales/$$loc"@wesnoth; \
|
||||
# if test -L "$$loclnk" ; then rm "$$loclnk" ; fi; \
|
||||
# ln -s C "$$loclnk"; done; \
|
||||
# true
|
||||
#endif
|
||||
#if TINYGUI
|
||||
# @echo "Shrink installed images by a factor of two."
|
||||
# (cd $(top_srcdir) && find data/core/images data/campaigns images \( $(findfilterflags) -a -name '*.png' -and -not -name 'bar-energy-tinygui.png' -print \) ) | while read p; do \
|
||||
# $(w_preparefileinstall) \
|
||||
# eval `identify $$d$$p | cut -f 3 -d ' ' | sed s/^/imagewidth=/ | sed s/x/\;imageheight=/` ;\
|
||||
# case $${imagewidth}x$$imageheight in \
|
||||
# 1024x768) dstsize=320x240 ;; \
|
||||
# 640x480) dstsize=240x180 ;; \
|
||||
# 205x205) dstsize=80x80 ;; \
|
||||
# *) if [ $$imageheight -gt $$imagewidth ]; then max=`expr $$imageheight / 2`; else max=`expr $$imagewidth / 2`; fi ;\
|
||||
# dstsize=$${max}x$${max} ;; \
|
||||
# esac ; \
|
||||
# file=`basename "$$p"`; \
|
||||
# file "$$d$$p" | egrep "(RGBA|alpha)" >/dev/null 2>&1 && {\
|
||||
# convert "$$d$$p" -filter point -resize $$dstsize "$(DESTDIR)$(pkgdatadir)/$$f";\
|
||||
# } || { \
|
||||
# convert "$$d$$p" -resize $$dstsize "$(DESTDIR)$(pkgdatadir)/$$f"; \
|
||||
# } \
|
||||
# done
|
||||
#endif
|
||||
# @echo "Local installation is complete"
|
||||
#endif
|
||||
#
|
||||
#uninstall-local:
|
||||
# @$(NORMAL_UNINSTALL)
|
||||
#if INSTALLDATA
|
||||
# @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
# ( $(finddata) ) | while read p; do \
|
||||
# case $$p in \
|
||||
# $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
# *) f=$$p;; \
|
||||
# esac; \
|
||||
# echo " rm -f '$(DESTDIR)$(pkgdatadir)/$$f'"; \
|
||||
# rm -f "$(DESTDIR)$(pkgdatadir)/$$f"; \
|
||||
# done
|
||||
# ( $(finddoc) ) | while read p; do \
|
||||
# case $$p in \
|
||||
# $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
# *) f=$$p;; \
|
||||
# esac; \
|
||||
# echo " rm -f '$(DESTDIR)$(docadir)/$$f'"; \
|
||||
# rm -f "$(DESTDIR)$(docdir)/$$f"; \
|
||||
# done
|
||||
# ( $(finddocdirs) | sed -e 's/ /\n/g' | sort -r ) | while read p; do \
|
||||
# d=$(DESTDIR)$(docdir)/$$p && \
|
||||
# if test -d $$d ; then echo "rmdir $$d"; echo `rmdir $$d` ; fi \
|
||||
# done
|
||||
#endif
|
||||
#
|
||||
#dist-hook:
|
||||
# srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
||||
# ( $(finddata); $(finddocdist); $(findnoinst); $(findnoinst_headers); $(findextrapo); $(findsconscript); $(findsconstruct) ) | (cd $(top_srcdir) && tar cf - -T -) | (cd $(distdir) && tar xf -)
|
||||
#
|
||||
#dist_noinst_DATA = copyright changelog players_changelog campaign_server.dsp editor.dev editor_gcc4.dev map_editor.dsp server.dev server.dsp unit_test.dev wesnothd.dev wesnoth.dev wesnothd_gcc4.dev wesnoth.dsp wesnoth.dsw wesnoth_gcc4.dev wesnoth.kdevelop
|
||||
#
|
||||
#uninstall-hook:
|
||||
# if test -d $(pkgdatadir) ; then rm -r $(pkgdatadir) ; fi
|
||||
# if test -d $(bindir) ; then echo `rmdir $(bindir)` ; fi
|
||||
# if test -d $(datadir) ; then echo `rmdir $(datadir)` ; fi
|
||||
# if test -d $(prefix) ; then echo `rmdir $(prefix)` ; fi
|
||||
# if test -d $(docdir) ; then echo `rmdir $(docdir)` ; fi
|
||||
#
|
||||
#clean-local:
|
||||
# rm -rf po/stamp* po/*/stamp*
|
||||
#
|
||||
#distclean-local:
|
||||
# rm -rf translations
|
||||
#
|
||||
#BINARY_STAGING=/tmp/$(PACKAGE)-$(VERSION)-staging
|
||||
#BINARY_DIST=/tmp/$(PACKAGE)-binary-$(VERSION).tar.gz
|
||||
#DATA_DIST=/tmp/$(PACKAGE)-data-$(VERSION).tar.gz
|
||||
#
|
||||
#binary-dist:
|
||||
# @rm -rf $(BINARY_STAGING) $(BINARY_DIST)
|
||||
# @make install-exec DESTDIR=$(BINARY_STAGING)
|
||||
# @cd $(BINARY_STAGING) ; tar cf - * | gzip -c >$(BINARY_DIST)
|
||||
# @rm -rf $(BINARY_STAGING)
|
||||
# @echo "Precompiled binary tarball is in $(BINARY_DIST)"
|
||||
#
|
||||
#data-dist:
|
||||
# @rm -rf $(BINARY_STAGING) $(DATA_DIST)
|
||||
# @make install-data DESTDIR=$(BINARY_STAGING)
|
||||
# @cd $(BINARY_STAGING) ; tar cf - * | gzip -c >$(DATA_DIST)
|
||||
# @rm -rf $(BINARY_STAGING)
|
||||
# @echo "Precompiled data tarball is in $(DATA_DIST)"
|
||||
#
|
||||
#ACLOCAL_AMFLAGS = -I m4
|
||||
#
|
||||
#EXTRA_DIST = config/config.rpath config/mkinstalldirs config/py-compile
|
||||
#
|
||||
#if PYTHON_INSTALL
|
||||
#pkgpython_PYTHON = data/tools/wesnoth/wmltools.py \
|
||||
# data/tools/wesnoth/libsvn.py \
|
||||
# data/tools/wesnoth/wescamp.py \
|
||||
# data/tools/wesnoth/wmldata.py \
|
||||
# data/tools/wesnoth/wmliterator.py \
|
||||
# data/tools/wesnoth/wmlparser.py \
|
||||
# data/tools/wesnoth/campaignserver_client.py \
|
||||
# data/tools/wesnoth/__init__.py
|
||||
#endif
|
||||
#
|
||||
#update-po:
|
||||
# @cd po && make $@ || exit $?
|
||||
#if MANUALUPDATE
|
||||
# @cd doc/manual && make update-po || exit $?
|
||||
#endif
|
||||
#
|
||||
#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 $?
|
||||
#
|
||||
#if MANUALUPDATE
|
||||
# @cd doc/manual && make html || exit $?
|
||||
#endif
|
||||
#endif
|
||||
#
|
||||
#if MANUALUPDATE
|
||||
#manual-en:
|
||||
# @cd doc/manual && make manual.en.html || exit $?
|
||||
#endif
|
||||
#
|
||||
## 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 \
|
||||
# -sysI /usr/include/c++/4.0 -sysI /usr/include -sysI /usr/include/SDL \
|
||||
# --prefixstrip $(top_srcdir)/src/ -I $(top_srcdir)/src $(top_srcdir)/src > $@ || \
|
||||
# ( rm $@; false )
|
||||
#%.ps: %.dot
|
||||
# dot -Tps $< > $@
|
||||
|
|
|
@ -339,424 +339,3 @@ ENDIF(ENABLE_TESTS)
|
|||
########### install files ###############
|
||||
|
||||
#install(FILES DESTINATION /share/@DATADIR@)
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
#AUTOMAKE_OPTIONS = subdir-objects
|
||||
#
|
||||
#bin_PROGRAMS =
|
||||
#bin_SCRIPTS =
|
||||
#
|
||||
#if GAME
|
||||
#bin_PROGRAMS += wesnoth
|
||||
#endif
|
||||
#
|
||||
#if SERVER
|
||||
#bin_PROGRAMS += wesnothd
|
||||
#endif
|
||||
#
|
||||
#if CAMPAIGNSERVER
|
||||
#bin_PROGRAMS += campaignd
|
||||
#endif
|
||||
#
|
||||
#if TESTS
|
||||
#bin_PROGRAMS += test
|
||||
#endif
|
||||
#
|
||||
#CLEANFILES = revision.hpp
|
||||
#
|
||||
#if TOOLS
|
||||
#bin_PROGRAMS += exploder cutter
|
||||
#bin_SCRIPTS += wmlscope wmllint wmlindent wesnoth_addon_manager
|
||||
#CLEANFILES += $(bin_SCRIPTS)
|
||||
#endif
|
||||
#
|
||||
#if EDITOR
|
||||
#bin_PROGRAMS += wesnoth_editor
|
||||
#endif
|
||||
#
|
||||
#noinst_LIBRARIES = libwesnoth-core.a libwesnoth.a
|
||||
#
|
||||
#pkgdatadir=$(datadir)/@DATADIR@
|
||||
#
|
||||
#INTERNALLIBS = -lwesnoth-core -lwesnoth
|
||||
#
|
||||
#THELIBS = -L. $(SDL_IMAGE_LIBS) $(SDL_MIXER_LIBS) $(SDL_NET_LIBS) \
|
||||
# $(SDL_TTF_LIBS) $(SDL_LIBS) $(PYTHON_LIBS) $(LIBINTL) \
|
||||
# $(BOOST_IOSTREAMS_LIBS) $(BOOST_REGEX_LIBS)
|
||||
#
|
||||
#wesnoth_source = \
|
||||
# about.cpp \
|
||||
# actions.cpp \
|
||||
# ai.cpp \
|
||||
# ai_dfool.cpp \
|
||||
# ai_attack.cpp \
|
||||
# ai_move.cpp \
|
||||
# ai_python.cpp \
|
||||
# ai_village.cpp \
|
||||
# animated_game.cpp \
|
||||
# attack_prediction.cpp \
|
||||
# callable_objects.cpp \
|
||||
# config_adapter.cpp \
|
||||
# dialogs.cpp \
|
||||
# floating_textbox.cpp \
|
||||
# formula.cpp \
|
||||
# formula_ai.cpp \
|
||||
# formula_function.cpp \
|
||||
# formula_tokenizer.cpp \
|
||||
# game_display.cpp \
|
||||
# game_events.cpp \
|
||||
# game_preferences.cpp \
|
||||
# game_preferences_display.cpp \
|
||||
# gamestatus.cpp \
|
||||
# generate_report.cpp \
|
||||
# generic_event.cpp \
|
||||
# gui/dialogs/addon_connect.cpp \
|
||||
# gui/widgets/button.cpp \
|
||||
# gui/widgets/canvas.cpp \
|
||||
# gui/widgets/control.cpp \
|
||||
# gui/widgets/event_handler.cpp \
|
||||
# gui/widgets/grid.cpp \
|
||||
# gui/widgets/label.cpp \
|
||||
# gui/widgets/panel.cpp \
|
||||
# gui/widgets/settings.cpp \
|
||||
# gui/widgets/spacer.cpp \
|
||||
# gui/widgets/text.cpp \
|
||||
# gui/widgets/text_box.cpp \
|
||||
# gui/widgets/tooltip.cpp \
|
||||
# gui/widgets/helper.cpp \
|
||||
# gui/widgets/widget.cpp \
|
||||
# gui/widgets/window.cpp \
|
||||
# gui/widgets/window_builder.cpp \
|
||||
# halo.cpp \
|
||||
# help.cpp \
|
||||
# intro.cpp \
|
||||
# leader_list.cpp \
|
||||
# menu_events.cpp \
|
||||
# mouse_events.cpp \
|
||||
# multiplayer.cpp \
|
||||
# multiplayer_ui.cpp \
|
||||
# multiplayer_wait.cpp \
|
||||
# multiplayer_connect.cpp \
|
||||
# multiplayer_create.cpp \
|
||||
# multiplayer_lobby.cpp \
|
||||
# network.cpp \
|
||||
# network_worker.cpp \
|
||||
# pathfind.cpp \
|
||||
# playcampaign.cpp \
|
||||
# play_controller.cpp \
|
||||
# playmp_controller.cpp \
|
||||
# playsingle_controller.cpp \
|
||||
# playturn.cpp \
|
||||
# publish_campaign.cpp \
|
||||
# replay.cpp \
|
||||
# replay_controller.cpp \
|
||||
# sha1.cpp \
|
||||
# settings.cpp \
|
||||
# statistics.cpp \
|
||||
# team.cpp \
|
||||
# terrain_filter.cpp \
|
||||
# titlescreen.cpp \
|
||||
# tooltips.cpp \
|
||||
# unit.cpp \
|
||||
# unit_abilities.cpp \
|
||||
# unit_animation.cpp \
|
||||
# unit_display.cpp \
|
||||
# unit_frame.cpp \
|
||||
# unit_map.cpp \
|
||||
# unit_types.cpp \
|
||||
# upload_log.cpp \
|
||||
# variable.cpp \
|
||||
# variant.cpp \
|
||||
# widgets/combo.cpp \
|
||||
# widgets/scrollpane.cpp
|
||||
#
|
||||
##############################################################################
|
||||
## Wesnoth #
|
||||
##############################################################################
|
||||
#
|
||||
#wesnoth_SOURCES = \
|
||||
# game.cpp \
|
||||
# $(wesnoth_source)
|
||||
#
|
||||
#wesnoth_LDADD = $(INTERNALLIBS) $(THELIBS)
|
||||
#wesnoth_DEPENDENCIES=libwesnoth-core.a libwesnoth.a
|
||||
#
|
||||
##############################################################################
|
||||
## Editor #
|
||||
##############################################################################
|
||||
#
|
||||
#wesnoth_editor_SOURCES = \
|
||||
# editor/editor.cpp \
|
||||
# editor/editor_layout.cpp \
|
||||
# editor/map_manip.cpp \
|
||||
# editor/editor_display.cpp \
|
||||
# editor/editor_palettes.cpp \
|
||||
# editor/editor_main.cpp \
|
||||
# editor/editor_dialogs.cpp \
|
||||
# editor/editor_undo.cpp \
|
||||
# animated_editor.cpp \
|
||||
# generic_event.cpp \
|
||||
# tooltips.cpp
|
||||
#
|
||||
#wesnoth_editor_LDADD = $(INTERNALLIBS) $(THELIBS)
|
||||
#wesnoth_editor_DEPENDENCIES=libwesnoth-core.a libwesnoth.a
|
||||
#
|
||||
##############################################################################
|
||||
## Wesnothd Server #
|
||||
##############################################################################
|
||||
#
|
||||
#wesnothd_SOURCES = \
|
||||
# server/game.cpp \
|
||||
# server/input_stream.cpp \
|
||||
# server/metrics.cpp \
|
||||
# server/player.cpp \
|
||||
# server/proxy.cpp \
|
||||
# server/server.cpp \
|
||||
# server/simple_wml.cpp \
|
||||
# network.cpp \
|
||||
# network_worker.cpp \
|
||||
# loadscreen_empty.cpp
|
||||
#
|
||||
#wesnothd_LDADD = -L. -lwesnoth-core $(BOOST_IOSTREAMS_LIBS) @SDL_NET_LIBS@ @SDL_LIBS@ $(LIBINTL)
|
||||
#wesnothd_DEPENDENCIES=libwesnoth-core.a
|
||||
#
|
||||
##############################################################################
|
||||
## Campaign Server #
|
||||
##############################################################################
|
||||
#
|
||||
#campaignd_SOURCES = \
|
||||
# campaign_server/campaign_server.cpp \
|
||||
# network.cpp \
|
||||
# network_worker.cpp \
|
||||
# publish_campaign.cpp \
|
||||
# loadscreen_empty.cpp
|
||||
#
|
||||
#campaignd_LDADD = -L. -lwesnoth-core $(BOOST_IOSTREAMS_LIBS) @SDL_NET_LIBS@ @SDL_LIBS@ $(LIBINTL)
|
||||
#campaignd_DEPENDENCIES=libwesnoth-core.a
|
||||
#
|
||||
##############################################################################
|
||||
## Castle building helpers #
|
||||
##############################################################################
|
||||
#
|
||||
#exploder_SOURCES = \
|
||||
# tools/exploder.cpp \
|
||||
# tools/exploder_utils.cpp \
|
||||
# tools/exploder_cutter.cpp \
|
||||
# tools/exploder_composer.cpp \
|
||||
# tools/dummy_video.cpp \
|
||||
# sdl_utils.cpp \
|
||||
# loadscreen_empty.cpp
|
||||
#
|
||||
#cutter_SOURCES = \
|
||||
# tools/cutter.cpp \
|
||||
# tools/exploder_utils.cpp \
|
||||
# tools/exploder_cutter.cpp \
|
||||
# tools/dummy_video.cpp \
|
||||
# sdl_utils.cpp \
|
||||
# loadscreen_empty.cpp
|
||||
#
|
||||
#exploder_LDADD = -L. -lwesnoth-core $(BOOST_IOSTREAMS_LIBS) @SDL_IMAGE_LIBS@ @SDL_LIBS@ $(LIBINTL) $(PNG_LIBS)
|
||||
#exploder_DEPENDENCIES=libwesnoth-core.a
|
||||
#cutter_LDADD = -L. -lwesnoth-core $(BOOST_IOSTREAMS_LIBS) @SDL_IMAGE_LIBS@ @SDL_LIBS@ $(LIBINTL) $(PNG_LIBS)
|
||||
#cutter_DEPENDENCIES=libwesnoth-core.a
|
||||
#
|
||||
##############################################################################
|
||||
## Unit tests #
|
||||
##############################################################################
|
||||
#
|
||||
#test_SOURCES = \
|
||||
# tests/main.cpp \
|
||||
# tests/test_util.cpp \
|
||||
# $(wesnoth_source)
|
||||
#
|
||||
#test_LDADD = $(INTERNALLIBS) $(THELIBS) $(BOOST_UNIT_TEST_FRAMEWORK_LIBS)
|
||||
#test_DEPENDENCIES=libwesnoth-core.a libwesnoth.a
|
||||
#
|
||||
##############################################################################
|
||||
## Headers #
|
||||
##############################################################################
|
||||
#
|
||||
#noinst_HEADERS = \
|
||||
# wesconfig.h \
|
||||
# animated.i \
|
||||
# filesystem_win32.ii
|
||||
#
|
||||
##############################################################################
|
||||
## Headers
|
||||
##############################################################################
|
||||
#
|
||||
##color_range.cpp should be removed, but game_config depends on it.
|
||||
##game_config has very few things that are needed elsewhere, it should be
|
||||
##removed. Requires moving path and version at least to other files.
|
||||
#
|
||||
#libwesnoth_core_a_SOURCES = \
|
||||
# color_range.cpp \
|
||||
# config.cpp \
|
||||
# filesystem.cpp \
|
||||
# game_config.cpp \
|
||||
# gettext.cpp \
|
||||
# log.cpp \
|
||||
# map.cpp \
|
||||
# thread.cpp \
|
||||
# tstring.cpp \
|
||||
# util.cpp \
|
||||
# serialization/binary_or_text.cpp \
|
||||
# serialization/binary_wml.cpp \
|
||||
# serialization/parser.cpp \
|
||||
# serialization/preprocessor.cpp \
|
||||
# serialization/string_utils.cpp \
|
||||
# serialization/tokenizer.cpp
|
||||
#
|
||||
#libwesnoth_a_SOURCES = \
|
||||
# astarnode.cpp \
|
||||
# astarsearch.cpp \
|
||||
# builder.cpp \
|
||||
# cavegen.cpp \
|
||||
# clipboard.cpp \
|
||||
# construct_dialog.cpp \
|
||||
# cursor.cpp \
|
||||
# display.cpp \
|
||||
# events.cpp \
|
||||
# filechooser.cpp \
|
||||
# font.cpp \
|
||||
# hotkeys.cpp \
|
||||
# image.cpp \
|
||||
# key.cpp \
|
||||
# language.cpp \
|
||||
# loadscreen.cpp \
|
||||
# map_create.cpp \
|
||||
# map_label.cpp \
|
||||
# mapgen.cpp \
|
||||
# mapgen_dialog.cpp \
|
||||
# marked-up_text.cpp \
|
||||
# minimap.cpp \
|
||||
# pathutils.cpp \
|
||||
# preferences.cpp \
|
||||
# preferences_display.cpp \
|
||||
# race.cpp \
|
||||
# random.cpp \
|
||||
# reports.cpp \
|
||||
# sdl_utils.cpp \
|
||||
# show_dialog.cpp \
|
||||
# sound.cpp \
|
||||
# soundsource.cpp \
|
||||
# terrain.cpp \
|
||||
# terrain_translation.cpp \
|
||||
# video.cpp \
|
||||
# theme.cpp \
|
||||
# widgets/button.cpp \
|
||||
# widgets/file_menu.cpp \
|
||||
# widgets/label.cpp \
|
||||
# widgets/menu.cpp \
|
||||
# widgets/menu_style.cpp \
|
||||
# widgets/progressbar.cpp \
|
||||
# widgets/scrollarea.cpp \
|
||||
# widgets/scrollbar.cpp \
|
||||
# widgets/slider.cpp \
|
||||
# widgets/textbox.cpp \
|
||||
# widgets/widget.cpp \
|
||||
# wml_exception.cpp
|
||||
#
|
||||
## Until game_config.cpp is removed, this will be needed to ensure that the
|
||||
## REVISION constant gets updated correctly. If and when that definition is
|
||||
## moved elsewhere, this dependency must follow it.
|
||||
#game_config.o: revision.hpp
|
||||
#
|
||||
## Should be touched each time the SVN revision number goes up
|
||||
## Inclusion of this file should be guarded by HAVE_REVISION so checkouts
|
||||
## into a Windows build environment won't break.
|
||||
#REVISION = $(shell LC_ALL=C svnversion -n $(topdir) 2>/dev/null)
|
||||
#.PRECIOUS: revision.hpp
|
||||
#revision.hpp: FORCE
|
||||
# if [ "$(REVISION)" == "" ] || [ "$(REVISION)" == "exported" ]; then echo '' >/tmp/westemp$$$$; \
|
||||
# else echo '#define REVISION "$(REVISION)"' >/tmp/westemp$$$$; fi;\
|
||||
# if cmp -s revision.hpp /tmp/westemp$$$$ 2>/dev/null; then :; else cp /tmp/westemp$$$$ revision.hpp; fi
|
||||
#
|
||||
#FORCE:
|
||||
#
|
||||
#AM_CXXFLAGS = -DHAVE_REVISION -I../intl -I$(top_srcdir)/intl @SDL_CFLAGS@ -DWESNOTH_PATH=\"$(pkgdatadir)\" \
|
||||
# -DLOCALEDIR=\"$(LOCALEDIR)\" -DHAS_RELATIVE_LOCALEDIR=$(HAS_RELATIVE_LOCALEDIR) -DFIFODIR=\"$(fifodir)\"
|
||||
#
|
||||
#AM_CFLAGS = -DHAVE_REVISION -I../intl -I$(top_srcdir)/intl @SDL_CFLAGS@ -DWESNOTH_PATH=\"$(pkgdatadir)\" \
|
||||
# -DLOCALEDIR=\"$(LOCALEDIR)\" -DHAS_RELATIVE_LOCALEDIR=$(HAS_RELATIVE_LOCALEDIR)
|
||||
#
|
||||
#if PYTHON
|
||||
#AM_CXXFLAGS += @PYTHON_CFLAGS@
|
||||
#AM_CFLAGS += @PYTHON_CFLAGS@
|
||||
#endif
|
||||
#
|
||||
#if FRIBIDI
|
||||
# AM_CXXFLAGS += -DHAVE_FRIBIDI @FRIBIDI_CFLAGS@
|
||||
# AM_CFLAGS += -DHAVE_FRIBIDI @FRIBIDI_CFLAGS@
|
||||
# THELIBS += @FRIBIDI_LIBS@
|
||||
#endif
|
||||
#
|
||||
#if X11
|
||||
# CXXFLAGS += -D_X11 @X_CFLAGS@
|
||||
# CFLAGS += -D_X11 @X_CFLAGS@
|
||||
#endif
|
||||
#if GCC
|
||||
# CXXFLAGS += -fno-omit-frame-pointer
|
||||
# CFLAGS += -fno-omit-frame-pointer
|
||||
#endif
|
||||
#if PREFSDIR
|
||||
# CXXFLAGS += -DPREFERENCES_DIR=\"$(prefsdir)\"
|
||||
#endif
|
||||
#
|
||||
#if BOOST_TEST_DYN_LINK
|
||||
# CXXFLAGS += -DBOOST_TEST_DYN_LINK
|
||||
#endif
|
||||
#
|
||||
#if BOOST_AUTO_TEST
|
||||
# CXXFLAGS += -DWESNOTH_BOOST_AUTO_TEST_MAIN
|
||||
#else
|
||||
# CXXFLAGS += -DWESNOTH_BOOST_TEST_MAIN
|
||||
#endif
|
||||
#
|
||||
#CXXLD = $(LDPREFIX) $(CXX)
|
||||
#CXXFLAGS += $(BOOST_CPPFLAGS)
|
||||
#
|
||||
#
|
||||
#if STATIC
|
||||
#LDFLAGS += -all-static
|
||||
#endif
|
||||
#
|
||||
#LDFLAGS += $(BOOST_IOSTREAMS_LDFLAGS) $(BOOST_REGEX_LDFLAGS)
|
||||
#
|
||||
##if STATIC
|
||||
##LIBS += -static -L/usr/lib -Wl,-rpath,/usr/lib -L/usr/X11R6/lib -lSDL_image \
|
||||
##-lSDL_mixer -lSDL_net -lSDL_ttf -lSDL -lpthread -ldl -laudio -lXt -lX11 -lXext \
|
||||
##-lSDL_image -lSDL_mixer -lSDL_net -lSDL_ttf -lstdc++ -lm -lSM -lICE -ljpeg \
|
||||
##-lpng -lz -lvorbisfile -lvorbis -logg -lsmpeg -lfreetype
|
||||
##endif
|
||||
#
|
||||
#if SERVER
|
||||
#install-exec-hook:
|
||||
# mkdir -p -m 0700 $(DESTDIR)$(fifodir)
|
||||
# -chown $(serveruid):$(servergid) $(DESTDIR)$(fifodir)
|
||||
#
|
||||
#uninstall-hook:
|
||||
# rm -rf $(DESTDIR)$(fifodir)
|
||||
#else
|
||||
#install-exec-hook:
|
||||
#uninstall-hook:
|
||||
#endif
|
||||
#
|
||||
##############################################################################
|
||||
## Tag support
|
||||
##############################################################################
|
||||
#
|
||||
#CLEANFILES += TAGS
|
||||
#
|
||||
#TAGS:
|
||||
# etags -l c++ $(wesnoth_SOURCES) $(wesnoth_editor_SOURCES) $(wesnothd_SOURCES) $(campaignd_SOURCES) $(exploder_SOURCES) $(cutter_SOURCES) $(libwesnoth_core_a_SOURCES) $(libwesnoth__a_SOURCES)
|
||||
#
|
||||
##############################################################################
|
||||
## Scripts
|
||||
##############################################################################
|
||||
#
|
||||
#$(bin_SCRIPTS):
|
||||
# cp ../data/tools/$@ .
|
||||
|
|
Loading…
Add table
Reference in a new issue