summaryrefslogtreecommitdiff
path: root/samples/BUILD.gn
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2017-07-11 16:42:43 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-07-13 14:41:45 +0000
commit95ea778b4411bbd46b21f93e391f3bbd3e798342 (patch)
treee7e998b59a5aae06ac2cda17065ac7a879a906ce /samples/BUILD.gn
parent17453d03c3bdd18a893ae86058a6184939aee026 (diff)
downloadpdfium-95ea778b4411bbd46b21f93e391f3bbd3e798342.tar.xz
Added Callgrind instrumentation delimiters to pdfium_test.
Change-Id: I664497b5bab640e642bde3f80aaeb62467237407 Reviewed-on: https://pdfium-review.googlesource.com/7281 Reviewed-by: dsinclair <dsinclair@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'samples/BUILD.gn')
-rw-r--r--samples/BUILD.gn5
1 files changed, 5 insertions, 0 deletions
diff --git a/samples/BUILD.gn b/samples/BUILD.gn
index 59ab4b4a11..8fbf5d552f 100644
--- a/samples/BUILD.gn
+++ b/samples/BUILD.gn
@@ -32,6 +32,11 @@ config("pdfium_samples_config") {
if (is_asan) {
defines += [ "PDF_ENABLE_ASAN" ]
}
+
+ if (enable_callgrind) {
+ defines += [ "ENABLE_CALLGRIND" ]
+ }
+
if (use_coverage && is_clang) {
cflags += [
"--coverage",