This repository was archived by the owner on Nov 21, 2018. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwscript
More file actions
Latest commit
31 lines (24 loc) · 886 Bytes
/
Copy pathwscript
File metadata and controls
31 lines (24 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
importOptions, Utils
fromosimportunlink, symlink, chdir, environ
fromos.pathimportexists, lexists
importsys
srcdir='.'
blddir='build'
VERSION='0.0.1'
defset_options(opt):
opt.tool_options('compiler_cxx')
defconfigure(conf):
conf.check_tool('compiler_cxx')
conf.check_tool('node_addon')
conf.check_cxx(lib="lua", errmsg="liblua needs to be installed.")
#conf.check_cxx(lib="ldl", errmsg="libdl needs to be installed.")
defbuild(bld):
obj=bld.new_task_gen('cxx', 'shlib', 'node_addon')
obj.target='node_lua'
obj.source='node_lua.cpp'
#if 'SERVER' in environ:
#obj.cxxflags = [ "../../liblua.a", "-L/app" , "-I/app/include"]
#bld.env.append_value('LINKFLAGS', [ srcpath()+'/heroku/lib/liblua.a'])
#bld.env.append_value('INCPATHS', [ srcpath()+'/heroku/include'])
#else:
bld.env.append_value('LINKFLAGS', '-lluaa -ldl'.split())