Fix Windows build with WAF

This commit is contained in:
JusicP
2022-03-19 14:40:11 +02:00
parent b296444d0c
commit edbe1baceb
31 changed files with 361 additions and 126 deletions
+14 -3
View File
@@ -28,9 +28,6 @@ def build(bld):
'MemoryBitmap.cpp',
'MessageListener.cpp',
'Scheme.cpp',
#'Surface.cpp', [$WIN32]
#'System.cpp', [$WINDOWS||$X360]
'system_posix.cpp',# [$POSIX]
'../../public/UnicodeFileHelpers.cpp',
'vgui.cpp',
'vgui_internal.cpp',
@@ -40,6 +37,17 @@ def build(bld):
'keyrepeat.cpp'
]
if bld.env.DEST_OS == 'win32':
source += [
'Surface.cpp',
'System.cpp',
'../../public/tier0/memoverride.cpp'
]
else:
source += [
'system_posix.cpp'
]
includes = [
'.',
'../../public',
@@ -52,6 +60,9 @@ def build(bld):
libs = ['tier0','tier1','tier2','tier3','vstdlib','SDL2']
if bld.env.DEST_OS == 'win32':
libs += ['USER32', 'IMM32', 'GDI32', 'SHELL32', 'OLE32', 'SHLWAPI', 'vgui_surfacelib', 'WINMM']
install_path = bld.env.LIBDIR
bld.shlib(
+3
View File
@@ -106,6 +106,9 @@ def build(bld):
libs = []
if bld.env.DEST_OS == 'win32':
libs += ['SHELL32']
bld.stlib(
source = source,
target = PROJECT_NAME,
+9 -2
View File
@@ -20,11 +20,18 @@ def build(bld):
'FontAmalgam.cpp',
'FontManager.cpp',
'FontEffects.cpp',
#'Win32Font.cpp', [$WIN32 && !$X360]
#'Win32Font_x360.cpp', [$X360]
#'osxfont.cpp', [$OSXALL]
'linuxfont.cpp' # [$LINUXALL]
]
if bld.env.DEST_OS == 'win32':
source += [
'Win32Font.cpp'
]
else:
source += [
'linuxfont.cpp'
]
includes = [
'.',