add include dirs back

This commit is contained in:
Peter Braden 2019-03-20 11:05:20 +00:00
parent 18cfce04d2
commit 27c86af042
2 changed files with 15 additions and 0 deletions

View File

@ -113,6 +113,7 @@
"include_dirs": [
"<!@(node utils/find-opencv.js --cflags)",
"<!(node -e \"require('nan')\")",
"<!(node -e \"require('./include_dirs')\")"
],
"cflags!" : [ "-fno-exceptions"],

14
include_dirs.js Normal file
View File

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