aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/binding.gyp
diff options
context:
space:
mode:
authorGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2015-09-30 16:08:15 -0700
committerGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2015-09-30 16:08:15 -0700
commitb3ca2ad3adcde09b1841b1aa3b9b5905ed26226b (patch)
tree16e8057de36dc9a3e2a13e37ad764035d1420d17 /src/node/binding.gyp
parentb4499af627e37ae8f025ee3df72db678e28109d0 (diff)
parentd7d8337df091c90fed6066a28059ae88a910ce52 (diff)
Merge pull request #3583 from murgatroid99/node_coverage
Node test coverage reporting
Diffstat (limited to 'src/node/binding.gyp')
-rw-r--r--src/node/binding.gyp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/node/binding.gyp b/src/node/binding.gyp
index a644030932..247719e981 100644
--- a/src/node/binding.gyp
+++ b/src/node/binding.gyp
@@ -1,4 +1,7 @@
{
+ "variables" : {
+ 'config': '<!(echo $CONFIG)'
+ },
"targets" : [
{
'include_dirs': [
@@ -22,6 +25,18 @@
'pkg_config_grpc': '<!(pkg-config --exists grpc >/dev/null 2>&1 && echo true || echo false)'
},
'conditions': [
+ ['config=="gcov"', {
+ 'cflags': [
+ '-ftest-coverage',
+ '-fprofile-arcs',
+ '-O0'
+ ],
+ 'ldflags': [
+ '-ftest-coverage',
+ '-fprofile-arcs'
+ ]
+ }
+ ],
['pkg_config_grpc == "true"', {
'link_settings': {
'libraries': [