Skip to content

Instantly share code, notes, and snippets.

@felixge
Created July 26, 2012 22:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felixge/8e259fb98289bacee1cf to your computer and use it in GitHub Desktop.
Save felixge/8e259fb98289bacee1cf to your computer and use it in GitHub Desktop.
{
"targets": [{
"target_name": "opencv"
, "sources": [
"src/init.cc"
, "src/Matrix.cc"
, "src/OpenCV.cc"
, "src/CascadeClassifierWrap.cc"
, "src/Contours.cc"
, "src/Point.cc"
, "src/VideoCaptureWrap.cc"
]
, "conditions": [
['OS=="mac"', {
# cflags on OS X are stupid and have to be defined like this
'xcode_settings': {
'OTHER_CFLAGS': [
'<!@(pkg-config --cflags opencv)'
]
, "GCC_ENABLE_CPP_RTTI": "YES"
, "GCC_ENABLE_CPP_EXCEPTIONS": "YES"
},
'libraries': [
'<!@(pkg-config --libs opencv)'
]
}, {
'cflags': [
'<!@(pkg-config --cflags opencv)'
, '-Wall'
]
, 'cflags!' : [ '-fno-exceptions']
, 'cflags_cc!': [ '-fno-rtti', '-fno-exceptions']
}]
]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment