Use node-bindings.

This commit is contained in:
Nathan Rajlich 2012-02-07 14:29:21 -08:00
parent bbf185cbaa
commit 51ae2cf0e4
2 changed files with 4 additions and 1 deletions

View file

@ -10,5 +10,8 @@
"scripts": {
"install": "node-waf configure build"
},
"dependencies": {
"bindings": "*"
},
"engines": { "node": "0.6" }
}

View file

@ -8,7 +8,7 @@ var Buffer = require('buffer').Buffer;
var stream = require('stream');
var fs = require('fs');
var net = require('net');
var serialport_native = require('./serialport_native');
var serialport_native = require('bindings')('serialport_native.node');
var IOWatcher = process.binding('io_watcher').IOWatcher;
var BAUDRATES = [115200, 57600, 38400, 19200, 9600, 4800, 2400, 1800, 1200, 600, 300, 200, 150, 134, 110, 75, 50];