From 602aebc11a615971800d38f8d427a4e4f95c1134 Mon Sep 17 00:00:00 2001 From: tsepez Date: Tue, 29 Mar 2016 15:04:21 -0700 Subject: Add a Retained Pointer smart class. It's going to be hard to fix some XFA object leaks without this. Put this in fxcrt/ as we should be able to make the FX strings take advantage of this. BUG=pdfium:55 Review URL: https://codereview.chromium.org/1805683002 --- pdfium.gyp | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) (limited to 'pdfium.gyp') diff --git a/pdfium.gyp b/pdfium.gyp index 0fb4c3eae5..e61237fafa 100644 --- a/pdfium.gyp +++ b/pdfium.gyp @@ -593,13 +593,6 @@ 'type': 'static_library', 'sources': [ 'core/fxcrt/extension.h', - 'core/fxcrt/fxcrt_platforms.cpp', - 'core/fxcrt/fxcrt_platforms.h', - 'core/fxcrt/fxcrt_posix.cpp', - 'core/fxcrt/fxcrt_posix.h', - 'core/fxcrt/fxcrt_stream.cpp', - 'core/fxcrt/fxcrt_windows.cpp', - 'core/fxcrt/fxcrt_windows.h', 'core/fxcrt/fx_basic_array.cpp', 'core/fxcrt/fx_basic_bstring.cpp', 'core/fxcrt/fx_basic_buffer.cpp', @@ -618,16 +611,25 @@ 'core/fxcrt/fx_unicode.cpp', 'core/fxcrt/fx_xml_composer.cpp', 'core/fxcrt/fx_xml_parser.cpp', - 'core/fxcrt/include/fx_basic.h', - 'core/fxcrt/include/fx_coordinates.h', - 'core/fxcrt/include/fx_ext.h', - 'core/fxcrt/include/fx_memory.h', - 'core/fxcrt/include/fx_safe_types.h', - 'core/fxcrt/include/fx_stream.h', - 'core/fxcrt/include/fx_string.h', - 'core/fxcrt/include/fx_system.h', - 'core/fxcrt/include/fx_ucd.h', - 'core/fxcrt/include/fx_xml.h', + 'core/fxcrt/fxcrt_platforms.cpp', + 'core/fxcrt/fxcrt_platforms.h', + 'core/fxcrt/fxcrt_posix.cpp', + 'core/fxcrt/fxcrt_posix.h', + 'core/fxcrt/fxcrt_stream.cpp', + 'core/fxcrt/fxcrt_windows.cpp', + 'core/fxcrt/fxcrt_windows.h', + 'core/fxcrt/include/cfx_retain_ptr.h', + 'core/include/fxcrt/fx_basic.h', + 'core/include/fxcrt/fx_bidi.h', + '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/fxcrt/plex.h', 'core/fxcrt/xml_int.h', ], @@ -895,6 +897,7 @@ 'test_support', ], 'sources': [ + 'core/fxcrt/cfx_retain_ptr_unittest.cpp', 'core/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp', 'core/fpdfapi/fpdf_font/fpdf_font_unittest.cpp', 'core/fpdfapi/fpdf_page/fpdf_page_parser_old_unittest.cpp', -- cgit v1.2.3