mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
macOS build support
This commit is contained in:
+6
-1
@@ -23,7 +23,6 @@ def build(bld):
|
||||
'linuxwin/glentrypoints.cpp',
|
||||
'linuxwin/glmgr.cpp',
|
||||
'linuxwin/glmgrbasics.cpp',
|
||||
#'linuxwin/glmgrcocoa.mm', [$OSXALL]
|
||||
#'linuxwin/intelglmallocworkaround.cpp', [$OSXALL]
|
||||
#'linuxwin/mach_override.c', [$OSXALL]
|
||||
'linuxwin/cglmtex.cpp',
|
||||
@@ -35,6 +34,9 @@ def build(bld):
|
||||
'linuxwin/decompress.c'
|
||||
]
|
||||
|
||||
if bld.env.DEST_OS == "darwin":
|
||||
source += ['linuxwin/glmgrcocoa.mm']
|
||||
|
||||
includes = [
|
||||
'.',
|
||||
'../public',
|
||||
@@ -46,6 +48,9 @@ def build(bld):
|
||||
|
||||
libs = ['tier0','tier1','tier2','vstdlib','mathlib']
|
||||
|
||||
if bld.env.DEST_OS == "darwin":
|
||||
libs += ["OPENGL", "CARBON"]
|
||||
|
||||
install_path = bld.env.LIBDIR
|
||||
|
||||
bld.shlib(
|
||||
|
||||
Reference in New Issue
Block a user