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

Side by Side Diff: third_party/third_party.gyp

Issue 1962863002: Make GYP and GN build consistent for third_party targets (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: change order Created 4 years, 7 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 | « third_party/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 { 5 {
6 'variables': { 6 'variables': {
7 'pdf_enable_xfa%': 0, # Set to 1 by standalone.gypi in standalone builds. 7 'pdf_enable_xfa%': 0, # Set to 1 by standalone.gypi in standalone builds.
8 'pdf_use_skia%': 0, 8 'pdf_use_skia%': 0,
9 }, 9 },
10 'target_defaults': { 10 'target_defaults': {
11 'defines': [ 11 'defines': [
12 'OPJ_STATIC', 12 'OPJ_STATIC',
13 'PNG_PREFIX', 13 'PNG_PREFIX',
14 'PNG_USE_READ_MACROS', 14 'PNG_USE_READ_MACROS',
15 ], 15 ],
16 'include_dirs': [ 16 'include_dirs': [
17 # This is implicit in GN. 17 # This is implicit in GN.
18 '<(DEPTH)', 18 '<(DEPTH)',
19 '..', 19 '..',
20 ], 20 ],
21 'msvs_disabled_warnings': [
22 4018, 4146, 4333, 4345, 4267
23 ],
24 }, 21 },
25 'targets': [ 22 'targets': [
26 { 23 {
27 'target_name': 'bigint', 24 'target_name': 'bigint',
28 'type': 'static_library', 25 'type': 'static_library',
29 'sources': [ 26 'sources': [
30 'bigint/BigInteger.hh', 27 'bigint/BigInteger.hh',
31 'bigint/BigIntegerLibrary.hh', 28 'bigint/BigIntegerLibrary.hh',
32 'bigint/BigIntegerUtils.hh', 29 'bigint/BigIntegerUtils.hh',
33 'bigint/BigUnsigned.hh', 30 'bigint/BigUnsigned.hh',
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 ], 86 ],
90 }], 87 }],
91 ], 88 ],
92 'variables': { 89 'variables': {
93 'clang_warning_flags': [ 90 'clang_warning_flags': [
94 # open_face_PS_from_sfnt_stream() and open_face_from_buffer() in 91 # open_face_PS_from_sfnt_stream() and open_face_from_buffer() in
95 # ftbase.h are unused. 92 # ftbase.h are unused.
96 '-Wno-unused-function', 93 '-Wno-unused-function',
97 ], 94 ],
98 }, 95 },
96 'msvs_disabled_warnings': [
97 # Warnings about conversion from 'size_t' to 'long', possible loss of
98 # data.
99 4267,
100 ],
99 }, 101 },
100 { 102 {
101 'target_name': 'fx_agg', 103 'target_name': 'fx_agg',
102 'type': 'static_library', 104 'type': 'static_library',
103 'sources': [ 105 'sources': [
104 'agg23/agg_basics.h', 106 'agg23/agg_basics.h',
105 'agg23/agg_clip_liang_barsky.h', 107 'agg23/agg_clip_liang_barsky.h',
106 'agg23/agg_conv_dash.h', 108 'agg23/agg_conv_dash.h',
107 'agg23/agg_conv_stroke.h', 109 'agg23/agg_conv_stroke.h',
108 'agg23/agg_curves.cpp', 110 'agg23/agg_curves.cpp',
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 '-Wno-shift-negative-value', 248 '-Wno-shift-negative-value',
247 '-Wno-unused', 249 '-Wno-unused',
248 ], 250 ],
249 }], 251 }],
250 ], 252 ],
251 'variables': { 253 'variables': {
252 'clang_warning_flags': [ 254 'clang_warning_flags': [
253 # Avoid warning for undefined behaviour. 255 # Avoid warning for undefined behaviour.
254 '-Wno-shift-negative-value', 256 '-Wno-shift-negative-value',
255 ], 257 ],
256 } 258 },
259 'msvs_disabled_warnings': [
260 # Warnings about conversion from 'size_t' to 'long', possible loss of
261 # data.
262 4267,
263 ],
257 }, 264 },
258 { 265 {
259 'target_name': 'fx_libopenjpeg', 266 'target_name': 'fx_libopenjpeg',
260 'type': 'static_library', 267 'type': 'static_library',
261 'sources': [ 268 'sources': [
262 'libopenjpeg20/bio.c', 269 'libopenjpeg20/bio.c',
263 'libopenjpeg20/cio.c', 270 'libopenjpeg20/cio.c',
264 'libopenjpeg20/dwt.c', 271 'libopenjpeg20/dwt.c',
265 'libopenjpeg20/event.c', 272 'libopenjpeg20/event.c',
266 'libopenjpeg20/function_list.c', 273 'libopenjpeg20/function_list.c',
267 'libopenjpeg20/image.c', 274 'libopenjpeg20/image.c',
268 'libopenjpeg20/invert.c', 275 'libopenjpeg20/invert.c',
269 'libopenjpeg20/j2k.c', 276 'libopenjpeg20/j2k.c',
270 'libopenjpeg20/jp2.c', 277 'libopenjpeg20/jp2.c',
271 'libopenjpeg20/mct.c', 278 'libopenjpeg20/mct.c',
272 'libopenjpeg20/mqc.c', 279 'libopenjpeg20/mqc.c',
273 'libopenjpeg20/openjpeg.c', 280 'libopenjpeg20/openjpeg.c',
274 'libopenjpeg20/opj_clock.c', 281 'libopenjpeg20/opj_clock.c',
275 'libopenjpeg20/pi.c', 282 'libopenjpeg20/pi.c',
276 'libopenjpeg20/raw.c', 283 'libopenjpeg20/raw.c',
277 'libopenjpeg20/t1.c', 284 'libopenjpeg20/t1.c',
278 'libopenjpeg20/t2.c', 285 'libopenjpeg20/t2.c',
279 'libopenjpeg20/tcd.c', 286 'libopenjpeg20/tcd.c',
280 'libopenjpeg20/tgt.c', 287 'libopenjpeg20/tgt.c',
281 ], 288 ],
289 'msvs_disabled_warnings': [
290 4018,
291 ],
282 }, 292 },
283 { 293 {
284 'target_name': 'fx_lpng', 294 'target_name': 'fx_lpng',
285 'type': 'static_library', 295 'type': 'static_library',
286 'sources': [ 296 'sources': [
287 'libpng16/png.c', 297 'libpng16/png.c',
288 'libpng16/png.h', 298 'libpng16/png.h',
289 'libpng16/pngconf.h', 299 'libpng16/pngconf.h',
290 'libpng16/pngdebug.h', 300 'libpng16/pngdebug.h',
291 'libpng16/pngerror.c', 301 'libpng16/pngerror.c',
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 'libtiff/tif_thunder.c', 416 'libtiff/tif_thunder.c',
407 'libtiff/tif_tile.c', 417 'libtiff/tif_tile.c',
408 'libtiff/tif_version.c', 418 'libtiff/tif_version.c',
409 'libtiff/tif_warning.c', 419 'libtiff/tif_warning.c',
410 'libtiff/tif_write.c', 420 'libtiff/tif_write.c',
411 'libtiff/tif_zip.c', 421 'libtiff/tif_zip.c',
412 ], 422 ],
413 'conditions': [ 423 'conditions': [
414 ['OS=="win"', { 424 ['OS=="win"', {
415 'defines!': [ 425 'defines!': [
416 # Need to undefine the macro since it is redefined in 426 # Need to undefine the macro since it is redefined in
417 # tif_ojpeg.c and tif_jpeg.c. 427 # tif_ojpeg.c and tif_jpeg.c.
418 'WIN32_LEAN_AND_MEAN', 428 'WIN32_LEAN_AND_MEAN',
419 ], 429 ],
420 }], 430 }],
421 ], 431 ],
422 }, 432 },
423 ], 433 ],
424 }], 434 }],
425 ], 435 ],
426 } 436 }
OLDNEW
« no previous file with comments | « third_party/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698