mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
move cflags out
This commit is contained in:
parent
cb7a49b4f1
commit
6a6fb0ea7e
@ -7,3 +7,4 @@ before_install:
|
|||||||
- sudo apt-get install libhighgui-dev
|
- sudo apt-get install libhighgui-dev
|
||||||
- pkg-config --libs opencv
|
- pkg-config --libs opencv
|
||||||
- pkg-config --cflags opencv
|
- pkg-config --cflags opencv
|
||||||
|
- ls /usr/include
|
||||||
|
|||||||
21
binding.gyp
21
binding.gyp
@ -13,6 +13,12 @@
|
|||||||
, 'libraries': [
|
, 'libraries': [
|
||||||
'<!@(pkg-config --libs opencv)'
|
'<!@(pkg-config --libs opencv)'
|
||||||
]
|
]
|
||||||
|
, 'cflags': [
|
||||||
|
'<!@(pkg-config --cflags opencv)'
|
||||||
|
, '-Wall'
|
||||||
|
]
|
||||||
|
, 'cflags!' : [ '-fno-exceptions']
|
||||||
|
, 'cflags_cc!': [ '-fno-rtti', '-fno-exceptions']
|
||||||
, "conditions": [
|
, "conditions": [
|
||||||
['OS=="mac"', {
|
['OS=="mac"', {
|
||||||
# cflags on OS X are stupid and have to be defined like this
|
# cflags on OS X are stupid and have to be defined like this
|
||||||
@ -22,22 +28,9 @@
|
|||||||
]
|
]
|
||||||
, "GCC_ENABLE_CPP_RTTI": "YES"
|
, "GCC_ENABLE_CPP_RTTI": "YES"
|
||||||
, "GCC_ENABLE_CPP_EXCEPTIONS": "YES"
|
, "GCC_ENABLE_CPP_EXCEPTIONS": "YES"
|
||||||
},
|
}
|
||||||
}, {
|
|
||||||
'cflags': [
|
|
||||||
'<!@(pkg-config --cflags opencv)'
|
|
||||||
, '-Wall'
|
|
||||||
]
|
|
||||||
, 'cflags!' : [ '-fno-exceptions']
|
|
||||||
, 'cflags_cc!': [ '-fno-rtti', '-fno-exceptions']
|
|
||||||
}]
|
}]
|
||||||
|
|
||||||
, ['OS=="linux"', {
|
|
||||||
'cflags': ['<!@(pkg-config --cflags opencv)']
|
|
||||||
, 'cflags!' : ['-fno-exceptions']
|
|
||||||
, 'cflags_cc!' : ['-fno-rtti', '-fno-exceptions']
|
|
||||||
|
|
||||||
}]
|
|
||||||
]
|
]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user