Browse files

WIP on gyp

  • Loading branch information...
1 parent 5c12433 commit e1db78e6d95c15aa93ffdd15a01c96258224ff10 @peterbraden committed Jul 4, 2012
Showing with 18 additions and 5 deletions.
  1. +16 −4 binding.gyp
  2. +2 −1 src/Point.h
View
20 binding.gyp
@@ -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'
+ ]
+ }]
+ ]
+ }]
}
View
3 src/Point.h
@@ -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.