Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 29 lines (21 sloc) 0.615 kb
a7a311f @creationix Initial Commit
authored
1 from os import popen
605a75c @tmpvar Building on osx 10.6
tmpvar authored
2 import sys
a7a311f @creationix Initial Commit
authored
3
4 srcdir = '.'
5 blddir = 'build'
6 VERSION = '0.0.0'
7
8 def set_options(opt):
9 opt.tool_options('compiler_cxx')
10
11 def configure(conf):
12 conf.check_tool('compiler_cxx')
13 conf.check_tool('node_addon')
14
605a75c @tmpvar Building on osx 10.6
tmpvar authored
15
a7a311f @creationix Initial Commit
authored
16 def build(bld):
17 obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
18 obj.target = "node-webgl"
19 obj.cxxflags = ["-pthread", "-Wall"]
605a75c @tmpvar Building on osx 10.6
tmpvar authored
20
21 if sys.platform.startswith('darwin'):
22 obj.uselib = ["GL", "GLU", "GLUT"]
23 obj.framework = ['OpenGL','GLUT','Cocoa']
24 else:
25 obj.linkflags = ["-lGLESv2"]
26
a7a311f @creationix Initial Commit
authored
27 obj.source = ["src/webgl.cc", "src/v8_typed_array.cc"]
28 # obj.uselib = "SDL"
Something went wrong with that request. Please try again.