Skip to content

Commit

Permalink
fixed wscript
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus committed Jun 25, 2012
1 parent 835e7a3 commit 3ea92d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "git"
, "url": "https://github.com/evilmachina/node-telldus-core.git"
}
, "engines": { "node": ">= 0.4.0" }
, "engines": { "node": ">= 0.6.14" }
, "license": "MIT"
, "main": "./telldus.js"
, "scripts": { "install": "node-waf configure build" }
Expand Down
8 changes: 4 additions & 4 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ from os.path import exists

srcdir = '.'
blddir = 'build'
VERSION = '0.0.1'
VERSION = '0.0.2'

def set_options(opt):
opt.tool_options('compiler_cxx')
Expand All @@ -22,17 +22,17 @@ def configure(conf):
conf.env.append_value("FRAMEWORKPATH_TC", tc_frameworkpath)
tc_lib = tc_frameworkpath + 'Headers/'
conf.env.append_value("CPPPATH_TC", tc_lib)
else if sys.platform == 'linux2':
elif sys.platform == 'linux2':
conf.env.LIB_TC = 'telldus-core'
#conf.env.LIBPATH_TC = ['/usr/lib']
#conf.env.CCFLAGS_TC = ['-O0']
conf.env.CCDEFINES_TC = ['TC']
#conf.env.LINKFLAGS_TC = ['-g']
else:
raise ValueError("Dose not support: " % sys.platform)
raise ValueError("Dose not support: %r" % sys.platform)

def build(bld):
obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
obj.target = 'telldus'
obj.source = 'telldus.cc'
obj.uselib = "TC"
obj.uselib = "TC"

0 comments on commit 3ea92d8

Please sign in to comment.