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

Side by Side Diff: 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 | « no previous file | samples/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium 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("//testing/test.gni") 5 import("//testing/test.gni")
6 import("pdfium.gni") 6 import("pdfium.gni")
7 7
8 config("pdfium_common_config") { 8 config("pdfium_common_config") {
9 cflags = [] 9 cflags = []
10 ldflags = []
10 include_dirs = [ 11 include_dirs = [
11 ".", 12 ".",
12 "third_party/freetype/include", 13 "third_party/freetype/include",
13 "third_party/freetype/include/freetype", 14 "third_party/freetype/include/freetype",
14 ] 15 ]
15 defines = [ 16 defines = [
16 "OPJ_STATIC", 17 "OPJ_STATIC",
17 "PNG_PREFIX", 18 "PNG_PREFIX",
18 "PNG_USE_READ_MACROS", 19 "PNG_USE_READ_MACROS",
19 ] 20 ]
(...skipping 10 matching lines...) Expand all
30 defines += [ "PDF_ENABLE_V8" ] 31 defines += [ "PDF_ENABLE_V8" ]
31 } 32 }
32 33
33 if (pdf_enable_xfa) { 34 if (pdf_enable_xfa) {
34 defines += [ "PDF_ENABLE_XFA" ] 35 defines += [ "PDF_ENABLE_XFA" ]
35 } 36 }
36 37
37 if (pdf_use_win32_gdi) { 38 if (pdf_use_win32_gdi) {
38 defines += [ "PDFIUM_PRINT_TEXT_WITH_GDI" ] 39 defines += [ "PDFIUM_PRINT_TEXT_WITH_GDI" ]
39 } 40 }
41
42 if (use_coverage && is_clang) {
43 cflags += [
44 "--coverage",
45 "-g",
46 "-O0",
47 ]
48 ldflags += [ "--coverage" ]
49 }
40 } 50 }
41 51
42 config("pdfium_core_config") { 52 config("pdfium_core_config") {
43 cflags = [] 53 cflags = []
44 ldflags = []
45 configs = [ ":pdfium_common_config" ] 54 configs = [ ":pdfium_common_config" ]
46 defines = [ "V8_DEPRECATION_WARNINGS" ] 55 defines = [ "V8_DEPRECATION_WARNINGS" ]
47 if (is_linux) { 56 if (is_linux) {
48 if (current_cpu == "x64") { 57 if (current_cpu == "x64") {
49 defines += [ "_FX_CPU_=_FX_X64_" ] 58 defines += [ "_FX_CPU_=_FX_X64_" ]
50 cflags += [ "-fPIC" ] 59 cflags += [ "-fPIC" ]
51 } else if (current_cpu == "x86") { 60 } else if (current_cpu == "x86") {
52 defines += [ "_FX_CPU_=_FX_X86_" ] 61 defines += [ "_FX_CPU_=_FX_X86_" ]
53 } 62 }
54 } 63 }
55 if (is_win) { 64 if (is_win) {
56 cflags += [ "/wd4267" ] 65 cflags += [ "/wd4267" ]
57 } 66 }
58 if (use_coverage && is_clang) {
59 cflags += [
60 "--coverage",
61 "-g",
62 "-O0",
63 ]
64 ldflags += [ "--coverage" ]
65 }
66 } 67 }
67 68
68 config("xfa_warnings") { 69 config("xfa_warnings") {
69 visibility = [ ":*" ] 70 visibility = [ ":*" ]
70 if (is_posix && !is_clang) { # When GCC. 71 if (is_posix && !is_clang) { # When GCC.
71 cflags = [ "-Wno-strict-overflow" ] 72 cflags = [ "-Wno-strict-overflow" ]
72 } 73 }
73 } 74 }
74 75
75 static_library("pdfium") { 76 static_library("pdfium") {
(...skipping 1794 matching lines...) Expand 10 before | Expand all | Expand 10 after
1870 "//samples", 1871 "//samples",
1871 ] 1872 ]
1872 } 1873 }
1873 group("fuzzers") { 1874 group("fuzzers") {
1874 testonly = true 1875 testonly = true
1875 deps = [ 1876 deps = [
1876 "//testing/libfuzzer", 1877 "//testing/libfuzzer",
1877 ] 1878 ]
1878 } 1879 }
1879 } 1880 }
OLDNEW
« no previous file with comments | « no previous file | samples/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698