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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 PDFium Authors. All rights reserved. 1 # Copyright 2014 PDFium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/sanitizers/sanitizers.gni") 5 import("//build/config/sanitizers/sanitizers.gni")
6 import("../pdfium.gni") 6 import("../pdfium.gni")
7 7
8 group("samples") { 8 group("samples") {
9 testonly = true 9 testonly = true
10 deps = [ 10 deps = [
11 ":pdfium_diff", 11 ":pdfium_diff",
12 ":pdfium_test", 12 ":pdfium_test",
13 ] 13 ]
14 } 14 }
15 15
16 config("pdfium_samples_config") { 16 config("pdfium_samples_config") {
17 cflags = []
18 ldflags = []
17 defines = [ 19 defines = [
18 "PNG_PREFIX", 20 "PNG_PREFIX",
19 "PNG_USE_READ_MACROS", 21 "PNG_USE_READ_MACROS",
20 ] 22 ]
21 include_dirs = [ ".." ] 23 include_dirs = [ ".." ]
22 if (pdf_enable_v8) { 24 if (pdf_enable_v8) {
23 defines += [ "PDF_ENABLE_V8" ] 25 defines += [ "PDF_ENABLE_V8" ]
24 } 26 }
25 if (pdf_enable_xfa) { 27 if (pdf_enable_xfa) {
26 defines += [ "PDF_ENABLE_XFA" ] 28 defines += [ "PDF_ENABLE_XFA" ]
27 } 29 }
28 if (pdf_use_skia) { 30 if (pdf_use_skia) {
29 defines += [ "PDF_ENABLE_SKIA" ] 31 defines += [ "PDF_ENABLE_SKIA" ]
30 } 32 }
33 if (use_coverage && is_clang) {
34 cflags += [
35 "--coverage",
36 "-g",
37 "-O0",
38 ]
39 ldflags += [ "--coverage" ]
40 }
31 } 41 }
32 42
33 executable("pdfium_test") { 43 executable("pdfium_test") {
34 testonly = true 44 testonly = true
35 sources = [ 45 sources = [
36 "image_diff_png.cc", 46 "image_diff_png.cc",
37 "image_diff_png.h", 47 "image_diff_png.h",
38 "pdfium_test.cc", 48 "pdfium_test.cc",
39 ] 49 ]
40 deps = [ 50 deps = [
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 ] 89 ]
80 if (!pdf_enable_xfa) { 90 if (!pdf_enable_xfa) {
81 deps += [ "../third_party:fx_lpng" ] 91 deps += [ "../third_party:fx_lpng" ]
82 } 92 }
83 configs -= [ "//build/config/compiler:chromium_code" ] 93 configs -= [ "//build/config/compiler:chromium_code" ]
84 configs += [ 94 configs += [
85 ":pdfium_samples_config", 95 ":pdfium_samples_config",
86 "//build/config/compiler:no_chromium_code", 96 "//build/config/compiler:no_chromium_code",
87 ] 97 ]
88 } 98 }
OLDNEW
« 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