From 742f64dff3466f2b3ebab1851ee2993b4ac3072e Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Sat, 27 Nov 2004 14:42:38 +0000 Subject: [PATCH] create rules for updating the supertux.pot file SVN-Revision: 2208 --- Jamfile | 9 +++++++++ lib/Jamfile | 5 ++++- lib/special/moving_object.h | 1 + src/Jamfile | 5 ++++- src/object/invisible_tile.cpp | 2 +- 5 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Jamfile b/Jamfile index 49f762ae5..877ee449c 100644 --- a/Jamfile +++ b/Jamfile @@ -10,3 +10,12 @@ UseAutoconf ; # add some additional files to package Package INSTALL NEWS README COPYING AUTHORS ChangeLog ; + +actions MakePot +{ + xgettext --keyword='_:1' --c++ -o $(<) $(>) +} +MakePot supertux.pot : $(TRANSLATABLE_SOURCES) ; +Depends supertux.pot : $(TRANSLATABLE_SOURCES) ; +MakeLocate supertux.pot : data/locale ; +Depends all : supertux.pot ; diff --git a/lib/Jamfile b/lib/Jamfile index cc8e99160..e38266a5c 100644 --- a/lib/Jamfile +++ b/lib/Jamfile @@ -1,6 +1,6 @@ SubDir TOP lib ; -Library supertuxlib : +sources = [ Wildcard app : *.cpp *.h ] [ Wildcard audio : *.cpp *.h ] [ Wildcard gui : *.cpp *.h ] @@ -9,6 +9,9 @@ Library supertuxlib : [ Wildcard utils : *.cpp *.h ] [ Wildcard video : *.cpp *.h ] ; +TRANSLATABLE_SOURCE += [ DoSourceGrist $(sources) ] ; + +Library supertuxlib : $(sources) : noinstall ; ExternalLibs supertuxlib : SDL SDLMIXER SDLIMAGE GL ; C++Flags supertuxlib : -DDATA_PREFIX='\"$(appdatadir)\"' -DLOCALEDIR='\"$(datadir)/locale\"' : export ; Help supertuxlib : "Build supertux library" ; diff --git a/lib/special/moving_object.h b/lib/special/moving_object.h index e1974d700..d04c3ef3c 100644 --- a/lib/special/moving_object.h +++ b/lib/special/moving_object.h @@ -63,6 +63,7 @@ namespace SuperTux protected: friend class Sector; + friend class CollisionGrid; /** The bounding box of the object (as used for collision detection, this * isn't necessarily the bounding box for graphics) diff --git a/src/Jamfile b/src/Jamfile index 004253f2e..9be8cb9af 100644 --- a/src/Jamfile +++ b/src/Jamfile @@ -1,11 +1,14 @@ SubDir TOP src ; -Application supertux : +sources = [ Wildcard *.cpp *.h ] [ Wildcard object : *.cpp *.h ] [ Wildcard badguy : *.cpp *.h ] [ Wildcard trigger : *.cpp *.h ] ; +TRANSLATABLE_SOURCES += [ DoSourceGrist $(sources) ] ; + +Application supertux : $(sources) ; LinkWith supertux : supertuxlib ; ExternalLibs supertux : SDL SDLMIXER SDLIMAGE GL ; Help supertux : "Build the supertux executable" ; diff --git a/src/object/invisible_tile.cpp b/src/object/invisible_tile.cpp index f60d0ce1c..27541a6d2 100644 --- a/src/object/invisible_tile.cpp +++ b/src/object/invisible_tile.cpp @@ -13,7 +13,7 @@ InvisibleTile::InvisibleTile(const Vector& pos) } void -InvisibleTile::draw(DrawingContext& context) +InvisibleTile::draw(DrawingContext& ) { } -- 2.11.0