summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-03 21:32:04 +0000
committersgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-03 21:32:04 +0000
commit601b54022e6232875c8b24501e425b450f071217 (patch)
tree41ccc0fb362659addc089e58c596f6a1f02233d5
parent243ed6775d053407531a16ce1bf986f1df697f62 (diff)
downloadchromium_src-601b54022e6232875c8b24501e425b450f071217.zip
chromium_src-601b54022e6232875c8b24501e425b450f071217.tar.gz
chromium_src-601b54022e6232875c8b24501e425b450f071217.tar.bz2
Add 'variants' support on Linux for COVERAGE=, PROFILE= and SYMBOLS=.
Review URL: http://codereview.chromium.org/62006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13115 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--DEPS2
-rw-r--r--build/common.gypi13
2 files changed, 14 insertions, 1 deletions
diff --git a/DEPS b/DEPS
index 52aa303..a6d8b03 100644
--- a/DEPS
+++ b/DEPS
@@ -26,7 +26,7 @@ deps = {
# TODO(mark): Remove once this has moved into depot_tools.
"src/tools/gyp":
- "http://gyp.googlecode.com/svn/trunk@417",
+ "http://gyp.googlecode.com/svn/trunk@425",
"src/v8":
"http://v8.googlecode.com/svn/trunk@1668",
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"', {