mirror of
https://github.com/jhasse/poly2tri.git
synced 2025-01-05 17:33:30 +01:00
fixed compilation on Mac
This commit is contained in:
parent
6f70496b5d
commit
973280c769
6
wscript
6
wscript
@ -1,4 +1,4 @@
|
|||||||
#! /usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
# waf 1.6.10
|
# waf 1.6.10
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ if sys.platform == 'win32':
|
|||||||
sys_libs = ['glfw', 'opengl32']
|
sys_libs = ['glfw', 'opengl32']
|
||||||
elif sys.platform == 'darwin':
|
elif sys.platform == 'darwin':
|
||||||
# Apple OSX
|
# Apple OSX
|
||||||
sys_libs = ['glfw', 'OpenGL']
|
sys_libs = ['glfw']
|
||||||
else:
|
else:
|
||||||
# GNU/Linux, BSD, etc
|
# GNU/Linux, BSD, etc
|
||||||
sys_libs = ['glfw', 'GL']
|
sys_libs = ['glfw', 'GL']
|
||||||
@ -39,6 +39,8 @@ def configure(conf):
|
|||||||
conf.env.CXXFLAGS = ['-O3', '-ffast-math']
|
conf.env.CXXFLAGS = ['-O3', '-ffast-math']
|
||||||
conf.env.DEFINES_P2T = ['P2T']
|
conf.env.DEFINES_P2T = ['P2T']
|
||||||
conf.env.LIB_P2T = sys_libs
|
conf.env.LIB_P2T = sys_libs
|
||||||
|
if sys.platform == 'darwin':
|
||||||
|
conf.env.FRAMEWORK = ['OpenGL', 'Cocoa']
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
print(' building')
|
print(' building')
|
||||||
|
Loading…
Reference in New Issue
Block a user