summaryrefslogtreecommitdiffstats
path: root/build/common.gypi
diff options
context:
space:
mode:
Diffstat (limited to 'build/common.gypi')
-rw-r--r--build/common.gypi13
1 files changed, 13 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 2ddf44f..8279489 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -223,6 +223,19 @@
],
},
},
+ 'variants': {
+ 'coverage': {
+ 'cflags': ['-fprofile-arcs', '-ftest-coverage'],
+ 'ldflags': ['-fprofile-arcs'],
+ },
+ 'profile': {
+ 'cflags': ['-pg', '-g'],
+ 'ldflags': ['-pg'],
+ },
+ 'symbols': {
+ 'cflags': ['-g'],
+ },
+ },
},
}],
['OS=="mac"', {