Clean up CPDF_AnnotList.
[pdfium.git] / third_party / third_party.gyp
index 6dbff56..1ec0509 100644 (file)
@@ -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',
@@ -21,7 +30,7 @@
       ],
     },
     {
-      'target_name': 'freetype',
+      'target_name': 'fx_freetype',
       'type': 'static_library',
       'defines': [
         'FT2_BUILD_LIBRARY',
@@ -43,6 +52,7 @@
         'freetype/src/cff/cfftypes.h',
         'freetype/src/cff/cff.c',
         'freetype/src/base/ftbase.c',
+        'freetype/src/base/ftbase.h',
         'freetype/src/base/ftbitmap.c',
         'freetype/src/base/ftglyph.c',
         'freetype/src/base/ftinit.c',
         'freetype/src/type1/type1.c',
         'freetype/src/cid/type1cid.c',
       ],
+      'variables': {
+        'clang_warning_flags': [
+          # open_face_PS_from_sfnt_stream() and open_face_from_buffer() in
+          # ftbase.h are unused.
+          '-Wno-unused-function',
+        ],
+      },
     },
     {
       'target_name': 'fx_agg',
           'cflags': [ '-Wno-extra', ],
         }],
       ],
+      'variables': {
+        'clang_warning_flags': [
+          # calc_butt_cap() in agg_vcgen_stroke.cpp is unused.
+          '-Wno-unused-function',
+        ],
+      },
     },
     {
       'target_name': 'fx_lcms2',
           ],
         }],
       ],
+      'variables': {
+        'clang_warning_flags': [
+          '-Wno-missing-braces',
+          # FindPrev() in cmsplugin.c is unused.
+          '-Wno-unused-function',
+        ],
+      },
     },
     {
       'target_name': 'fx_libjpeg',
         'libjpeg/jpegint.h',
         'libjpeg/jpeglib.h',
         'libjpeg/jversion.h',
-        'libjpeg/makefile',
         'libjpeg/transupp.h',
       ],
       'conditions': [
       ],
     },
     {
+      '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': 'fx_zlib',
+      'type': 'static_library',
+      'sources': [
+        'zlib_v128/adler32.c',
+        'zlib_v128/compress.c',
+        'zlib_v128/crc32.c',
+        'zlib_v128/deflate.c',
+        'zlib_v128/gzclose.c',
+        'zlib_v128/gzlib.c',
+        'zlib_v128/gzread.c',
+        'zlib_v128/gzwrite.c',
+        'zlib_v128/infback.c',
+        'zlib_v128/inffast.c',
+        'zlib_v128/inflate.c',
+        'zlib_v128/inftrees.c',
+        'zlib_v128/trees.c',
+        'zlib_v128/uncompr.c',
+        'zlib_v128/zutil.c',
+      ],
+    },
+    {
       'target_name': 'pdfium_base',
       'type': 'none',
       'sources': [
         'base/logging.h',
         'base/macros.h',
         'base/nonstd_unique_ptr.h',
-        'base/template_util.h',
         'base/numerics/safe_conversions.h',
         'base/numerics/safe_conversions_impl.h',
         'base/numerics/safe_math.h',
         'base/numerics/safe_math_impl.h',
+        'base/stl_util.h',
+        'base/template_util.h',
       ],
     },
   ],