Skip to content

Commit

Permalink
WIP on gyp
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbraden committed Jul 5, 2012
1 parent 5c12433 commit e1db78e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
20 changes: 16 additions & 4 deletions binding.gyp
Expand Up @@ -9,9 +9,21 @@
, "src/Point.cc"
, "src/VideoCaptureWrap.cc"
]
, "cflags" : ["-O3", "-Wall", "<!@(pkg-config --cflags opencv]"]
, "libraries" : ["<!@(pkg-config --libs opencv)"]

}]
, "conditions": [
['OS=="mac"', {
# cflags on OS X are stupid and have to be defined like this
'xcode_settings': {
'OTHER_CFLAGS': [
'<!@(pkg-config --cflags opencv)'
],
}
}, {
'cflags': [
'<!@(pkg-config --cflags opencv)'
, 'Wall'
]
}]
]
}]
}

3 changes: 2 additions & 1 deletion src/Point.h
Expand Up @@ -15,4 +15,5 @@ class Point: public node::ObjectWrap {
static void RaiseImmutable(Local<String> property, Local<Value> value, const AccessorInfo& info);
static Handle<Value> Dot(const v8::Arguments&);

};
};

0 comments on commit e1db78e

Please sign in to comment.