Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1200)

Unified Diff: samples/BUILD.gn

Issue 2649403003: Fixup coverage build (Closed)
Patch Set: Review feedback Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/BUILD.gn
diff --git a/samples/BUILD.gn b/samples/BUILD.gn
index b4baf2b889d6e553fe09c4b1d1054bc72621f19f..11bc9bab386a8103dffb75f0e451566a7916b1e7 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") {
« no previous file with comments | « BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698