Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 410 lines (342 sloc) 12.653 kb
a3627c06 » ry
2009-05-27 Change to build on FreeBSD
1 # /usr/bin/env python
8ddf9309 » ry
2009-09-02 Build natively on x64.
2 import re
1a126ed1 » ry
2009-04-04 use the WAF build system
3 import Options
41d89f61 » ry
2009-07-28 Add DNS API.
4 import sys, os, shutil
d979ac9c » ry
2009-10-09 Put git revision into version string
5 from Utils import cmd_output
1a126ed1 » ry
2009-04-04 use the WAF build system
6 from os.path import join, dirname, abspath
a4593e3e » ry
2009-04-23 WAF: fix the debug variant.
7 from logging import fatal
8
d979ac9c » ry
2009-10-09 Put git revision into version string
9 cwd = os.getcwd()
d79b6e9f » ry
2009-10-09 bump version
10 VERSION="0.1.14"
4d92199d » ry
2009-08-27 Add pkgconfig files to help with dll builds.
11 APPNAME="node.js"
12
63a9cd38 » ry
2009-04-15 everything is changed. i've waited much too long to commit.
13 import js2c
14
1a126ed1 » ry
2009-04-04 use the WAF build system
15 srcdir = '.'
16 blddir = 'build'
17
18 def set_options(opt):
19 # the gcc module provides a --debug-level option
20 opt.tool_options('compiler_cxx')
21 opt.tool_options('compiler_cc')
4d92199d » ry
2009-08-27 Add pkgconfig files to help with dll builds.
22 opt.tool_options('misc')
29b528c9 » ry
2009-04-23 fix the waf configure --debug options. seems to work now.
23 opt.add_option( '--debug'
24 , action='store_true'
25 , default=False
26 , help='Build debug variant [Default: False]'
27 , dest='debug'
28 )
7bad9dea » ry
2009-06-16 Add electric fence option to configure process
29 opt.add_option( '--efence'
30 , action='store_true'
31 , default=False
32 , help='Build with -lefence for debugging [Default: False]'
33 , dest='efence'
34 )
1a126ed1 » ry
2009-04-04 use the WAF build system
35
41d89f61 » ry
2009-07-28 Add DNS API.
36 def mkdir_p(dir):
37 if not os.path.exists (dir):
38 os.makedirs (dir)
39
18da8ffa » ry
2009-09-28 Copy Python's shutil.copytree into wscript.
40 # Copied from Python 2.6 because 2.4.4 at least is broken by not using
41 # mkdirs
42 # http://mail.python.org/pipermail/python-bugs-list/2005-January/027118.html
43 def copytree(src, dst, symlinks=False, ignore=None):
44 names = os.listdir(src)
45 if ignore is not None:
46 ignored_names = ignore(src, names)
47 else:
48 ignored_names = set()
49
50 os.makedirs(dst)
51 errors = []
52 for name in names:
53 if name in ignored_names:
54 continue
53ebe759 » ry
2009-10-08 Improve build for V8
55 srcname = join(src, name)
56 dstname = join(dst, name)
18da8ffa » ry
2009-09-28 Copy Python's shutil.copytree into wscript.
57 try:
58 if symlinks and os.path.islink(srcname):
59 linkto = os.readlink(srcname)
60 os.symlink(linkto, dstname)
61 elif os.path.isdir(srcname):
62 copytree(srcname, dstname, symlinks, ignore)
63 else:
64 shutil.copy2(srcname, dstname)
65 # XXX What about devices, sockets etc.?
66 except (IOError, os.error), why:
67 errors.append((srcname, dstname, str(why)))
68 # catch the Error from the recursive copytree so that we can
69 # continue with other files
70 except Error, err:
71 errors.extend(err.args[0])
72 try:
73 shutil.copystat(src, dst)
74 except OSError, why:
75 if WindowsError is not None and isinstance(why, WindowsError):
76 # Copying file access times may fail on Windows
77 pass
78 else:
79 errors.extend((src, dst, str(why)))
80 if errors:
81 raise Error, errors
82
41d89f61 » ry
2009-07-28 Add DNS API.
83 def conf_subproject (conf, subdir, command=None):
84 print("---- %s ----" % subdir)
85 src = join(conf.srcdir, subdir)
86 if not os.path.exists (src): fatal("no such subproject " + subdir)
87
88 default_tgt = join(conf.blddir, "default", subdir)
89
90 if not os.path.exists(default_tgt):
18da8ffa » ry
2009-09-28 Copy Python's shutil.copytree into wscript.
91 copytree(src, default_tgt, True)
41d89f61 » ry
2009-07-28 Add DNS API.
92
93 if command:
94 if os.system("cd %s && %s" % (default_tgt, command)) != 0:
95 fatal("Configuring %s failed." % (subdir))
96
97 debug_tgt = join(conf.blddir, "debug", subdir)
98
99 if not os.path.exists(debug_tgt):
18da8ffa » ry
2009-09-28 Copy Python's shutil.copytree into wscript.
100 copytree(default_tgt, debug_tgt, True)
41d89f61 » ry
2009-07-28 Add DNS API.
101
1a126ed1 » ry
2009-04-04 use the WAF build system
102 def configure(conf):
103 conf.check_tool('compiler_cxx')
104 conf.check_tool('compiler_cc')
a4593e3e » ry
2009-04-23 WAF: fix the debug variant.
105
8e7bbf26 » ry
2009-04-23 get 'make install' working
106 conf.env["USE_DEBUG"] = Options.options.debug
1a126ed1 » ry
2009-04-04 use the WAF build system
107
2b6d7243 » ry
2009-06-20 First attempt at node.dlopen
108 conf.check(lib='dl', uselib_store='DL')
8152f9cf » ry
2009-09-01 Revert static library build.
109 conf.env.append_value("CCFLAGS", "-rdynamic")
a97dce75 » ry
2009-08-31 Build static executable.
110 conf.env.append_value("LINKFLAGS_DL", "-rdynamic")
111
8152f9cf » ry
2009-09-01 Revert static library build.
112 #if Options.options.debug:
113 # conf.check(lib='profiler', uselib_store='PROFILER')
7bad9dea » ry
2009-06-16 Add electric fence option to configure process
114
8152f9cf » ry
2009-09-01 Revert static library build.
115 #if Options.options.efence:
116 # conf.check(lib='efence', libpath=['/usr/lib', '/usr/local/lib'], uselib_store='EFENCE')
a3627c06 » ry
2009-05-27 Change to build on FreeBSD
117
8b62e861 » ry
2009-10-10 Fix tabs in changelog
118 if not conf.check(lib="execinfo", libpath=['/usr/lib', '/usr/local/lib'], uselib_store="EXECINFO"):
119 if sys.platform.startswith("freebsd"):
7bad9dea » ry
2009-06-16 Add electric fence option to configure process
120 fatal("Install the libexecinfo port from /usr/ports/devel/libexecinfo.")
a3627c06 » ry
2009-05-27 Change to build on FreeBSD
121
1a126ed1 » ry
2009-04-04 use the WAF build system
122 conf.sub_config('deps/libeio')
123 conf.sub_config('deps/libev')
124
41d89f61 » ry
2009-07-28 Add DNS API.
125 conf_subproject(conf, 'deps/udns', './configure')
126
452d3f14 » ry
2009-06-11 comment out gnutls check in wscript until it's used
127 # Not using TLS yet
128 # if conf.check_cfg(package='gnutls', args='--cflags --libs', uselib_store="GNUTLS"):
129 # conf.define("HAVE_GNUTLS", 1)
1a126ed1 » ry
2009-04-04 use the WAF build system
130
131 conf.define("HAVE_CONFIG_H", 1)
c62b1240 » ry
2009-04-22 add scons local for v8. check for librt in wscript
132
1df6d612 » ry
2009-09-03 Upgrade libeio, increase xthread stacksize to 64kb.
133 conf.env.append_value("CCFLAGS", "-DX_STACKSIZE=%d" % (1024*64))
427e3f5d » ry
2009-05-14 Introduce NODE_SET_PROTOTYPE_METHOD which properly sets the signature.
134
2b743aa5 » ry
2009-10-27 Enable large file support.
135 # LFS
136 conf.env.append_value('CCFLAGS', '-D_LARGEFILE_SOURCE')
137 conf.env.append_value('CXXFLAGS', '-D_LARGEFILE_SOURCE')
138 conf.env.append_value('CCFLAGS', '-D_FILE_OFFSET_BITS=64')
139 conf.env.append_value('CXXFLAGS', '-D_FILE_OFFSET_BITS=64')
140
67af958f » ry
2009-04-18 rename a few files to remove node_ prefix
141 # Split off debug variant before adding variant specific defines
7e1350f6 » ry
2009-04-16 add file.write()
142 debug_env = conf.env.copy()
143 conf.set_env_name('debug', debug_env)
67af958f » ry
2009-04-18 rename a few files to remove node_ prefix
144
145 # Configure debug variant
7e1350f6 » ry
2009-04-16 add file.write()
146 conf.setenv('debug')
67af958f » ry
2009-04-18 rename a few files to remove node_ prefix
147 debug_env.set_variant('debug')
8ddf9309 » ry
2009-09-02 Build natively on x64.
148 debug_env.append_value('CCFLAGS', ['-DDEBUG', '-g', '-O0', '-Wall', '-Wextra'])
149 debug_env.append_value('CXXFLAGS', ['-DDEBUG', '-g', '-O0', '-Wall', '-Wextra'])
67af958f » ry
2009-04-18 rename a few files to remove node_ prefix
150 conf.write_config_header("config.h")
7e1350f6 » ry
2009-04-16 add file.write()
151
67af958f » ry
2009-04-18 rename a few files to remove node_ prefix
152 # Configure default variant
153 conf.setenv('default')
8ddf9309 » ry
2009-09-02 Build natively on x64.
154 conf.env.append_value('CCFLAGS', ['-DNDEBUG', '-O3'])
155 conf.env.append_value('CXXFLAGS', ['-DNDEBUG', '-O3'])
67af958f » ry
2009-04-18 rename a few files to remove node_ prefix
156 conf.write_config_header("config.h")
63a9cd38 » ry
2009-04-15 everything is changed. i've waited much too long to commit.
157
41d89f61 » ry
2009-07-28 Add DNS API.
158 def build_udns(bld):
159 default_build_dir = bld.srcnode.abspath(bld.env_of_name("default"))
160
161 default_dir = join(default_build_dir, "deps/udns")
162
163 static_lib = bld.env["staticlib_PATTERN"] % "udns"
1a126ed1 » ry
2009-04-04 use the WAF build system
164
41d89f61 » ry
2009-07-28 Add DNS API.
165 rule = 'cd %s && make'
166
167 default = bld.new_task_gen(
168 target= join("deps/udns", static_lib),
169 rule= rule % default_dir,
170 before= "cxx",
171 install_path= None
172 )
173
174 bld.env["CPPPATH_UDNS"] = "deps/udns"
175 bld.env["STATICLIB_UDNS"] = "udns"
176
177 bld.env_of_name('default')["STATICLIB_UDNS"] = "udns"
178 bld.env_of_name('default')["LIBPATH_UDNS"] = default_dir
179
180 if bld.env["USE_DEBUG"]:
181 debug_build_dir = bld.srcnode.abspath(bld.env_of_name("debug"))
182 debug_dir = join(debug_build_dir, "deps/udns")
183 debug = default.clone("debug")
184 debug.rule = rule % debug_dir
185 #debug.target = join(debug_dir, static_lib)
186 bld.env_of_name('debug')["STATICLIB_UDNS"] = "udns"
187 bld.env_of_name('debug')["LIBPATH_UDNS"] = debug_dir
bf0d278a » ry
2009-10-03 Improve "make dist" remove generated doc from repo.
188 bld.install_files('${PREFIX}/include/node/', 'deps/udns/udns.h')
41d89f61 » ry
2009-07-28 Add DNS API.
189
53ebe759 » ry
2009-10-08 Improve build for V8
190 def v8_cmd(bld, variant):
191 scons = join(cwd, 'tools/scons/scons.py')
1a126ed1 » ry
2009-04-04 use the WAF build system
192 deps_src = join(bld.path.abspath(),"deps")
193 v8dir_src = join(deps_src,"v8")
53ebe759 » ry
2009-10-08 Improve build for V8
194
bc9b343f » ry
2009-10-02 Add note about symbol visibility in V8 to wscript
195 # NOTE: We want to compile V8 to export its symbols. I.E. Do not want
196 # -fvisibility=hidden. When using dlopen() it seems that the loaded DSO
197 # cannot see symbols in the executable which are hidden, even if the
198 # executable is statically linked together...
8ddf9309 » ry
2009-09-02 Build natively on x64.
199
7d9d881e » ry
2009-10-26 Correctly guess x64 architecture
200 # XXX Remove this when v8 defaults x86_64 to native builds
d85724d7 » ry
2009-10-09 Fix wscript for python 2.4
201 arch = ""
7d9d881e » ry
2009-10-26 Correctly guess x64 architecture
202 if bld.env['DEST_CPU'] == 'x86_64':
d85724d7 » ry
2009-10-09 Fix wscript for python 2.4
203 arch = "arch=x64"
204
205 if variant == "default":
206 mode = "release"
207 else:
208 mode = "debug"
a4593e3e » ry
2009-04-23 WAF: fix the debug variant.
209
53ebe759 » ry
2009-10-08 Improve build for V8
210 cmd_R = 'python %s -C %s -Y %s visibility=default mode=%s %s library=static snapshot=on'
211
212 cmd = cmd_R % ( scons
213 , bld.srcnode.abspath(bld.env_of_name(variant))
214 , v8dir_src
215 , mode
216 , arch
217 )
218 return cmd
219
220
221 def build_v8(bld):
1a126ed1 » ry
2009-04-04 use the WAF build system
222 v8 = bld.new_task_gen(
59b7a1bf » ry
2009-10-09 More updates to wscripts v8 building.
223 source = 'deps/v8/SConstruct '
224 + bld.path.ant_glob('v8/include/*')
225 + bld.path.ant_glob('v8/src/*'),
53ebe759 » ry
2009-10-08 Improve build for V8
226 target = bld.env["staticlib_PATTERN"] % "v8",
227 rule = v8_cmd(bld, "default"),
228 before = "cxx",
229 install_path = None
1a126ed1 » ry
2009-04-04 use the WAF build system
230 )
8b62e861 » ry
2009-10-10 Fix tabs in changelog
231 v8.uselib = "EXECINFO"
1a126ed1 » ry
2009-04-04 use the WAF build system
232 bld.env["CPPPATH_V8"] = "deps/v8/include"
a4593e3e » ry
2009-04-23 WAF: fix the debug variant.
233 bld.env_of_name('default')["STATICLIB_V8"] = "v8"
8ddf9309 » ry
2009-09-02 Build natively on x64.
234 bld.env_of_name('default')["LINKFLAGS_V8"] = ["-pthread"]
a4593e3e » ry
2009-04-23 WAF: fix the debug variant.
235
236 ### v8 debug
29b528c9 » ry
2009-04-23 fix the waf configure --debug options. seems to work now.
237 if bld.env["USE_DEBUG"]:
238 v8_debug = v8.clone("debug")
53ebe759 » ry
2009-10-08 Improve build for V8
239 v8_debug.rule = v8_cmd(bld, "debug")
240 v8_debug.target = bld.env["staticlib_PATTERN"] % "v8_g"
8b62e861 » ry
2009-10-10 Fix tabs in changelog
241 v8_debug.uselib = "EXECINFO"
29b528c9 » ry
2009-04-23 fix the waf configure --debug options. seems to work now.
242 bld.env_of_name('debug')["STATICLIB_V8"] = "v8_g"
8ddf9309 » ry
2009-09-02 Build natively on x64.
243 bld.env_of_name('debug')["LINKFLAGS_V8"] = ["-pthread"]
1a126ed1 » ry
2009-04-04 use the WAF build system
244
53ebe759 » ry
2009-10-08 Improve build for V8
245 bld.install_files('${PREFIX}/include/node/', 'deps/v8/include/*.h')
2b6d7243 » ry
2009-06-20 First attempt at node.dlopen
246
41d89f61 » ry
2009-07-28 Add DNS API.
247 def build(bld):
248 bld.add_subdirs('deps/libeio deps/libev')
249
250 build_udns(bld)
251 build_v8(bld)
252
0fb0af3a » ry
2009-07-25 Rename evnet to evcom.
253 ### evcom
254 evcom = bld.new_task_gen("cc", "staticlib")
255 evcom.source = "deps/evcom/evcom.c"
256 evcom.includes = "deps/evcom/ deps/libev/"
257 evcom.name = "evcom"
258 evcom.target = "evcom"
259 # evcom.uselib = "GNUTLS"
260 evcom.install_path = None
29b528c9 » ry
2009-04-23 fix the waf configure --debug options. seems to work now.
261 if bld.env["USE_DEBUG"]:
0fb0af3a » ry
2009-07-25 Rename evnet to evcom.
262 evcom.clone("debug")
bf0d278a » ry
2009-10-03 Improve "make dist" remove generated doc from repo.
263 bld.install_files('${PREFIX}/include/node/', 'deps/evcom/evcom.h')
1a126ed1 » ry
2009-04-04 use the WAF build system
264
5a071ad7 » ry
2009-05-03 Begin refactor of http.cc. Remove libebb add http_parser.
265 ### http_parser
266 http_parser = bld.new_task_gen("cc", "staticlib")
267 http_parser.source = "deps/http_parser/http_parser.c"
268 http_parser.includes = "deps/http_parser/"
269 http_parser.name = "http_parser"
270 http_parser.target = "http_parser"
271 http_parser.install_path = None
29b528c9 » ry
2009-04-23 fix the waf configure --debug options. seems to work now.
272 if bld.env["USE_DEBUG"]:
5a071ad7 » ry
2009-05-03 Begin refactor of http.cc. Remove libebb add http_parser.
273 http_parser.clone("debug")
1a126ed1 » ry
2009-04-04 use the WAF build system
274
17c6a67f » ry
2009-08-24 Introduce node.stdio
275 ### coupling
276 coupling = bld.new_task_gen("cc", "staticlib")
277 coupling.source = "deps/coupling/coupling.c"
278 coupling.includes = "deps/coupling/"
279 coupling.name = "coupling"
280 coupling.target = "coupling"
281 coupling.install_path = None
282 if bld.env["USE_DEBUG"]:
283 coupling.clone("debug")
284
63a9cd38 » ry
2009-04-15 everything is changed. i've waited much too long to commit.
285 ### src/native.cc
286 def javascript_in_c(task):
287 env = task.env
288 source = map(lambda x: x.srcpath(env), task.inputs)
289 targets = map(lambda x: x.srcpath(env), task.outputs)
290 js2c.JS2C(source, targets)
291
292 native_cc = bld.new_task_gen(
2ecd7ffe » ry
2009-06-25 in the middle putting in event code. broken.
293 source = """
eb105536 » ry
2009-07-16 Move node.inherit, node.path, node.cat to new file: util.js
294 src/util.js
2ecd7ffe » ry
2009-06-25 in the middle putting in event code. broken.
295 src/events.js
296 src/file.js
297 src/node.js
298 """,
53ebe759 » ry
2009-10-08 Improve build for V8
299 target="src/node_natives.h",
63a9cd38 » ry
2009-04-15 everything is changed. i've waited much too long to commit.
300 before="cxx"
301 )
8e7bbf26 » ry
2009-04-23 get 'make install' working
302 native_cc.install_path = None
4bcb01c8 » ry
2009-10-16 Add work-around for configure --debug with Python 2.4.3
303
304 # Add the rule /after/ cloning the debug
305 # This is a work around for an error had in python 2.4.3 (I'll paste the
306 # error that was had into the git commit meessage. git-blame to find out
307 # where.)
29b528c9 » ry
2009-04-23 fix the waf configure --debug options. seems to work now.
308 if bld.env["USE_DEBUG"]:
4bcb01c8 » ry
2009-10-16 Add work-around for configure --debug with Python 2.4.3
309 native_cc_debug = native_cc.clone("debug")
310 native_cc_debug.rule = javascript_in_c
311 native_cc.rule = javascript_in_c
63a9cd38 » ry
2009-04-15 everything is changed. i've waited much too long to commit.
312
2b6d7243 » ry
2009-06-20 First attempt at node.dlopen
313 ### node lib
8152f9cf » ry
2009-09-01 Revert static library build.
314 node = bld.new_task_gen("cxx", "program")
315 node.name = "node"
316 node.target = "node"
317 node.source = """
1a126ed1 » ry
2009-04-04 use the WAF build system
318 src/node.cc
a5df0f6a » ry
2009-10-27 Prefix all source files with node_
319 src/node_child_process.cc
320 src/node_constants.cc
321 src/node_dns.cc
322 src/node_events.cc
323 src/node_file.cc
324 src/node_http.cc
325 src/node_net.cc
326 src/node_signal_handler.cc
17c6a67f » ry
2009-08-24 Introduce node.stdio
327 src/node_stdio.cc
a5df0f6a » ry
2009-10-27 Prefix all source files with node_
328 src/node_timer.cc
1a126ed1 » ry
2009-04-04 use the WAF build system
329 """
8152f9cf » ry
2009-09-01 Revert static library build.
330 node.includes = """
1a126ed1 » ry
2009-04-04 use the WAF build system
331 src/
332 deps/v8/include
333 deps/libev
41d89f61 » ry
2009-07-28 Add DNS API.
334 deps/udns
1a126ed1 » ry
2009-04-04 use the WAF build system
335 deps/libeio
0fb0af3a » ry
2009-07-25 Rename evnet to evcom.
336 deps/evcom
5a071ad7 » ry
2009-05-03 Begin refactor of http.cc. Remove libebb add http_parser.
337 deps/http_parser
17c6a67f » ry
2009-08-24 Introduce node.stdio
338 deps/coupling
1a126ed1 » ry
2009-04-04 use the WAF build system
339 """
c7796476 » ry
2009-10-27 Link libev and libeio as a normal .o instead of as .a
340 node.add_objects = 'ev eio'
341 node.uselib_local = "evcom http_parser coupling"
8152f9cf » ry
2009-09-01 Revert static library build.
342 node.uselib = "UDNS V8 EXECINFO DL"
343 node.install_path = '${PREFIX}/lib'
8e7bbf26 » ry
2009-04-23 get 'make install' working
344 node.install_path = '${PREFIX}/bin'
345 node.chmod = 0755
346
4d92199d » ry
2009-08-27 Add pkgconfig files to help with dll builds.
347 def subflags(program):
d979ac9c » ry
2009-10-09 Put git revision into version string
348 if os.path.exists(join(cwd, ".git")):
962e9291 » ry
2009-10-09 'git-describe' to 'git describe'
349 actual_version=cmd_output("git describe").strip()
d979ac9c » ry
2009-10-09 Put git revision into version string
350 else:
351 actual_version=VERSION
352
b73264d9 » ry
2009-08-27 Add command line arguments for accessing build flags.
353 x = { 'CCFLAGS' : " ".join(program.env["CCFLAGS"])
354 , 'CPPFLAGS' : " ".join(program.env["CPPFLAGS"])
355 , 'LIBFLAGS' : " ".join(program.env["LIBFLAGS"])
d979ac9c » ry
2009-10-09 Put git revision into version string
356 , 'VERSION' : actual_version
b73264d9 » ry
2009-08-27 Add command line arguments for accessing build flags.
357 , 'PREFIX' : program.env["PREFIX"]
4d92199d » ry
2009-08-27 Add pkgconfig files to help with dll builds.
358 }
bf0d278a » ry
2009-10-03 Improve "make dist" remove generated doc from repo.
359 return x
4d92199d » ry
2009-08-27 Add pkgconfig files to help with dll builds.
360
361 # process file.pc.in -> file.pc
d979ac9c » ry
2009-10-09 Put git revision into version string
362
b73264d9 » ry
2009-08-27 Add command line arguments for accessing build flags.
363 node_version = bld.new_task_gen('subst', before="cxx")
364 node_version.source = 'src/node_version.h.in'
365 node_version.target = 'src/node_version.h'
366 node_version.dict = subflags(node)
a97dce75 » ry
2009-08-31 Build static executable.
367 node_version.install_path = '${PREFIX}/include/node'
4d92199d » ry
2009-08-27 Add pkgconfig files to help with dll builds.
368
29b528c9 » ry
2009-04-23 fix the waf configure --debug options. seems to work now.
369 if bld.env["USE_DEBUG"]:
2b6d7243 » ry
2009-06-20 First attempt at node.dlopen
370 node_g = node.clone("debug")
371 node_g.target = "node_g"
4d92199d » ry
2009-08-27 Add pkgconfig files to help with dll builds.
372
b73264d9 » ry
2009-08-27 Add command line arguments for accessing build flags.
373 node_version_g = node_version.clone("debug")
374 node_version_g.dict = subflags(node_g)
a97dce75 » ry
2009-08-31 Build static executable.
375 node_version_g.install_path = None
376
4d92199d » ry
2009-08-27 Add pkgconfig files to help with dll builds.
377
a97dce75 » ry
2009-08-31 Build static executable.
378 bld.install_files('${PREFIX}/include/node/', """
379 config.h
380 src/node.h
5f466c87 » ry
2009-10-27 fix make install (was broken from node_ prefix change)
381 src/node_object_wrap.h
382 src/node_events.h
383 src/node_net.h
bf0d278a » ry
2009-10-03 Improve "make dist" remove generated doc from repo.
384 """)
385
386 # Only install the man page if it exists.
387 # Do 'make doc install' to build and install it.
388 if os.path.exists('doc/node.1'):
389 bld.install_files('${PREFIX}/share/man/man1/', 'doc/node.1')
390
391 bld.install_files('${PREFIX}/bin/', 'bin/*', chmod=0755)
6f17ca51 » ry
2009-10-03 Install wafadmin into $PREFIX/lib/node/wafadmin
392
393 # Why am I using two lines? Because WAF SUCKS.
bf0d278a » ry
2009-10-03 Improve "make dist" remove generated doc from repo.
394 bld.install_files('${PREFIX}/lib/node/wafadmin', 'tools/wafadmin/*.py')
395 bld.install_files('${PREFIX}/lib/node/wafadmin/Tools', 'tools/wafadmin/Tools/*.py')
6f17ca51 » ry
2009-10-03 Install wafadmin into $PREFIX/lib/node/wafadmin
396
bf0d278a » ry
2009-10-03 Improve "make dist" remove generated doc from repo.
397 bld.install_files('${PREFIX}/lib/node/libraries/', 'lib/*.js')
132d6857 » ry
2009-10-27 Add symlinks in root directory to executables after build.
398
399 def shutdown():
400 Options.options.debug
401 # HACK to get binding.node out of build directory.
402 # better way to do this?
403 if not Options.commands['clean']:
404 if os.path.exists('build/default/node') and not os.path.exists('node'):
405 os.symlink('build/default/node', 'node')
406 if os.path.exists('build/debug/node_g') and not os.path.exists('node_g'):
407 os.symlink('build/debug/node_g', 'node_g')
408 else:
409 if os.path.exists('node'): os.unlink('node')
410 if os.path.exists('node_g'): os.unlink('node_g')
Something went wrong with that request. Please try again.