summaryrefslogtreecommitdiff
path: root/third_party/third_party.gyp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-06-18 17:05:27 -0700
committerTom Sepez <tsepez@chromium.org>2015-06-18 17:05:27 -0700
commite295819e5ded76e405b6d5800401cb5983b4ce10 (patch)
tree64f28bd7e305081576c5509cdef42126561467c4 /third_party/third_party.gyp
parentaa23c864b84d99f23a82ee8da852e575db981c07 (diff)
downloadpdfium-e295819e5ded76e405b6d5800401cb5983b4ce10.tar.xz
Move libopenjpeg to third_party/
We get to delete a whole bunch of fx_foo.c files that did nothing but #include "foo.c" after defining _CRT_SECURE_NO_WARNINGS. Do this from the .gyp/.gn files instead. Also sort some "config"s in .gn file. R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/c7a17bf9cdb0d646aa8b653e6ab2678a1837ed6a Review URL: https://codereview.chromium.org/1185373010.
Diffstat (limited to 'third_party/third_party.gyp')
-rw-r--r--third_party/third_party.gyp34
1 files changed, 34 insertions, 0 deletions
diff --git a/third_party/third_party.gyp b/third_party/third_party.gyp
index 6dbff565a4..240d65bca4 100644
--- a/third_party/third_party.gyp
+++ b/third_party/third_party.gyp
@@ -3,6 +3,15 @@
# found in the LICENSE file.
{
+ 'target_defaults': {
+ 'defines': [
+ 'OPJ_STATIC',
+ '_CRT_SECURE_NO_WARNINGS',
+ ],
+ 'msvs_disabled_warnings': [
+ 4005, 4018, 4146, 4333, 4345, 4267
+ ],
+ },
'targets': [
{
'target_name': 'bigint',
@@ -200,6 +209,31 @@
],
},
{
+ 'target_name': 'fx_libopenjpeg',
+ 'type': 'static_library',
+ 'sources': [
+ 'libopenjpeg20/bio.c',
+ 'libopenjpeg20/cio.c',
+ 'libopenjpeg20/dwt.c',
+ 'libopenjpeg20/event.c',
+ 'libopenjpeg20/function_list.c',
+ 'libopenjpeg20/image.c',
+ 'libopenjpeg20/invert.c',
+ 'libopenjpeg20/j2k.c',
+ 'libopenjpeg20/jp2.c',
+ 'libopenjpeg20/mct.c',
+ 'libopenjpeg20/mqc.c',
+ 'libopenjpeg20/openjpeg.c',
+ 'libopenjpeg20/opj_clock.c',
+ 'libopenjpeg20/pi.c',
+ 'libopenjpeg20/raw.c',
+ 'libopenjpeg20/t1.c',
+ 'libopenjpeg20/t2.c',
+ 'libopenjpeg20/tcd.c',
+ 'libopenjpeg20/tgt.c',
+ ],
+ },
+ {
'target_name': 'pdfium_base',
'type': 'none',
'sources': [