mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
41 lines
1.0 KiB
Python
Executable File
41 lines
1.0 KiB
Python
Executable File
{
|
|
"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"
|
|
, "src/VideoWriter.cc"
|
|
, "src/CamShift.cc"
|
|
, "src/HighGUI.cc"
|
|
]
|
|
, 'libraries': [
|
|
'<!@(pkg-config --libs opencv)'
|
|
]
|
|
, 'cflags': [
|
|
'<!@(pkg-config --cflags --libs "opencv >= 2.3.1" )'
|
|
, '-Wall'
|
|
]
|
|
, 'cflags!' : [ '-fno-exceptions']
|
|
, 'cflags_cc!': [ '-fno-rtti', '-fno-exceptions']
|
|
, "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"
|
|
}
|
|
}]
|
|
|
|
]
|
|
}]
|
|
}
|
|
|