| 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") {
|
|
|