Replace some Release() calls with virtual destructors.
[pdfium.git] / pdfium.gyp
index 7f1d908..8b19c83 100644 (file)
     {
       'target_name': 'fxcodec',
       'type': 'static_library',
-      'include_dirs': [
+      'dependencies': [
+        'third_party/third_party.gyp:fx_lcms2',
+        'third_party/third_party.gyp:fx_libjpeg',
       ],
       'ldflags': [ '-L<(PRODUCT_DIR)',],
-      'msvs_settings': {
-        'VCCLCompilerTool': {
-          # Unresolved warnings in fx_codec_jpx_opj.cpp
-          # https://code.google.com/p/pdfium/issues/detail?id=100
-          'WarnAsError': 'false',
-        },
-      },
       'sources': [
         'core/include/fxcodec/fx_codec.h',
         'core/include/fxcodec/fx_codec_def.h',
         'core/src/fxcodec/jbig2/JBig2_Segment.h',
         'core/src/fxcodec/jbig2/JBig2_SymbolDict.cpp',
         'core/src/fxcodec/jbig2/JBig2_SymbolDict.h',
-        'core/src/fxcodec/lcms2/src/fx_cmscam02.c',
-        'core/src/fxcodec/lcms2/src/fx_cmscgats.c',
-        'core/src/fxcodec/lcms2/src/fx_cmscnvrt.c',
-        'core/src/fxcodec/lcms2/src/fx_cmserr.c',
-        'core/src/fxcodec/lcms2/src/fx_cmsgamma.c',
-        'core/src/fxcodec/lcms2/src/fx_cmsgmt.c',
-        'core/src/fxcodec/lcms2/src/fx_cmshalf.c',
-        'core/src/fxcodec/lcms2/src/fx_cmsintrp.c',
-        'core/src/fxcodec/lcms2/src/fx_cmsio0.c',
-        'core/src/fxcodec/lcms2/src/fx_cmsio1.c',
-        'core/src/fxcodec/lcms2/src/fx_cmslut.c',
-        'core/src/fxcodec/lcms2/src/fx_cmsmd5.c',
-        'core/src/fxcodec/lcms2/src/fx_cmsmtrx.c',
-        'core/src/fxcodec/lcms2/src/fx_cmsnamed.c',
-        'core/src/fxcodec/lcms2/src/fx_cmsopt.c',
-        'core/src/fxcodec/lcms2/src/fx_cmspack.c',
-        'core/src/fxcodec/lcms2/src/fx_cmspcs.c',
-        'core/src/fxcodec/lcms2/src/fx_cmsplugin.c',
-        'core/src/fxcodec/lcms2/src/fx_cmsps2.c',
-        'core/src/fxcodec/lcms2/src/fx_cmssamp.c',
-        'core/src/fxcodec/lcms2/src/fx_cmssm.c',
-        'core/src/fxcodec/lcms2/src/fx_cmstypes.c',
-        'core/src/fxcodec/lcms2/src/fx_cmsvirt.c',
-        'core/src/fxcodec/lcms2/src/fx_cmswtpnt.c',
-        'core/src/fxcodec/lcms2/src/fx_cmsxform.c',
-        'core/src/fxcodec/libjpeg/cderror.h',
-        'core/src/fxcodec/libjpeg/cdjpeg.h',
-        'core/src/fxcodec/libjpeg/fpdfapi_jcapimin.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jcapistd.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jccoefct.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jccolor.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jcdctmgr.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jchuff.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jcinit.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jcmainct.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jcmarker.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jcmaster.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jcomapi.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jcparam.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jcphuff.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jcprepct.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jcsample.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jctrans.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jdapimin.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jdapistd.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jdcoefct.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jdcolor.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jddctmgr.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jdhuff.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jdinput.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jdmainct.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jdmarker.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jdmaster.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jdmerge.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jdphuff.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jdpostct.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jdsample.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jdtrans.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jerror.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jfdctfst.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jfdctint.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jidctfst.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jidctint.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jidctred.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jmemmgr.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jmemnobs.c',
-        'core/src/fxcodec/libjpeg/fpdfapi_jutils.c',
-        'core/src/fxcodec/libjpeg/jchuff.h',
-        'core/src/fxcodec/libjpeg/jconfig.h',
-        'core/src/fxcodec/libjpeg/jdct.h',
-        'core/src/fxcodec/libjpeg/jdhuff.h',
-        'core/src/fxcodec/libjpeg/jerror.h',
-        'core/src/fxcodec/libjpeg/jinclude.h',
-        'core/src/fxcodec/libjpeg/jmemsys.h',
-        'core/src/fxcodec/libjpeg/jmorecfg.h',
-        'core/src/fxcodec/libjpeg/jpegint.h',
-        'core/src/fxcodec/libjpeg/jpeglib.h',
-        'core/src/fxcodec/libjpeg/jversion.h',
-        'core/src/fxcodec/libjpeg/makefile',
-        'core/src/fxcodec/libjpeg/transupp.h',
+        'core/src/fxcodec/lcms2/fx_lcms2.h',
+        'core/src/fxcodec/lcms2/fx_lcms2_plugin.h',
+        'core/src/fxcodec/libjpeg/fx_libjpeg.h',
       ],
+      'msvs_settings': {
+        'VCCLCompilerTool': {
+          # Unresolved warnings in fx_codec_jpx_opj.cpp
+          # https://code.google.com/p/pdfium/issues/detail?id=100
+          'WarnAsError': 'false',
+        },
+      },
       'conditions': [
         ['os_posix==1', {
           # core/src/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int
         'core/include/fxcrt/fx_coordinates.h',
         'core/include/fxcrt/fx_ext.h',
         'core/include/fxcrt/fx_memory.h',
+        'core/include/fxcrt/fx_safe_types.h',
         'core/include/fxcrt/fx_stream.h',
         'core/include/fxcrt/fx_string.h',
         'core/include/fxcrt/fx_system.h',
         'core/include/fxcrt/fx_ucd.h',
         'core/include/fxcrt/fx_xml.h',
         'core/src/fxcrt/extension.h',
-        'core/src/fxcrt/fx_safe_types.h',
         'core/src/fxcrt/fxcrt_platforms.cpp',
         'core/src/fxcrt/fxcrt_platforms.h',
         'core/src/fxcrt/fxcrt_posix.cpp',
     {
       'target_name': 'fxge',
       'type': 'static_library',
-      'ldflags': [ '-L<(PRODUCT_DIR)',],
+      'ldflags': [
+        '-L<(PRODUCT_DIR)',
+      ],
+      'dependencies': [
+        'third_party/third_party.gyp:fx_agg',
+      ],
       'sources': [
         'core/include/fxge/fpf.h',
         'core/include/fxge/fx_dib.h',
         'core/include/fxge/fx_ge.h',
         'core/include/fxge/fx_ge_apple.h',
         'core/include/fxge/fx_ge_win32.h',
-        'core/src/fxge/agg/include/fxfx_agg_basics.h',
-        'core/src/fxge/agg/include/fxfx_agg_clip_liang_barsky.h',
-        'core/src/fxge/agg/include/fxfx_agg_conv_dash.h',
-        'core/src/fxge/agg/include/fxfx_agg_conv_stroke.h',
-        'core/src/fxge/agg/include/fxfx_agg_curves.h',
-        'core/src/fxge/agg/include/fxfx_agg_path_storage.h',
-        'core/src/fxge/agg/include/fxfx_agg_rasterizer_scanline_aa.h',
-        'core/src/fxge/agg/include/fxfx_agg_renderer_scanline.h',
-        'core/src/fxge/agg/include/fxfx_agg_rendering_buffer.h',
-        'core/src/fxge/agg/include/fxfx_agg_scanline_u.h',
         'core/src/fxge/agg/include/fx_agg_driver.h',
-        'core/src/fxge/agg/src/fxfx_agg_curves.cpp',
-        'core/src/fxge/agg/src/fxfx_agg_driver.cpp',
-        'core/src/fxge/agg/src/fxfx_agg_path_storage.cpp',
-        'core/src/fxge/agg/src/fxfx_agg_rasterizer_scanline_aa.cpp',
-        'core/src/fxge/agg/src/fxfx_agg_vcgen_dash.cpp',
-        'core/src/fxge/agg/src/fxfx_agg_vcgen_stroke.cpp',
+        'core/src/fxge/agg/src/fx_agg_driver.cpp',
         'core/src/fxge/android/fpf_skiafont.cpp',
         'core/src/fxge/android/fpf_skiafont.h',
         'core/src/fxge/android/fpf_skiafontmgr.cpp',
       'dependencies': [
         '<(DEPTH)/testing/gmock.gyp:gmock',
         '<(DEPTH)/testing/gtest.gyp:gtest',
+        '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform',
         'pdfium',
       ],
       'include_dirs': [
-        '<(DEPTH)'
+        '<(DEPTH)',
+        '<(DEPTH)/v8',
       ],
       'sources': [
         'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp',
         'testing/embedder_test.cpp',
         'testing/embedder_test.h',
         'testing/embedder_test_mock_delegate.h',
+        'testing/embedder_test_timer_handling_delegate.h',
         'testing/fx_string_testhelpers.cpp',
         'testing/fx_string_testhelpers.h',
       ],