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

Side by Side Diff: third_party/BUILD.gn

Issue 1415573006: Merge to XFA: Add standard "Must be after no_chromium_code" comment in GN files. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 1 month 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 group("third_party") { 5 group("third_party") {
6 deps = [ 6 deps = [
7 ":bigint", 7 ":bigint",
8 ":fx_freetype", 8 ":fx_freetype",
9 ":pdfium_base", 9 ":pdfium_base",
10 ] 10 ]
(...skipping 12 matching lines...) Expand all
23 "bigint/BigUnsigned.hh", 23 "bigint/BigUnsigned.hh",
24 "bigint/NumberlikeArray.hh", 24 "bigint/NumberlikeArray.hh",
25 "bigint/BigUnsignedInABase.hh", 25 "bigint/BigUnsignedInABase.hh",
26 "bigint/BigInteger.cc", 26 "bigint/BigInteger.cc",
27 "bigint/BigIntegerUtils.cc", 27 "bigint/BigIntegerUtils.cc",
28 "bigint/BigUnsigned.cc", 28 "bigint/BigUnsigned.cc",
29 "bigint/BigUnsignedInABase.cc", 29 "bigint/BigUnsignedInABase.cc",
30 ] 30 ]
31 } 31 }
32 32
33 config("fx_freetype_warnings") {
34 visibility = [ ":*" ]
35 if (is_clang) {
36 # open_face_PS_from_sfnt_stream() and open_face_from_buffer() in
37 # ftbase.h are unused.
38 cflags = [ "-Wno-unused-function" ]
39 }
40 }
41
33 source_set("fx_freetype") { 42 source_set("fx_freetype") {
34 configs -= [ "//build/config/compiler:chromium_code" ] 43 configs -= [ "//build/config/compiler:chromium_code" ]
35 configs += [ 44 configs += [
36 "//build/config/compiler:no_chromium_code", 45 "//build/config/compiler:no_chromium_code",
37 "//third_party/pdfium:pdfium_config", 46 "//third_party/pdfium:pdfium_config",
47 # Must be after no_chromium_code for warning flags to be ordered correctly.
48 ":fx_freetype_warnings",
38 ] 49 ]
39 defines = [ "FT2_BUILD_LIBRARY" ] 50 defines = [ "FT2_BUILD_LIBRARY" ]
40 sources = [ 51 sources = [
41 "freetype/include/freetype.h", 52 "freetype/include/freetype.h",
42 "freetype/include/ft2build.h", 53 "freetype/include/ft2build.h",
43 "freetype/include/ftmm.h", 54 "freetype/include/ftmm.h",
44 "freetype/include/ftotval.h", 55 "freetype/include/ftotval.h",
45 "freetype/include/ftoutln.h", 56 "freetype/include/ftoutln.h",
46 "freetype/include/tttables.h", 57 "freetype/include/tttables.h",
47 "freetype/include/internal/ftobjs.h", 58 "freetype/include/internal/ftobjs.h",
(...skipping 14 matching lines...) Expand all
62 "freetype/src/psnames/psmodule.c", 73 "freetype/src/psnames/psmodule.c",
63 "freetype/src/raster/raster.c", 74 "freetype/src/raster/raster.c",
64 "freetype/src/sfnt/sfnt.c", 75 "freetype/src/sfnt/sfnt.c",
65 "freetype/src/smooth/smooth.c", 76 "freetype/src/smooth/smooth.c",
66 "freetype/src/truetype/truetype.c", 77 "freetype/src/truetype/truetype.c",
67 "freetype/src/type1/type1.c", 78 "freetype/src/type1/type1.c",
68 "freetype/src/cid/type1cid.c", 79 "freetype/src/cid/type1cid.c",
69 ] 80 ]
70 } 81 }
71 82
83 config("fx_agg_warnings") {
84 visibility = [ ":*" ]
85 if (is_clang) {
86 # calc_butt_cap() in agg_vcgen_stroke.cpp is unused.
87 cflags = [ "-Wno-unused-function" ]
88 }
89 }
90
72 source_set("fx_agg") { 91 source_set("fx_agg") {
73 configs -= [ "//build/config/compiler:chromium_code" ] 92 configs -= [ "//build/config/compiler:chromium_code" ]
74 configs += [ 93 configs += [
75 "//build/config/compiler:no_chromium_code", 94 "//build/config/compiler:no_chromium_code",
76 "//third_party/pdfium:pdfium_config", 95 "//third_party/pdfium:pdfium_config",
96 # Must be after no_chromium_code for warning flags to be ordered correctly.
97 ":fx_agg_warnings",
77 ] 98 ]
78 sources = [ 99 sources = [
79 "agg23/agg_basics.h", 100 "agg23/agg_basics.h",
80 "agg23/agg_clip_liang_barsky.h", 101 "agg23/agg_clip_liang_barsky.h",
81 "agg23/agg_conv_dash.h", 102 "agg23/agg_conv_dash.h",
82 "agg23/agg_conv_stroke.h", 103 "agg23/agg_conv_stroke.h",
83 "agg23/agg_curves.cpp", 104 "agg23/agg_curves.cpp",
84 "agg23/agg_curves.h", 105 "agg23/agg_curves.h",
85 "agg23/agg_path_storage.cpp", 106 "agg23/agg_path_storage.cpp",
86 "agg23/agg_path_storage.h", 107 "agg23/agg_path_storage.h",
(...skipping 13 matching lines...) Expand all
100 # library doesn't appear to have this problem. 121 # library doesn't appear to have this problem.
101 cflags = [ "-Wno-missing-braces" ] 122 cflags = [ "-Wno-missing-braces" ]
102 } 123 }
103 } 124 }
104 125
105 source_set("fx_lcms2") { 126 source_set("fx_lcms2") {
106 configs -= [ "//build/config/compiler:chromium_code" ] 127 configs -= [ "//build/config/compiler:chromium_code" ]
107 configs += [ 128 configs += [
108 "//build/config/compiler:no_chromium_code", 129 "//build/config/compiler:no_chromium_code",
109 "//third_party/pdfium:pdfium_config", 130 "//third_party/pdfium:pdfium_config",
131 # Must be after no_chromium_code for warning flags to be ordered correctly.
110 ":fx_lcms2_warnings", 132 ":fx_lcms2_warnings",
111 ] 133 ]
112 sources = [ 134 sources = [
113 "lcms2-2.6/include/lcms2.h", 135 "lcms2-2.6/include/lcms2.h",
114 "lcms2-2.6/include/lcms2_plugin.h", 136 "lcms2-2.6/include/lcms2_plugin.h",
115 "lcms2-2.6/src/cmscam02.c", 137 "lcms2-2.6/src/cmscam02.c",
116 "lcms2-2.6/src/cmscgats.c", 138 "lcms2-2.6/src/cmscgats.c",
117 "lcms2-2.6/src/cmscnvrt.c", 139 "lcms2-2.6/src/cmscnvrt.c",
118 "lcms2-2.6/src/cmserr.c", 140 "lcms2-2.6/src/cmserr.c",
119 "lcms2-2.6/src/cmsgamma.c", 141 "lcms2-2.6/src/cmsgamma.c",
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 "base/macros.h", 364 "base/macros.h",
343 "base/nonstd_unique_ptr.h", 365 "base/nonstd_unique_ptr.h",
344 "base/numerics/safe_conversions.h", 366 "base/numerics/safe_conversions.h",
345 "base/numerics/safe_conversions_impl.h", 367 "base/numerics/safe_conversions_impl.h",
346 "base/numerics/safe_math.h", 368 "base/numerics/safe_math.h",
347 "base/numerics/safe_math_impl.h", 369 "base/numerics/safe_math_impl.h",
348 "base/stl_util.h", 370 "base/stl_util.h",
349 "base/template_util.h", 371 "base/template_util.h",
350 ] 372 ]
351 } 373 }
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