Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added configure checks and changed to uselib.

  • Loading branch information...
commit b1bb3142309e387e3fa79f7c737c05adbe08dbfb 1 parent 3c9847e
@puffnfresh authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 wscript
View
5 wscript
@@ -14,12 +14,15 @@ def configure(conf):
conf.check_tool("compiler_cxx")
conf.check_tool("node_addon")
conf.env["CXXDEFINES"] = ["GL_GLEXT_PROTOTYPES"]
+ conf.check_cfg(package='gl', mandatory=True, args='--cflags --libs')
+ conf.check_cfg(package='sdl', mandatory=True, args='--cflags --libs')
+ conf.check_cfg(package='IL', mandatory=True, args='--cflags --libs')
def build(bld):
webgl = bld.new_task_gen("cxx", "shlib", "node_addon")
webgl.target = "webgl"
webgl.source = "src/webgl.cc"
- webgl.lib = ["GL", "SDL", 'IL']
+ webgl.uselib = ["GL", "SDL", 'IL']
def shutdown():
# HACK to get binding.node out of build directory.
Please sign in to comment.
Something went wrong with that request. Please try again.