Skip to content
This repository
Newer
Older
100644 27 lines (22 sloc) 0.721 kb
7bfa220b »
2010-08-09 Added nTPL.native, and optimized plain text insertion
1 import os
d8cfa97e »
2010-08-09 Fixed building
2 from os.path import exists, abspath
2ffb5dac »
2010-08-09 $rep => $r, modificator can be string, removed obsole from nTPL, inli…
3 from os import unlink
d8cfa97e »
2010-08-09 Fixed building
4 from shutil import copy
7bfa220b »
2010-08-09 Added nTPL.native, and optimized plain text insertion
5
f026bcf9 »
2010-08-13 mod.cc
6 srcdir = "."
7bfa220b »
2010-08-09 Added nTPL.native, and optimized plain text insertion
7 blddir = "build"
8
9 def set_options(opt):
10 opt.tool_options('compiler_cxx')
11
12 def configure(conf):
13 conf.check_tool('compiler_cxx')
14 conf.check_tool('node_addon')
15
f026bcf9 »
2010-08-13 mod.cc
16 def build(bld):
80b46e0c »
2010-12-28 nTPL => ntpl
17 ntpl = bld.new_task_gen('cxx', 'shlib', 'node_addon')
18 ntpl.cxxflags = ["-g",]
19 ntpl.target = 'ntpl.native'
20 ntpl.source = bld.path.ant_glob('ntpl.native/*.cc')
21 ntpl.includes = 'ntpl.native/'
d8cfa97e »
2010-08-09 Fixed building
22
23 def shutdown():
80b46e0c »
2010-12-28 nTPL => ntpl
24 if exists('./lib/ntpl/ntpl.native.node'):
25 unlink('./lib/ntpl/ntpl.native.node');
26 if exists('./build/default/ntpl.native.node'):
27 copy('./build/default/ntpl.native.node', './lib/ntpl/ntpl.native.node')
Something went wrong with that request. Please try again.