mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
Move cflags and ldflags for mac to debug config
This commit is contained in:
parent
32bb2d089b
commit
da7e707a0c
34
binding.gyp
34
binding.gyp
@ -60,20 +60,17 @@
|
||||
[ # cflags on OS X are stupid and have to be defined like this
|
||||
"OS==\"mac\"", {
|
||||
"xcode_settings": {
|
||||
"OTHER_CFLAGS": [
|
||||
"-mmacosx-version-min=10.7",
|
||||
" -fprofile-arcs -ftest-coverage ",
|
||||
"-std=c++11",
|
||||
"-stdlib=libc++",
|
||||
"<!@(node utils/find-opencv.js --cflags)",
|
||||
],
|
||||
"OTHER_LDFLAGS": [
|
||||
"--coverage"
|
||||
],
|
||||
"GCC_ENABLE_CPP_RTTI": "YES",
|
||||
"GCC_ENABLE_CPP_EXCEPTIONS": "YES"
|
||||
"OTHER_CFLAGS": [
|
||||
"-mmacosx-version-min=10.7",
|
||||
"-std=c++11",
|
||||
"-stdlib=libc++",
|
||||
"<!@(node utils/find-opencv.js --cflags)",
|
||||
],
|
||||
"GCC_ENABLE_CPP_RTTI": "YES",
|
||||
"GCC_ENABLE_CPP_EXCEPTIONS": "YES"
|
||||
}
|
||||
}
|
||||
}]
|
||||
]
|
||||
],
|
||||
|
||||
"configurations": {
|
||||
@ -83,7 +80,18 @@
|
||||
['OS=="linux"', {
|
||||
"cflags": ["-coverage"],
|
||||
"ldflags": ["-coverage"]
|
||||
}],
|
||||
['OS=="mac"', {
|
||||
"xcode_settings": {
|
||||
"OTHER_CFLAGS": [
|
||||
"-fprofile-arcs -ftest-coverage",
|
||||
],
|
||||
"OTHER_LDFLAGS": [
|
||||
"--coverage"
|
||||
]
|
||||
}
|
||||
}]
|
||||
|
||||
]
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user