Skip to content

Commit

Permalink
Remove xCGUITTFont.cpp and xCGUITTFont.h wrapper files
Browse files Browse the repository at this point in the history
They were an attempt to avoid modifying CGUITTFont.cpp/CGUITTFont.h,
an attempt which clearly failed.
  • Loading branch information
kahrl committed Oct 4, 2014
1 parent 173beee commit 278b83c
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 20 deletions.
2 changes: 1 addition & 1 deletion build/android/jni/Android.mk
Expand Up @@ -248,7 +248,7 @@ LOCAL_SRC_FILES += \

#freetype2 support
LOCAL_SRC_FILES += \
jni/src/cguittfont/xCGUITTFont.cpp
jni/src/cguittfont/CGUITTFont.cpp

# lua
LOCAL_SRC_FILES += \
Expand Down
2 changes: 2 additions & 0 deletions src/cguittfont/CGUITTFont.cpp
Expand Up @@ -29,6 +29,8 @@
*/

#include <irrlicht.h>
#include <stddef.h>
#include "irrUString.h"
#include "CGUITTFont.h"

namespace irr
Expand Down
6 changes: 1 addition & 5 deletions src/cguittfont/CMakeLists.txt
@@ -1,8 +1,4 @@
# CGUITTFont authors, y u no include headers you use?
# Do not add CGUITTFont.cpp to the line below.
# xCGUITTFont.cpp is a wrapper file that includes
# additional required headers.
add_library(cguittfont xCGUITTFont.cpp)
add_library(cguittfont CGUITTFont.cpp)

if(FREETYPE_PKGCONFIG_FOUND)
set_target_properties(cguittfont
Expand Down
5 changes: 0 additions & 5 deletions src/cguittfont/xCGUITTFont.cpp

This file was deleted.

7 changes: 0 additions & 7 deletions src/cguittfont/xCGUITTFont.h

This file was deleted.

2 changes: 1 addition & 1 deletion src/guiChatConsole.cpp
Expand Up @@ -33,7 +33,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "gettext.h"

#if USE_FREETYPE
#include "xCGUITTFont.h"
#include "CGUITTFont.h"
#endif

inline u32 clamp_u8(s32 value)
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Expand Up @@ -70,7 +70,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "log.h"
#include "mods.h"
#if USE_FREETYPE
#include "xCGUITTFont.h"
#include "CGUITTFont.h"
#endif
#include "util/string.h"
#include "subgame.h"
Expand Down

0 comments on commit 278b83c

Please sign in to comment.