Skip to content

Commit

Permalink
Fixed building
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Aug 9, 2010
1 parent 518fbb1 commit d8cfa97
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,4 +1,5 @@
*.zip
lib/nTPL.native/build
lib/nTPL.native/build/*
lib/nTPL.native/.lock-wscript
lib/nTPL.native/.lock-wscript
lib/nTPL.native.node
2 changes: 1 addition & 1 deletion lib/nTPL.js
Expand Up @@ -25,7 +25,7 @@ this.nTPL = nTPL = (function(compile, $tab , gid ,

var fs = require('fs');
var path = require('path');
var nTPLnative = require('./nTPL.native/build/default/nTPL.native');
var nTPLnative = require('./nTPL.native');

/** @const */
var REF_CHECK = {};
Expand Down
9 changes: 7 additions & 2 deletions lib/nTPL.native/wscript
@@ -1,5 +1,6 @@
import os
from os.path import abspath
from os.path import exists, abspath
from shutil import copy

srcdir = "."
blddir = "build"
Expand All @@ -15,4 +16,8 @@ def build(bld):
cargo = bld.new_task_gen('cxx', 'shlib', 'node_addon')
cargo.cxxflags = ["-g",]
cargo.target = 'nTPL.native'
cargo.source = 'nTPL.native.cc'
cargo.source = 'nTPL.native.cc'

def shutdown():
if exists('./build/default/nTPL.native.node') and not exists('../nTPL.native.node'):
copy('./build/default/nTPL.native.node', '../nTPL.native.node')

0 comments on commit d8cfa97

Please sign in to comment.