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:
+7
-3
@@ -23,9 +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',
|
||||
'linuxwin/cglmfbo.cpp',
|
||||
'linuxwin/cglmprogram.cpp',
|
||||
@@ -33,6 +30,10 @@ def build(bld):
|
||||
'linuxwin/cglmquery.cpp',
|
||||
'linuxwin/asanstubs.cpp'
|
||||
]
|
||||
if bld.env.DEST_OS == "darwin":
|
||||
source += [
|
||||
'linuxwin/glmgrcocoa.mm',
|
||||
]
|
||||
|
||||
includes = [
|
||||
'.',
|
||||
@@ -45,6 +46,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