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

Side by Side Diff: third_party/BUILD.gn

Issue 1904563002: Standalone GN build. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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 | « testing/test.gni ('k') | third_party/pymock/LICENSE.txt » ('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 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("../pdfium.gni") 5 import("../pdfium.gni")
6 6
7 group("third_party") { 7 group("third_party") {
8 deps = [ 8 deps = [
9 ":bigint", 9 ":bigint",
10 ":fx_freetype", 10 ":fx_freetype",
11 ":pdfium_base", 11 ":pdfium_base",
12 ] 12 ]
13 } 13 }
14 14
15 source_set("bigint") { 15 source_set("bigint") {
16 configs -= [ "//build/config/compiler:chromium_code" ] 16 configs -= [ "//build/config/compiler:chromium_code" ]
17 configs += [ 17 configs += [
18 "//build/config/compiler:no_chromium_code", 18 "//build/config/compiler:no_chromium_code",
19 "//third_party/pdfium:pdfium_config", 19 "../:pdfium_config",
20 ] 20 ]
21 sources = [ 21 sources = [
22 "bigint/BigInteger.cc", 22 "bigint/BigInteger.cc",
23 "bigint/BigInteger.hh", 23 "bigint/BigInteger.hh",
24 "bigint/BigIntegerLibrary.hh", 24 "bigint/BigIntegerLibrary.hh",
25 "bigint/BigIntegerUtils.cc", 25 "bigint/BigIntegerUtils.cc",
26 "bigint/BigIntegerUtils.hh", 26 "bigint/BigIntegerUtils.hh",
27 "bigint/BigUnsigned.cc", 27 "bigint/BigUnsigned.cc",
28 "bigint/BigUnsigned.hh", 28 "bigint/BigUnsigned.hh",
29 "bigint/BigUnsignedInABase.cc", 29 "bigint/BigUnsignedInABase.cc",
(...skipping 10 matching lines...) Expand all
40 cflags = [ "-Wno-unused-function" ] 40 cflags = [ "-Wno-unused-function" ]
41 } 41 }
42 } 42 }
43 43
44 # Tests may link against this even if the production library doesn't, 44 # Tests may link against this even if the production library doesn't,
45 # so it needs to be separate from it. 45 # so it needs to be separate from it.
46 static_library("fx_freetype") { 46 static_library("fx_freetype") {
47 configs -= [ "//build/config/compiler:chromium_code" ] 47 configs -= [ "//build/config/compiler:chromium_code" ]
48 configs += [ 48 configs += [
49 "//build/config/compiler:no_chromium_code", 49 "//build/config/compiler:no_chromium_code",
50 "//third_party/pdfium:pdfium_config", 50 "../:pdfium_config",
51 51
52 # Must be after no_chromium_code for warning flags to be ordered correctly. 52 # Must be after no_chromium_code for warning flags to be ordered correctly.
53 ":fx_freetype_warnings", 53 ":fx_freetype_warnings",
54 ] 54 ]
55 defines = [ "FT2_BUILD_LIBRARY" ] 55 defines = [ "FT2_BUILD_LIBRARY" ]
56 sources = [ 56 sources = [
57 "freetype/include/freetype/freetype.h", 57 "freetype/include/freetype/freetype.h",
58 "freetype/include/freetype/ftmm.h", 58 "freetype/include/freetype/ftmm.h",
59 "freetype/include/freetype/ftotval.h", 59 "freetype/include/freetype/ftotval.h",
60 "freetype/include/freetype/ftoutln.h", 60 "freetype/include/freetype/ftoutln.h",
(...skipping 30 matching lines...) Expand all
91 if (is_clang) { 91 if (is_clang) {
92 # calc_butt_cap() in agg_vcgen_stroke.cpp is unused. 92 # calc_butt_cap() in agg_vcgen_stroke.cpp is unused.
93 cflags = [ "-Wno-unused-function" ] 93 cflags = [ "-Wno-unused-function" ]
94 } 94 }
95 } 95 }
96 96
97 source_set("fx_agg") { 97 source_set("fx_agg") {
98 configs -= [ "//build/config/compiler:chromium_code" ] 98 configs -= [ "//build/config/compiler:chromium_code" ]
99 configs += [ 99 configs += [
100 "//build/config/compiler:no_chromium_code", 100 "//build/config/compiler:no_chromium_code",
101 "//third_party/pdfium:pdfium_config", 101 "../:pdfium_config",
102 102
103 # Must be after no_chromium_code for warning flags to be ordered correctly. 103 # Must be after no_chromium_code for warning flags to be ordered correctly.
104 ":fx_agg_warnings", 104 ":fx_agg_warnings",
105 ] 105 ]
106 sources = [ 106 sources = [
107 "agg23/agg_basics.h", 107 "agg23/agg_basics.h",
108 "agg23/agg_clip_liang_barsky.h", 108 "agg23/agg_clip_liang_barsky.h",
109 "agg23/agg_conv_dash.h", 109 "agg23/agg_conv_dash.h",
110 "agg23/agg_conv_stroke.h", 110 "agg23/agg_conv_stroke.h",
111 "agg23/agg_curves.cpp", 111 "agg23/agg_curves.cpp",
(...skipping 21 matching lines...) Expand all
133 # FindPrev() in cmsplugin.c is unused. 133 # FindPrev() in cmsplugin.c is unused.
134 "-Wno-unused-function", 134 "-Wno-unused-function",
135 ] 135 ]
136 } 136 }
137 } 137 }
138 138
139 source_set("fx_lcms2") { 139 source_set("fx_lcms2") {
140 configs -= [ "//build/config/compiler:chromium_code" ] 140 configs -= [ "//build/config/compiler:chromium_code" ]
141 configs += [ 141 configs += [
142 "//build/config/compiler:no_chromium_code", 142 "//build/config/compiler:no_chromium_code",
143 "//third_party/pdfium:pdfium_config", 143 "../:pdfium_config",
144 144
145 # Must be after no_chromium_code for warning flags to be ordered correctly. 145 # Must be after no_chromium_code for warning flags to be ordered correctly.
146 ":fx_lcms2_warnings", 146 ":fx_lcms2_warnings",
147 ] 147 ]
148 sources = [ 148 sources = [
149 "lcms2-2.6/include/lcms2.h", 149 "lcms2-2.6/include/lcms2.h",
150 "lcms2-2.6/include/lcms2_plugin.h", 150 "lcms2-2.6/include/lcms2_plugin.h",
151 "lcms2-2.6/src/cmscam02.c", 151 "lcms2-2.6/src/cmscam02.c",
152 "lcms2-2.6/src/cmscgats.c", 152 "lcms2-2.6/src/cmscgats.c",
153 "lcms2-2.6/src/cmscnvrt.c", 153 "lcms2-2.6/src/cmscnvrt.c",
(...skipping 27 matching lines...) Expand all
181 visibility = [ ":*" ] 181 visibility = [ ":*" ]
182 if (is_clang) { 182 if (is_clang) {
183 cflags = [ "-Wno-shift-negative-value" ] 183 cflags = [ "-Wno-shift-negative-value" ]
184 } 184 }
185 } 185 }
186 186
187 source_set("jpeg") { 187 source_set("jpeg") {
188 configs -= [ "//build/config/compiler:chromium_code" ] 188 configs -= [ "//build/config/compiler:chromium_code" ]
189 configs += [ 189 configs += [
190 "//build/config/compiler:no_chromium_code", 190 "//build/config/compiler:no_chromium_code",
191 "//third_party/pdfium:pdfium_config", 191 "../:pdfium_config",
192 192
193 # Must be after no_chromium_code for warning flags to be ordered correctly. 193 # Must be after no_chromium_code for warning flags to be ordered correctly.
194 ":jpeg_warnings", 194 ":jpeg_warnings",
195 ] 195 ]
196 sources = [ 196 sources = [
197 "libjpeg/cderror.h", 197 "libjpeg/cderror.h",
198 "libjpeg/cdjpeg.h", 198 "libjpeg/cdjpeg.h",
199 "libjpeg/fpdfapi_jcapimin.c", 199 "libjpeg/fpdfapi_jcapimin.c",
200 "libjpeg/fpdfapi_jcapistd.c", 200 "libjpeg/fpdfapi_jcapistd.c",
201 "libjpeg/fpdfapi_jccoefct.c", 201 "libjpeg/fpdfapi_jccoefct.c",
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 # Signed/unsigned comparisons. 259 # Signed/unsigned comparisons.
260 "/wd4018", 260 "/wd4018",
261 ] 261 ]
262 } 262 }
263 } 263 }
264 264
265 source_set("fx_libopenjpeg") { 265 source_set("fx_libopenjpeg") {
266 configs -= [ "//build/config/compiler:chromium_code" ] 266 configs -= [ "//build/config/compiler:chromium_code" ]
267 configs += [ 267 configs += [
268 "//build/config/compiler:no_chromium_code", 268 "//build/config/compiler:no_chromium_code",
269 "//third_party/pdfium:pdfium_config", 269 "../:pdfium_config",
270 270
271 # Must be after no_chromium_code for warning flags to be ordered correctly. 271 # Must be after no_chromium_code for warning flags to be ordered correctly.
272 ":fx_libopenjpeg_warnings", 272 ":fx_libopenjpeg_warnings",
273 ] 273 ]
274 sources = [ 274 sources = [
275 "libopenjpeg20/bio.c", 275 "libopenjpeg20/bio.c",
276 "libopenjpeg20/cio.c", 276 "libopenjpeg20/cio.c",
277 "libopenjpeg20/dwt.c", 277 "libopenjpeg20/dwt.c",
278 "libopenjpeg20/event.c", 278 "libopenjpeg20/event.c",
279 "libopenjpeg20/function_list.c", 279 "libopenjpeg20/function_list.c",
(...skipping 11 matching lines...) Expand all
291 "libopenjpeg20/t2.c", 291 "libopenjpeg20/t2.c",
292 "libopenjpeg20/tcd.c", 292 "libopenjpeg20/tcd.c",
293 "libopenjpeg20/tgt.c", 293 "libopenjpeg20/tgt.c",
294 ] 294 ]
295 } 295 }
296 296
297 source_set("fx_lpng") { 297 source_set("fx_lpng") {
298 configs -= [ "//build/config/compiler:chromium_code" ] 298 configs -= [ "//build/config/compiler:chromium_code" ]
299 configs += [ 299 configs += [
300 "//build/config/compiler:no_chromium_code", 300 "//build/config/compiler:no_chromium_code",
301 "//third_party/pdfium:pdfium_config", 301 "../:pdfium_config",
302 ] 302 ]
303 sources = [ 303 sources = [
304 "libpng16/png.c", 304 "libpng16/png.c",
305 "libpng16/png.h", 305 "libpng16/png.h",
306 "libpng16/pngconf.h", 306 "libpng16/pngconf.h",
307 "libpng16/pngdebug.h", 307 "libpng16/pngdebug.h",
308 "libpng16/pngerror.c", 308 "libpng16/pngerror.c",
309 "libpng16/pngget.c", 309 "libpng16/pngget.c",
310 "libpng16/pnginfo.h", 310 "libpng16/pnginfo.h",
311 "libpng16/pnglibconf.h", 311 "libpng16/pnglibconf.h",
(...skipping 13 matching lines...) Expand all
325 "libpng16/pngwtran.c", 325 "libpng16/pngwtran.c",
326 "libpng16/pngwutil.c", 326 "libpng16/pngwutil.c",
327 ] 327 ]
328 } 328 }
329 329
330 if (pdf_enable_xfa) { 330 if (pdf_enable_xfa) {
331 source_set("fx_tiff") { 331 source_set("fx_tiff") {
332 configs -= [ "//build/config/compiler:chromium_code" ] 332 configs -= [ "//build/config/compiler:chromium_code" ]
333 configs += [ 333 configs += [
334 "//build/config/compiler:no_chromium_code", 334 "//build/config/compiler:no_chromium_code",
335 "//third_party/pdfium:pdfium_config", 335 "../:pdfium_config",
336 ] 336 ]
337 deps = [ 337 deps = [
338 "//third_party:jpeg", 338 "//third_party:jpeg",
339 ] 339 ]
340 sources = [ 340 sources = [
341 "libtiff/tif_aux.c", 341 "libtiff/tif_aux.c",
342 "libtiff/tif_close.c", 342 "libtiff/tif_close.c",
343 "libtiff/tif_codec.c", 343 "libtiff/tif_codec.c",
344 "libtiff/tif_color.c", 344 "libtiff/tif_color.c",
345 "libtiff/tif_compress.c", 345 "libtiff/tif_compress.c",
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 visibility = [ ":*" ] 384 visibility = [ ":*" ]
385 if (is_clang) { 385 if (is_clang) {
386 cflags = [ "-Wno-shift-negative-value" ] 386 cflags = [ "-Wno-shift-negative-value" ]
387 } 387 }
388 } 388 }
389 389
390 source_set("fx_zlib") { 390 source_set("fx_zlib") {
391 configs -= [ "//build/config/compiler:chromium_code" ] 391 configs -= [ "//build/config/compiler:chromium_code" ]
392 configs += [ 392 configs += [
393 "//build/config/compiler:no_chromium_code", 393 "//build/config/compiler:no_chromium_code",
394 "//third_party/pdfium:pdfium_config", 394 "../:pdfium_config",
395 395
396 # Must be after no_chromium_code for warning flags to be ordered correctly. 396 # Must be after no_chromium_code for warning flags to be ordered correctly.
397 ":fx_zlib_warnings", 397 ":fx_zlib_warnings",
398 ] 398 ]
399 sources = [ 399 sources = [
400 "zlib_v128/adler32.c", 400 "zlib_v128/adler32.c",
401 "zlib_v128/compress.c", 401 "zlib_v128/compress.c",
402 "zlib_v128/crc32.c", 402 "zlib_v128/crc32.c",
403 "zlib_v128/deflate.c", 403 "zlib_v128/deflate.c",
404 "zlib_v128/gzclose.c", 404 "zlib_v128/gzclose.c",
405 "zlib_v128/gzlib.c", 405 "zlib_v128/gzlib.c",
406 "zlib_v128/gzread.c", 406 "zlib_v128/gzread.c",
407 "zlib_v128/gzwrite.c", 407 "zlib_v128/gzwrite.c",
408 "zlib_v128/infback.c", 408 "zlib_v128/infback.c",
409 "zlib_v128/inffast.c", 409 "zlib_v128/inffast.c",
410 "zlib_v128/inflate.c", 410 "zlib_v128/inflate.c",
411 "zlib_v128/inftrees.c", 411 "zlib_v128/inftrees.c",
412 "zlib_v128/trees.c", 412 "zlib_v128/trees.c",
413 "zlib_v128/uncompr.c", 413 "zlib_v128/uncompr.c",
414 "zlib_v128/zutil.c", 414 "zlib_v128/zutil.c",
415 ] 415 ]
416 } 416 }
417 417
418 source_set("pdfium_base") { 418 source_set("pdfium_base") {
419 configs -= [ "//build/config/compiler:chromium_code" ] 419 configs -= [ "//build/config/compiler:chromium_code" ]
420 configs += [ 420 configs += [
421 "//build/config/compiler:no_chromium_code", 421 "//build/config/compiler:no_chromium_code",
422 "//third_party/pdfium:pdfium_config", 422 "../:pdfium_config",
423 ] 423 ]
424 sources = [ 424 sources = [
425 "base/logging.h", 425 "base/logging.h",
426 "base/macros.h", 426 "base/macros.h",
427 "base/numerics/safe_conversions.h", 427 "base/numerics/safe_conversions.h",
428 "base/numerics/safe_conversions_impl.h", 428 "base/numerics/safe_conversions_impl.h",
429 "base/numerics/safe_math.h", 429 "base/numerics/safe_math.h",
430 "base/numerics/safe_math_impl.h", 430 "base/numerics/safe_math_impl.h",
431 "base/stl_util.h", 431 "base/stl_util.h",
432 ] 432 ]
433 } 433 }
OLDNEW
« no previous file with comments | « testing/test.gni ('k') | third_party/pymock/LICENSE.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698