mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
Fix Windows build with WAF
This commit is contained in:
+14
-3
@@ -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(
|
||||
|
||||
@@ -106,6 +106,9 @@ def build(bld):
|
||||
|
||||
libs = []
|
||||
|
||||
if bld.env.DEST_OS == 'win32':
|
||||
libs += ['SHELL32']
|
||||
|
||||
bld.stlib(
|
||||
source = source,
|
||||
target = PROJECT_NAME,
|
||||
|
||||
@@ -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 = [
|
||||
'.',
|
||||
|
||||
Reference in New Issue
Block a user