mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Server platform works on OS X too
This commit is contained in:
parent
7a42df3626
commit
fe93bb03fe
11 changed files with 61 additions and 8 deletions
|
@ -11,9 +11,15 @@ def get_name():
|
|||
return "Server"
|
||||
|
||||
|
||||
def get_program_suffix():
|
||||
if (sys.platform == "darwin"):
|
||||
return "osx"
|
||||
return "x11"
|
||||
|
||||
|
||||
def can_build():
|
||||
|
||||
if (os.name != "posix" or sys.platform == "darwin"):
|
||||
if (os.name != "posix" or sys.platform != "darwin"):
|
||||
return False
|
||||
|
||||
return True
|
||||
|
@ -147,6 +153,10 @@ def configure(env):
|
|||
|
||||
env.Append(CPPPATH=['#platform/server'])
|
||||
env.Append(CPPFLAGS=['-DSERVER_ENABLED', '-DUNIX_ENABLED'])
|
||||
|
||||
if (platform.system() == "Darwin"):
|
||||
env.Append(LINKFLAGS=['-framework', 'Cocoa', '-framework', 'Carbon', '-lz', '-framework', 'IOKit'])
|
||||
|
||||
env.Append(LIBS=['pthread'])
|
||||
|
||||
if (platform.system() == "Linux"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue