Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 36 lines (27 sloc) 0.902 kb
c6a0d2c wave.to first commit
authored
1 import Options
2 from os import unlink, symlink, popen
3 from os.path import exists
4
5 srcdir = "."
6 blddir = "build"
000a2ef wave.to Added Cipher, Decipher methods
authored
7 VERSION = "0.0.3"
c6a0d2c wave.to first commit
authored
8
9 def set_options(opt):
10 opt.tool_options("compiler_cxx")
11 opt.tool_options("compiler_cc")
12
13 def configure(conf):
14 conf.check_tool("compiler_cxx")
15 conf.check_tool("compiler_cc")
16 conf.check_tool("node_addon")
17
18 conf.check(lib='ssl', libpath=['/usr/lib', '/usr/local/lib'], uselib_store='OPENSSL')
19
20 def build(bld):
21 obj = bld.new_task_gen("cxx", "shlib", "node_addon")
22 obj.target = "crypto"
23 obj.source = "crypto.cc"
24 obj.uselib = "OPENSSL"
25
26
27
28 def shutdown():
29 # HACK to get crypto.node out of build directory.
30 # better way to do this?
31 if Options.commands['clean']:
32 if exists('crypto.node'): unlink('crypto.node')
33 else:
34 if exists('build/default/crypto.node') and not exists('crypto.node'):
35 symlink('build/default/crypto.node', 'crypto.node')
Something went wrong with that request. Please try again.