From: Tobias Gläßer Date: Thu, 22 Jul 2004 19:07:51 +0000 (+0000) Subject: Had to change the #includes of dependend headers from "dir/header.h" to "../dir... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4b476ec30e7dd62249328054402d6493c20a685d;p=supertux.git Had to change the #includes of dependend headers from "dir/header.h" to "../dir/header.h", so those 'dependencies' work correctly, if you want to use those headers from $(includedir) so to speak in a 3rd party projects. SVN-Revision: 1618 --- diff --git a/lib/app/globals.cpp b/lib/app/globals.cpp index 56f0fbf66..de09e4b9a 100644 --- a/lib/app/globals.cpp +++ b/lib/app/globals.cpp @@ -18,7 +18,7 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. -#include "app/globals.h" +#include "../app/globals.h" namespace SuperTux { diff --git a/lib/app/globals.h b/lib/app/globals.h index 73c600b6c..24950179b 100644 --- a/lib/app/globals.h +++ b/lib/app/globals.h @@ -26,9 +26,9 @@ #include "SDL.h" -#include "video/font.h" -#include "gui/menu.h" -#include "gui/mousecursor.h" +#include "../video/font.h" +#include "../gui/menu.h" +#include "../gui/mousecursor.h" namespace SuperTux { diff --git a/lib/app/setup.cpp b/lib/app/setup.cpp index c51b0ce03..2daf4d962 100644 --- a/lib/app/setup.cpp +++ b/lib/app/setup.cpp @@ -41,15 +41,15 @@ #include -#include "app/globals.h" -#include "app/defines.h" -#include "app/setup.h" -#include "video/screen.h" -#include "video/surface.h" -#include "gui/menu.h" -#include "utils/configfile.h" -#include "audio/sound_manager.h" -#include "app/gettext.h" +#include "../app/globals.h" +#include "../app/defines.h" +#include "../app/setup.h" +#include "../video/screen.h" +#include "../video/surface.h" +#include "../gui/menu.h" +#include "../utils/configfile.h" +#include "../audio/sound_manager.h" +#include "../app/gettext.h" using namespace SuperTux; diff --git a/lib/app/setup.h b/lib/app/setup.h index 53a8b17c3..3447f05f7 100644 --- a/lib/app/setup.h +++ b/lib/app/setup.h @@ -22,9 +22,9 @@ #include #include -#include "gui/menu.h" -#include "audio/sound.h" -#include "special/base.h" +#include "../gui/menu.h" +#include "../audio/sound.h" +#include "../special/base.h" namespace SuperTux { diff --git a/lib/audio/musicref.cpp b/lib/audio/musicref.cpp index a2c131646..0ff362bc6 100644 --- a/lib/audio/musicref.cpp +++ b/lib/audio/musicref.cpp @@ -18,7 +18,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -#include "audio/musicref.h" +#include "../audio/musicref.h" using namespace SuperTux; diff --git a/lib/audio/musicref.h b/lib/audio/musicref.h index 70a4c8aac..d433787d4 100644 --- a/lib/audio/musicref.h +++ b/lib/audio/musicref.h @@ -20,7 +20,7 @@ #ifndef SUPERTUX_MUSICREF_H #define SUPERTUX_MUSICREF_H -#include "audio/sound_manager.h" +#include "../audio/sound_manager.h" namespace SuperTux { diff --git a/lib/audio/sound.cpp b/lib/audio/sound.cpp index 3ba275222..c35e1926f 100644 --- a/lib/audio/sound.cpp +++ b/lib/audio/sound.cpp @@ -19,7 +19,7 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include -#include "audio/sound.h" +#include "../audio/sound.h" /*global variable*/ bool use_sound = true; /* handle sound on/off menu and command-line option */ diff --git a/lib/audio/sound_manager.cpp b/lib/audio/sound_manager.cpp index c34f91f7d..fd4b231fd 100644 --- a/lib/audio/sound_manager.cpp +++ b/lib/audio/sound_manager.cpp @@ -20,12 +20,12 @@ #include #include -#include "audio/sound_manager.h" -#include "audio/musicref.h" -#include "audio/sound.h" -#include "app/globals.h" -#include "app/setup.h" -#include "special/moving_object.h" +#include "../audio/sound_manager.h" +#include "../audio/musicref.h" +#include "../audio/sound.h" +#include "../app/globals.h" +#include "../app/setup.h" +#include "../special/moving_object.h" using namespace SuperTux; diff --git a/lib/audio/sound_manager.h b/lib/audio/sound_manager.h index 7d10dbdd5..48a144063 100644 --- a/lib/audio/sound_manager.h +++ b/lib/audio/sound_manager.h @@ -24,7 +24,7 @@ #include #include "SDL_mixer.h" -#include "math/vector.h" +#include "../math/vector.h" namespace SuperTux { diff --git a/lib/gui/button.cpp b/lib/gui/button.cpp index 680ee4e11..8c82519e9 100644 --- a/lib/gui/button.cpp +++ b/lib/gui/button.cpp @@ -21,11 +21,11 @@ #include #include -#include "app/setup.h" -#include "video/screen.h" -#include "video/drawing_context.h" -#include "app/globals.h" -#include "gui/button.h" +#include "../app/setup.h" +#include "../video/screen.h" +#include "../video/drawing_context.h" +#include "../app/globals.h" +#include "../gui/button.h" using namespace SuperTux; diff --git a/lib/gui/button.h b/lib/gui/button.h index a5fb9e6d3..2b265b5be 100644 --- a/lib/gui/button.h +++ b/lib/gui/button.h @@ -23,8 +23,8 @@ #include -#include "video/surface.h" -#include "special/timer.h" +#include "../video/surface.h" +#include "../special/timer.h" namespace SuperTux { diff --git a/lib/gui/menu.cpp b/lib/gui/menu.cpp index 7ec10c730..30c0b9c50 100644 --- a/lib/gui/menu.cpp +++ b/lib/gui/menu.cpp @@ -29,15 +29,15 @@ #include #include -#include "app/globals.h" -#include "gui/menu.h" -#include "video/screen.h" -#include "video/drawing_context.h" -#include "app/setup.h" -#include "audio/sound.h" -#include "special/timer.h" -#include "app/gettext.h" -#include "math/vector.h" +#include "../app/globals.h" +#include "../gui/menu.h" +#include "../video/screen.h" +#include "../video/drawing_context.h" +#include "../app/setup.h" +#include "../audio/sound.h" +#include "../special/timer.h" +#include "../app/gettext.h" +#include "../math/vector.h" using namespace SuperTux; diff --git a/lib/gui/menu.h b/lib/gui/menu.h index a1e5c34ee..eae2a4721 100644 --- a/lib/gui/menu.h +++ b/lib/gui/menu.h @@ -24,11 +24,11 @@ #include "SDL.h" -#include "video/surface.h" -#include "special/timer.h" -#include "special/base.h" -#include "special/stringlist.h" -#include "gui/mousecursor.h" +#include "../video/surface.h" +#include "../special/timer.h" +#include "../special/base.h" +#include "../special/stringlist.h" +#include "../gui/mousecursor.h" namespace SuperTux { diff --git a/lib/gui/mousecursor.cpp b/lib/gui/mousecursor.cpp index 3556fb15a..e5252a45a 100644 --- a/lib/gui/mousecursor.cpp +++ b/lib/gui/mousecursor.cpp @@ -17,8 +17,8 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -#include "video/drawing_context.h" -#include "gui/mousecursor.h" +#include "../video/drawing_context.h" +#include "../gui/mousecursor.h" using namespace SuperTux; diff --git a/lib/gui/mousecursor.h b/lib/gui/mousecursor.h index 0842b62c8..c6b19f39b 100644 --- a/lib/gui/mousecursor.h +++ b/lib/gui/mousecursor.h @@ -22,8 +22,8 @@ #include -#include "special/timer.h" -#include "video/surface.h" +#include "../special/timer.h" +#include "../video/surface.h" namespace SuperTux { diff --git a/lib/math/physic.cpp b/lib/math/physic.cpp index 37d84fb1c..0873cdee0 100644 --- a/lib/math/physic.cpp +++ b/lib/math/physic.cpp @@ -20,8 +20,8 @@ #include -#include "math/physic.h" -#include "special/timer.h" +#include "../math/physic.h" +#include "../special/timer.h" using namespace SuperTux; diff --git a/lib/math/physic.h b/lib/math/physic.h index bae4dd3a0..f269cb85d 100644 --- a/lib/math/physic.h +++ b/lib/math/physic.h @@ -21,7 +21,7 @@ #ifndef SUPERTUX_PHYSIC_H #define SUPERTUX_PHYSIC_H -#include "math/vector.h" +#include "../math/vector.h" namespace SuperTux { diff --git a/lib/math/vector.cpp b/lib/math/vector.cpp index d3a3225e9..1b04518b5 100644 --- a/lib/math/vector.cpp +++ b/lib/math/vector.cpp @@ -19,7 +19,7 @@ #include -#include "math/vector.h" +#include "../math/vector.h" using namespace SuperTux; diff --git a/lib/special/game_object.cpp b/lib/special/game_object.cpp index c8f457bca..5b27dab0b 100644 --- a/lib/special/game_object.cpp +++ b/lib/special/game_object.cpp @@ -17,7 +17,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -#include "special/game_object.h" +#include "../special/game_object.h" using namespace SuperTux; diff --git a/lib/special/moving_object.cpp b/lib/special/moving_object.cpp index 7ed991dfa..b87440812 100644 --- a/lib/special/moving_object.cpp +++ b/lib/special/moving_object.cpp @@ -17,7 +17,7 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -#include "special/moving_object.h" +#include "../special/moving_object.h" using namespace SuperTux; diff --git a/lib/special/moving_object.h b/lib/special/moving_object.h index 689f92ba1..03996009c 100644 --- a/lib/special/moving_object.h +++ b/lib/special/moving_object.h @@ -20,9 +20,9 @@ #ifndef SUPERTUX_MOVING_OBJECT_H #define SUPERTUX_MOVING_OBJECT_H -#include "special/base.h" -#include "special/game_object.h" -#include "math/vector.h" +#include "../special/base.h" +#include "../special/game_object.h" +#include "../math/vector.h" //#include "rectangle.h" namespace SuperTux diff --git a/lib/special/sprite.cpp b/lib/special/sprite.cpp index fb4d10cc0..75e6e5459 100644 --- a/lib/special/sprite.cpp +++ b/lib/special/sprite.cpp @@ -20,10 +20,10 @@ #include #include -#include "app/globals.h" -#include "app/setup.h" -#include "special/sprite.h" -#include "video/drawing_context.h" +#include "../app/globals.h" +#include "../app/setup.h" +#include "../special/sprite.h" +#include "../video/drawing_context.h" using namespace SuperTux; diff --git a/lib/special/sprite.h b/lib/special/sprite.h index 394e44b81..8de7d5cd4 100644 --- a/lib/special/sprite.h +++ b/lib/special/sprite.h @@ -23,9 +23,9 @@ #include #include -#include "utils/lispreader.h" -#include "video/surface.h" -#include "math/vector.h" +#include "../utils/lispreader.h" +#include "../video/surface.h" +#include "../math/vector.h" namespace SuperTux { diff --git a/lib/special/sprite_manager.cpp b/lib/special/sprite_manager.cpp index 65bcfe72b..7c4bc1d47 100644 --- a/lib/special/sprite_manager.cpp +++ b/lib/special/sprite_manager.cpp @@ -19,8 +19,8 @@ #include -#include "utils/lispreader.h" -#include "special/sprite_manager.h" +#include "../utils/lispreader.h" +#include "../special/sprite_manager.h" using namespace SuperTux; diff --git a/lib/special/sprite_manager.h b/lib/special/sprite_manager.h index a2e4340e8..866308176 100644 --- a/lib/special/sprite_manager.h +++ b/lib/special/sprite_manager.h @@ -22,7 +22,7 @@ #include -#include "special/sprite.h" +#include "../special/sprite.h" namespace SuperTux { diff --git a/lib/special/stringlist.cpp b/lib/special/stringlist.cpp index 01ed687ae..a9f73cc3c 100644 --- a/lib/special/stringlist.cpp +++ b/lib/special/stringlist.cpp @@ -20,7 +20,7 @@ #include "string.h" #include "stdlib.h" -#include "special/stringlist.h" +#include "../special/stringlist.h" using namespace SuperTux; diff --git a/lib/special/timer.cpp b/lib/special/timer.cpp index 0791f711f..ae0763210 100644 --- a/lib/special/timer.cpp +++ b/lib/special/timer.cpp @@ -19,7 +19,7 @@ // 02111-1307, USA. #include "SDL.h" -#include "special/timer.h" +#include "../special/timer.h" using namespace SuperTux; diff --git a/lib/utils/configfile.cpp b/lib/utils/configfile.cpp index 4b50531d4..0ef0374e2 100644 --- a/lib/utils/configfile.cpp +++ b/lib/utils/configfile.cpp @@ -20,9 +20,9 @@ #include #include -#include "utils/configfile.h" -#include "app/setup.h" -#include "app/globals.h" +#include "../utils/configfile.h" +#include "../app/setup.h" +#include "../app/globals.h" using namespace SuperTux; diff --git a/lib/utils/configfile.h b/lib/utils/configfile.h index ad18daf79..897982c31 100644 --- a/lib/utils/configfile.h +++ b/lib/utils/configfile.h @@ -20,7 +20,7 @@ #ifndef SUPERTUX_CONFIGFILE_H #define SUPERTUX_CONFIGFILE_H -#include "utils/lispreader.h" +#include "../utils/lispreader.h" namespace SuperTux { diff --git a/lib/utils/lispreader.cpp b/lib/utils/lispreader.cpp index 43283fc57..d7d141d80 100644 --- a/lib/utils/lispreader.cpp +++ b/lib/utils/lispreader.cpp @@ -27,9 +27,9 @@ #include #include -#include "app/globals.h" -#include "app/setup.h" -#include "utils/lispreader.h" +#include "../app/globals.h" +#include "../app/setup.h" +#include "../utils/lispreader.h" using namespace SuperTux; diff --git a/lib/utils/lispreader.h b/lib/utils/lispreader.h index e1a2b59e0..eb7581c5f 100644 --- a/lib/utils/lispreader.h +++ b/lib/utils/lispreader.h @@ -31,7 +31,7 @@ #include -#include "utils/exceptions.h" +#include "../utils/exceptions.h" namespace SuperTux { diff --git a/lib/utils/lispwriter.cpp b/lib/utils/lispwriter.cpp index 02dd921a5..c92b7c3de 100644 --- a/lib/utils/lispwriter.cpp +++ b/lib/utils/lispwriter.cpp @@ -19,7 +19,7 @@ #include -#include "utils/lispwriter.h" +#include "../utils/lispwriter.h" using namespace SuperTux; diff --git a/lib/video/drawing_context.cpp b/lib/video/drawing_context.cpp index 6a6b75369..f6e9af10d 100644 --- a/lib/video/drawing_context.cpp +++ b/lib/video/drawing_context.cpp @@ -20,10 +20,10 @@ #include #include -#include "video/drawing_context.h" -#include "video/surface.h" -#include "app/globals.h" -#include "video/font.h" +#include "../video/drawing_context.h" +#include "../video/surface.h" +#include "../app/globals.h" +#include "../video/font.h" using namespace SuperTux; diff --git a/lib/video/drawing_context.h b/lib/video/drawing_context.h index b200e7bdf..e0b2df5fd 100644 --- a/lib/video/drawing_context.h +++ b/lib/video/drawing_context.h @@ -24,9 +24,9 @@ #include "SDL.h" -#include "math/vector.h" -#include "video/screen.h" -#include "video/surface.h" +#include "../math/vector.h" +#include "../video/screen.h" +#include "../video/surface.h" namespace SuperTux { diff --git a/lib/video/font.cpp b/lib/video/font.cpp index fe9f2880c..5b5ac85e7 100644 --- a/lib/video/font.cpp +++ b/lib/video/font.cpp @@ -21,11 +21,11 @@ #include #include -#include "app/globals.h" -#include "video/screen.h" -#include "video/font.h" -#include "video/drawing_context.h" -#include "utils/lispreader.h" +#include "../app/globals.h" +#include "../video/screen.h" +#include "../video/font.h" +#include "../video/drawing_context.h" +#include "../utils/lispreader.h" using namespace SuperTux; diff --git a/lib/video/font.h b/lib/video/font.h index f35976250..d0b328b31 100644 --- a/lib/video/font.h +++ b/lib/video/font.h @@ -23,8 +23,8 @@ #include -#include "video/surface.h" -#include "math/vector.h" +#include "../video/surface.h" +#include "../math/vector.h" namespace SuperTux { diff --git a/lib/video/screen.cpp b/lib/video/screen.cpp index 70b1d5b28..284512cee 100644 --- a/lib/video/screen.cpp +++ b/lib/video/screen.cpp @@ -33,11 +33,11 @@ #include #endif -#include "video/screen.h" -#include "app/globals.h" -#include "video/drawing_context.h" -#include "special/base.h" -#include "math/vector.h" +#include "../video/screen.h" +#include "../app/globals.h" +#include "../video/drawing_context.h" +#include "../special/base.h" +#include "../math/vector.h" using namespace SuperTux; diff --git a/lib/video/surface.cpp b/lib/video/surface.cpp index 8550573fb..714227822 100644 --- a/lib/video/surface.cpp +++ b/lib/video/surface.cpp @@ -25,9 +25,9 @@ #include "SDL.h" #include "SDL_image.h" -#include "video/surface.h" -#include "app/globals.h" -#include "app/setup.h" +#include "../video/surface.h" +#include "../app/globals.h" +#include "../app/setup.h" using namespace SuperTux; diff --git a/lib/video/surface.h b/lib/video/surface.h index ea9e69496..10fe06ed5 100644 --- a/lib/video/surface.h +++ b/lib/video/surface.h @@ -30,8 +30,8 @@ #include "SDL.h" -#include "math/vector.h" -#include "video/screen.h" +#include "../math/vector.h" +#include "../video/screen.h" namespace SuperTux {