Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 61 lines (50 sloc) 1.623 kb
e5470cc Nick Campbell Initial attempts at using ssl. Randomness through openssl inspired by no...
authored
1 # -*- mode: python -*-
2
9ba816c Nick Campbell version checks for 0.6.x and dev_multiplicity.
authored
3 import Options, Utils, sys, re, os
fff5a24 Nick Campbell Added functional bcrypt algo with node hooks. Script is setup to build o...
authored
4
5 srcdir = "."
6 blddir = "build"
7 VERSION = "0.0.1"
9ba816c Nick Campbell version checks for 0.6.x and dev_multiplicity.
authored
8 node_version = os.popen("node --version").read()
fff5a24 Nick Campbell Added functional bcrypt algo with node hooks. Script is setup to build o...
authored
9
10 def set_options(opt):
11 opt.tool_options("compiler_cxx")
12
13 def configure(conf):
14 conf.check_tool("compiler_cxx")
15 conf.check_tool("node_addon")
e5470cc Nick Campbell Initial attempts at using ssl. Randomness through openssl inspired by no...
authored
16 o = Options.options
17
facabc9 Nick Campbell Seeing if linking against NODE_PATH has any effect on dynamic linking.
authored
18 nodepath = 'NODE_PATH' in os.environ and os.environ['NODE_PATH'] or None
19
1d0cf48 Nick Campbell Working version with cygwin.
authored
20 libpath = ['/lib', '/usr/lib', '/usr/local/lib', '/opt/local/lib', '/usr/sfw/lib']
facabc9 Nick Campbell Seeing if linking against NODE_PATH has any effect on dynamic linking.
authored
21 if nodepath:
22 libpath.append(nodepath)
1d0cf48 Nick Campbell Working version with cygwin.
authored
23 includes = ['/usr/include', '/usr/includes', '/usr/local/includes', '/opt/local/includes', '/usr/sfw/lib'];
e5470cc Nick Campbell Initial attempts at using ssl. Randomness through openssl inspired by no...
authored
24
f67053d Nick Campbell Fixed segfaulting by malloc'ing space for the bytes, durr... Cleaned up ...
authored
25 libssl = conf.check(lib="ssl",
e5470cc Nick Campbell Initial attempts at using ssl. Randomness through openssl inspired by no...
authored
26 header_name='openssl/rand.h',
1d0cf48 Nick Campbell Working version with cygwin.
authored
27 includes=includes,
28 libpath=libpath,
facabc9 Nick Campbell Seeing if linking against NODE_PATH has any effect on dynamic linking.
authored
29 mandatory=True,
e5470cc Nick Campbell Initial attempts at using ssl. Randomness through openssl inspired by no...
authored
30 uselib_store='OPENSSL')
31
07113f0 Nick Campbell Cygwin targeting.
authored
32 if sys.platform == "cygwin":
33 libcrypto = conf.check(lib="crypto",
34 includes=includes,
35 libpath=libpath,
36 uselib_store='CRYPTO')
37 libz = conf.check(lib="z",
38 includes=includes,
39 libpath=libpath,
40 uselib_store='Z')
2bb2e43 Roman Shtylman cleanup wscript file
defunctzombie authored
41
fff5a24 Nick Campbell Added functional bcrypt algo with node hooks. Script is setup to build o...
authored
42 def build(bld):
43 bcryptnode = bld.new_task_gen("cxx", "shlib", "node_addon")
b807654 Nick Campbell 0.4.x and 0.6.x EV_MULTIPLICITY configuration.
authored
44 cxxflags = [ "-O3" ]
45 if not node_version.startswith("v0.4"):
46 cxxflags.append("-DEV_MULTIPLICITY=1")
47 bcryptnode.cxxflags = cxxflags
183f816 Nick Campbell Changes to make using the library a little easier and less typing. Also,...
authored
48 bcryptnode.target = "bcrypt_lib"
fff5a24 Nick Campbell Added functional bcrypt algo with node hooks. Script is setup to build o...
authored
49 bcryptnode.source = """
50 src/blowfish.cc
51 src/bcrypt.cc
52 src/bcrypt_node.cc
53 """
07113f0 Nick Campbell Cygwin targeting.
authored
54 uselib = "OPENSSL"
55 if sys.platform == "cygwin":
56 uselib += " CRYPTO Z"
57 bcryptnode.uselib = uselib
9a6dc3e Antonio Salazar Cardozo Support for Mac OS X by not requiring libbsd on OS X.
Shadowfiend authored
58
183f816 Nick Campbell Changes to make using the library a little easier and less typing. Also,...
authored
59 def test(t):
1dcd2bc Nick Campbell More updates for ci testing.
authored
60 Utils.exec_command('make test')
Something went wrong with that request. Please try again.