Skip to content

Commit

Permalink
Haiku: Remove common/ dependency for freetype
Browse files Browse the repository at this point in the history
  • Loading branch information
er2off committed Mar 7, 2023
1 parent 2305298 commit 4da0877
Show file tree
Hide file tree
Showing 16 changed files with 21 additions and 31 deletions.
11 changes: 0 additions & 11 deletions common/freetype/config/ftconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,6 @@

#ifdef ANDROID
#include <sys/cdefs.h>
#elif defined(PLATFORM_HAIKU)
#include <BeBuild.h>
# if B_HAIKU_64_BIT
# define __WORDSIZE 64
# elif B_HAIKU_32_BIT
# define __WORDSIZE 32
# else
# error "Unknown Haiku bit size"
# endif
#elif defined(OSX) || defined(PLATFORM_BSD)
#include <stdint.h>
#else
#include <bits/wordsize.h>
#endif
Expand Down
2 changes: 1 addition & 1 deletion common/vgui_surfacelib/FontManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#endif

#include <vgui/VGUI.h>
#include "vgui_surfacelib/FontAmalgam.h"
#include "common/vgui_surfacelib/FontAmalgam.h"
#include "materialsystem/imaterialsystem.h"
#include "filesystem.h"
#include "vguifont.h"
Expand Down
2 changes: 1 addition & 1 deletion vgui2/src/vgui_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <vgui/VGUI.h>
#include "interface.h"
#include "tier3/tier3.h"
#include "xbox/xboxstubs.h"
#include "common/xbox/xboxstubs.h"

namespace vgui
{
Expand Down
4 changes: 2 additions & 2 deletions vgui2/src/vgui_key_translation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
#if defined( WIN32 ) && !defined( _X360 )
#include <wtypes.h>
#include <winuser.h>
#include "xbox/xboxstubs.h"
#include "common/xbox/xboxstubs.h"
#endif
#include "tier0/dbg.h"
#include "vgui_key_translation.h"
#if defined( _X360 )
#include "xbox/xbox_win32stubs.h"
#include "common/xbox/xbox_win32stubs.h"
#endif
#ifdef POSIX
#define VK_RETURN -1
Expand Down
1 change: 1 addition & 0 deletions vgui2/src/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def build(bld):

includes = [
'.',
'../..',
'../../public',
'../../public/tier0',
'../../public/tier1',
Expand Down
3 changes: 2 additions & 1 deletion vgui2/vgui_controls/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def build(bld):

includes = [
'.',
'../../common',
'../..',
'../../public',
'../../public/tier0',
'../../public/tier1'
Expand All @@ -109,6 +109,7 @@ def build(bld):

if bld.env.DEST_OS == 'win32':
libs += ['SHELL32']
includes += ['../../common']

bld.stlib(
source = source,
Expand Down
4 changes: 2 additions & 2 deletions vgui2/vgui_surfacelib/BitmapFont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#else
#include <malloc.h>
#endif
#include "vgui_surfacelib/BitmapFont.h"
#include "vgui_surfacelib/FontManager.h"
#include "common/vgui_surfacelib/BitmapFont.h"
#include "common/vgui_surfacelib/FontManager.h"
#include <tier0/dbg.h>
#include <vgui/ISurface.h>
#include <tier0/mem.h>
Expand Down
2 changes: 1 addition & 1 deletion vgui2/vgui_surfacelib/FontAmalgam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// $NoKeywords: $
//=============================================================================//

#include "vgui_surfacelib/FontAmalgam.h"
#include "common/vgui_surfacelib/FontAmalgam.h"
#include <tier0/dbg.h>
#include <vgui/VGUI.h>
#include <vgui/ISurface.h>
Expand Down
4 changes: 2 additions & 2 deletions vgui2/vgui_surfacelib/FontManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
//=====================================================================================//

#include <locale.h>
#include "vgui_surfacelib/BitmapFont.h"
#include "vgui_surfacelib/FontManager.h"
#include "common/vgui_surfacelib/BitmapFont.h"
#include "common/vgui_surfacelib/FontManager.h"
#include <vgui/ISurface.h>
#include <tier0/dbg.h>

Expand Down
2 changes: 1 addition & 1 deletion vgui2/vgui_surfacelib/Win32Font.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <string.h>
#include <math.h>
#include <malloc.h>
#include "vgui_surfacelib/Win32Font.h"
#include "common/vgui_surfacelib/Win32Font.h"
#include <tier0/dbg.h>
#include <vgui/ISurface.h>
#include <tier0/mem.h>
Expand Down
4 changes: 2 additions & 2 deletions vgui2/vgui_surfacelib/linuxfont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//=============================================================================//


#include "vgui_surfacelib/linuxfont.h"
#include "common/vgui_surfacelib/linuxfont.h"

#include <assert.h>
#include <stdio.h>
Expand All @@ -24,7 +24,7 @@
#include <freetype/ftbitmap.h>
#include "materialsystem/imaterialsystem.h"

#include "vgui_surfacelib/FontManager.h"
#include "common/vgui_surfacelib/FontManager.h"
#include "FontEffects.h"

// memdbgon must be the last include file in a .cpp file!!!
Expand Down
2 changes: 1 addition & 1 deletion vgui2/vgui_surfacelib/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def build(bld):
'../../public',
'../../public/tier0',
'../../public/tier1',
'../../common',
'../..',
] + bld.env.INCLUDES_FC + bld.env.INCLUDES_FT2

defines = []
Expand Down
2 changes: 1 addition & 1 deletion vguimatsurface/FontTextureCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#endif
#include "FontTextureCache.h"
#include "MatSystemSurface.h"
#include <vgui_surfacelib/BitmapFont.h>
#include "common/vgui_surfacelib/BitmapFont.h"
#include <vgui/IVGui.h>
#include <vgui_controls/Controls.h>
#include "bitmap/imageformat.h"
Expand Down
2 changes: 1 addition & 1 deletion vguimatsurface/FontTextureCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#pragma once
#endif

#include "vgui_surfacelib/FontManager.h"
#include "common/vgui_surfacelib/FontManager.h"
#include "utlrbtree.h"
#include <vgui/ISurface.h>
#include "utlmap.h"
Expand Down
5 changes: 2 additions & 3 deletions vguimatsurface/MatSystemSurface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ ILauncherMgr *g_pLauncherMgr = NULL;
#include "Input.h"
#include <vgui/IHTML.h>
#include <vgui/IVGui.h>
#include "vgui_surfacelib/FontManager.h"
#include "FontTextureCache.h"
#include "MatSystemSurface.h"
#include "inputsystem/iinputsystem.h"
Expand All @@ -56,9 +55,9 @@ ILauncherMgr *g_pLauncherMgr = NULL;
#include "../vgui2/src/VPanel.h"
#include <vgui/IInputInternal.h>
#if defined( _X360 )
#include "xbox/xbox_win32stubs.h"
#include "common/xbox/xbox_win32stubs.h"
#endif
#include "xbox/xboxstubs.h"
#include "common/xbox/xboxstubs.h"
#include "../vgui2/src/Memorybitmap.h"

#pragma warning( disable : 4706 )
Expand Down
2 changes: 1 addition & 1 deletion vguimatsurface/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ def build(bld):

includes = [
'.',
'..',
'../public',
'../public/tier0',
'../public/tier1',
'../common',
]

defines = []
Expand Down

0 comments on commit 4da0877

Please sign in to comment.