summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
Diffstat (limited to 'samples')
-rw-r--r--samples/BUILD.gn10
1 files changed, 10 insertions, 0 deletions
diff --git a/samples/BUILD.gn b/samples/BUILD.gn
index b4baf2b889..11bc9bab38 100644
--- a/samples/BUILD.gn
+++ b/samples/BUILD.gn
@@ -14,6 +14,8 @@ group("samples") {
}
config("pdfium_samples_config") {
+ cflags = []
+ ldflags = []
defines = [
"PNG_PREFIX",
"PNG_USE_READ_MACROS",
@@ -28,6 +30,14 @@ config("pdfium_samples_config") {
if (pdf_use_skia) {
defines += [ "PDF_ENABLE_SKIA" ]
}
+ if (use_coverage && is_clang) {
+ cflags += [
+ "--coverage",
+ "-g",
+ "-O0",
+ ]
+ ldflags += [ "--coverage" ]
+ }
}
executable("pdfium_test") {