Skip to content

Commit 27c86af

Browse files
committed
add include dirs back
1 parent 18cfce0 commit 27c86af

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

binding.gyp

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
"include_dirs": [
114114
"<!@(node utils/find-opencv.js --cflags)",
115115
"<!(node -e \"require('nan')\")",
116+
"<!(node -e \"require('./include_dirs')\")"
116117
],
117118

118119
"cflags!" : [ "-fno-exceptions"],

include_dirs.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Outputs the path to public node-opencv header files. This is used when
2+
// building other native node modules that require access to the
3+
// node-opencv Matrix base class.
4+
//
5+
// To use this file, add something like the following to your binding.gyp:
6+
//
7+
// "include_dirs": [
8+
// "<!@(pkg-config --cflags opencv)",
9+
// "<!(node -e \"require('nan')\")",
10+
// "<!(node -e \"require('opencv/include_dirs')\")"
11+
// ],
12+
//
13+
var path = require('path');
14+
console.log(path.relative('.', path.join(__dirname, 'inc')));

0 commit comments

Comments
 (0)