Skip to content

Commit

Permalink
WIP on moving to gyp
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbraden committed Jul 5, 2012
1 parent 1adb840 commit 5c12433
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 38 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -18,7 +18,7 @@ Then:
Or to build the repo:


node-waf configure && node-waf build
node-gyp rebuild


## Examples
Expand Down
13 changes: 8 additions & 5 deletions binding.gyp
@@ -1,14 +1,17 @@
{
"targets": [{
"target_name": "opencv"
"target_name": "opencv"
, "sources": [
"src/CascadeClassifierWrap.cc"
, "src/init.cc"
"src/init.cc"
, "src/Matrix.cc"
, "src/OpenCV.cc"
, "src/CascadeClassifierWrap.cc"
, "src/Point.cc"
, "src/VideoCaptureWrap.cc" ]
, "src/VideoCaptureWrap.cc"
]
, "cflags" : ["-O3", "-Wall", "<!@(pkg-config --cflags opencv]"]
, "libraries" : ["<!@(pkg-config --libs opencv)"]

}]
, "libraries": ['-l/lib/opencv.lib' ]
}

2 changes: 1 addition & 1 deletion build.sh
@@ -1,6 +1,6 @@
#!/bin/bash

node-waf configure build &&
node-gyp rebuild &&
cd examples &&
#node face_detection.js
node $1
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -15,7 +15,7 @@
}
, "engine": "node >= 0.4.1"
, "scripts": {
"preinstall": "node-waf configure build"
"preinstall": "node-gyp rebuild"
, "test": "node test/unit.js"
}
, "main": "./lib/opencv"
Expand Down
2 changes: 1 addition & 1 deletion smoke.sh
@@ -1,5 +1,5 @@
#!/bin/bash
node-waf configure && node-waf -v build && echo '-- Compiled OK --
node-gyp -d rebuild && echo '-- Compiled OK --
' && node smoketest.js && echo '-- Smoke Done, running tests --
Expand Down
4 changes: 0 additions & 4 deletions src/OpenCV.h
@@ -1,10 +1,6 @@
#ifndef __NODE_OPENCV_H__
#define __NODE_OPENCV_H__

#ifdef __cplusplus
#import "opencv2/opencv.hpp"
#endif

#include <v8.h>
#include <node.h>
#include <node_object_wrap.h>
Expand Down
25 changes: 0 additions & 25 deletions wscript

This file was deleted.

0 comments on commit 5c12433

Please sign in to comment.