Skip to content

Commit

Permalink
conf: changes to match nodejs setup
Browse files Browse the repository at this point in the history
  • Loading branch information
galkahana committed Sep 21, 2024
1 parent 44fe422 commit 5c4d064
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 34 deletions.
7 changes: 4 additions & 3 deletions FreeType/binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
'target_name': 'freetype',
'type': 'static_library',
'defines': [
'FT2_BUILD_LIBRARY=1'
'FT2_BUILD_LIBRARY=1',
'FT_CONFIG_OPTION_SYSTEM_ZLIB=1'
],
'include_dirs': [
'./include',
'./include',
'./include/freetype',
'./include/freetype/config',
'./include/src',
'./include/freetype/internal',
Expand Down Expand Up @@ -56,7 +57,7 @@
'./src/type42/type42.c',
'./src/winfonts/winfnt.c',
'./src/base/ftsystem.c',
'./src/base/ftdebug.c ',
'./src/base/ftdebug.c',
'./include/freetype/config/ftconfig.h',
'./include/freetype/config/ftheader.h',
'./include/freetype/config/ftmodule.h',
Expand Down
4 changes: 2 additions & 2 deletions LibPng/binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
'target_name': 'libpng',
'type': 'static_library',
'dependencies': [
'<(module_root_dir)/src/deps/Zlib/binding.gyp:zlib'
'<(module_root_dir)/src/deps/ZLib/binding.gyp:zlib'
],
'include_dirs': [
'<(module_root_dir)/src/deps/Zlib',
'<(module_root_dir)/src/deps/ZLib',
],
'conditions': [
# https://github.com/julienr/libpng-android/issues/6. disable neon optimization for arm to avoid runtime errors
Expand Down
4 changes: 2 additions & 2 deletions LibTiff/binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
'target_name': 'libtiff',
'type': 'static_library',
'dependencies': [
'<(module_root_dir)/src/deps/Zlib/binding.gyp:zlib'
'<(module_root_dir)/src/deps/ZLib/binding.gyp:zlib'
],
'defines': [
'_CRT_SECURE_NO_DEPRECATE=1',
Expand Down Expand Up @@ -33,7 +33,7 @@
}]
],
'include_dirs': [
'<(module_root_dir)/src/deps/Zlib',
'<(module_root_dir)/src/deps/ZLib',
],
'sources': [
'tif_aux.c',
Expand Down
1 change: 1 addition & 0 deletions PDFWriter/DecryptionHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ limitations under the License.
#include "Trace.h"
#include "Deletable.h"
#include <memory>
#include <algorithm>

using namespace std;
using namespace PDFHummus;
Expand Down
79 changes: 52 additions & 27 deletions PDFWriter/binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
'cflags!': [ '-fno-exceptions' ],
'cflags_cc!': [ '-fno-exceptions' ],
'conditions': [
['OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
}
}]
['OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
}
}]
],
'msvs_settings':
{
Expand All @@ -26,24 +26,24 @@
'<(module_root_dir)/src/deps/LibAesgm/binding.gyp:libaesgm',
'<(module_root_dir)/src/deps/FreeType/binding.gyp:freetype',
'<(module_root_dir)/src/deps/LibJpeg/binding.gyp:libjpeg',
'<(module_root_dir)/src/deps/Zlib/binding.gyp:zlib',
'<(module_root_dir)/src/deps/ZLib/binding.gyp:zlib',
'<(module_root_dir)/src/deps/LibTiff/binding.gyp:libtiff',
'<(module_root_dir)/src/deps/LibPng/binding.gyp:libpng'
],
'include_dirs': [
'<(module_root_dir)/src/deps/LibAesgm',
'<(module_root_dir)/src/deps/FreeType/include',
'<(module_root_dir)/src/deps/LibTiff',
'<(module_root_dir)/src/deps/Zlib',
'<(module_root_dir)/src/deps/LibJpeg',
'<(module_root_dir)/src/deps/LibPng'
'<(module_root_dir)/src/deps/LibAesgm',
'<(module_root_dir)/src/deps/FreeType/include',
'<(module_root_dir)/src/deps/LibTiff',
'<(module_root_dir)/src/deps/ZLib',
'<(module_root_dir)/src/deps/LibJpeg',
'<(module_root_dir)/src/deps/LibPng'
],
'sources': [
'AbstractContentContext.cpp',
'AbstractWrittenFont.cpp',
'ANSIFontWriter.cpp',
'ArrayOfInputStreamsStream.cpp',
'Ascii7Encoding.cpp',
'ArrayOfInputStreamsStream.cpp',
'CatalogInformation.cpp',
'CFFANSIFontWriter.cpp',
'CFFDescendentFontWriter.cpp',
Expand All @@ -64,6 +64,7 @@
'DocumentContext.cpp',
'EncryptionHelper.cpp',
'EncryptionOptions.cpp',
'ExtGStateRegistry.cpp',
'FontDescriptorWriter.cpp',
'FreeTypeFaceWrapper.cpp',
'FreeTypeOpenTypeWrapper.cpp',
Expand All @@ -86,18 +87,21 @@
'InputLZWDecodeStream.cpp',
'InputLimitedStream.cpp',
'InputOffsetStream.cpp',
'InputRC4XcodeStream.cpp',
'InputPFBDecodeStream.cpp',
'InputPredictorPNGOptimumStream.cpp',
'InputPredictorTIFFSubStream.cpp',
'InputRC4XcodeStream.cpp',
'InputStreamSkipperStream.cpp',
'InputStringBufferStream.cpp',
'InputStringStream.cpp',
'JPEGImageHandler.cpp',
'JPEGImageInformation.cpp',
'JPEGImageParser.cpp',
'LayeredGlyphsDrawingContext.cpp',
'LinearGradientShadingPatternWritingTask.cpp',
'Log.cpp',
'MD5Generator.cpp',
'RC4.cpp',
'ObjectsContext.cpp',
'OpenTypeFileInput.cpp',
'OpenTypePrimitiveReader.cpp',
Expand All @@ -112,35 +116,40 @@
'OutputStringBufferStream.cpp',
'PageContentContext.cpp',
'PageTree.cpp',
'PaintedGlyphsDrawingContext.cpp',
'ParsedPrimitiveHelper.cpp',
'PDFArray.cpp',
'PDFBoolean.cpp',
'PDFCosArray.cpp',
'PDFCosDict.cpp',
'PDFDate.cpp',
'PDFDictionary.cpp',
'PDFDocEncoding.cpp',
'PDFDocumentCopyingContext.cpp',
'PDFDocumentHandler.cpp',
'PDFFormXObject.cpp',
'PDFTiledPattern.cpp',
'TiledPatternContentContext.cpp',
'PDFHexString.cpp',
'PDFImageXObject.cpp',
'PDFIndirectObjectReference.cpp',
'PDFInteger.cpp',
'PDFLiteralString.cpp',
'PDFMatrix.cpp',
'PDFModifiedPage.cpp',
'PDFName.cpp',
'PDFNull.cpp',
'PDFObject.cpp',
'PDFObjectParser.cpp',
'PDFPage.cpp',
'PDFPageInput.cpp',
'PDFParsingOptions.cpp',
'PDFDictionaryIterator.cpp',
'PDFArrayIterator.cpp',
'PDFPageMergingHelper.cpp',
'PDFParser.cpp',
'PDFParserTokenizer.cpp',
'PDFParseingPath.cpp',
'PDFParsingOptions.cpp',
'PDFParsingPath.cpp',
'PDFReal.cpp',
'PDFRectangle.cpp',
'PDFStream.cpp',
Expand All @@ -153,14 +162,16 @@
'PNGImageHandler.cpp',
'PrimitiveObjectsWriter.cpp',
'PSBool.cpp',
'RC4.cpp',
'RadialGradientShadingPatternWritingTask.cpp',
'RefCountObject.cpp',
'ResourcesDictionary.cpp',
'ShadingWriter.cpp',
'SimpleGlyphsDrawingContext.cpp',
'SimpleStringTokenizer.cpp',
'StandardEncoding.cpp',
'StateReader.cpp',
'StateWriter.cpp',
'TiledPatternContentContext.cpp',
'SweepGradientShadingPatternWritingTask.cpp',
'TIFFImageHandler.cpp',
'TiffUsageParameters.cpp',
'Timer.cpp',
Expand All @@ -187,8 +198,8 @@
'AbstractWrittenFont.h',
'AdapterIByteReaderWithPositionToIReadPositionProvider.h',
'ANSIFontWriter.h',
'ArrayOfInputStreamsStream.h',
'Ascii7Encoding.h',
'ArrayOfInputStreamsStream.h',
'BetweenIncluding.h',
'BoxingBase.h',
'CatalogInformation.h',
Expand All @@ -208,6 +219,7 @@
'CMYKRGBColor.h',
'ContainerIterator.h',
'DecryptionHelper.h',
'Deletable.h',
'DescendentFontWriter.h',
'DictionaryContext.h',
'DictOperand.h',
Expand All @@ -216,10 +228,11 @@
'EFontStretch.h',
'EHummusImageType.h',
'EncryptionHelper.h',
'EncryptionHelper.h',
'EncryptionOptions.h',
'EPDFVersion.h',
'EStatusCode.h',
'ETokenSeparator.h',
'ExtGStateRegistry.h',
'FontDescriptorWriter.h',
'FreeTypeFaceWrapper.h',
'FreeTypeOpenTypeWrapper.h',
Expand All @@ -235,6 +248,7 @@
'IByteWriter.h',
'IByteWriterWithPosition.h',
'IContentContextListener.h',
'IDeletable.h',
'IDescendentFontWriter.h',
'IDocumentContextExtender.h',
'IFontDescriptorHelper.h',
Expand All @@ -252,18 +266,19 @@
'InputDCTDecodeStream.h',
'InputFile.h',
'InputFileStream.h',
'InputLZWDecodeStream.h',
'InputOffsetStream.h',
'InputFlateDecodeStream.h',
'InputLZWDecodeStream.h',
'InputLimitedStream.h',
'InputOffsetStream.h',
'InputRC4XcodeStream.h',
'InputPFBDecodeStream.h',
'InputPredictorPNGOptimumStream.h',
'InputPredictorTIFFSubStream.h',
'InputRC4XcodeStream.h',
'InputStreamSkipperStream.h',
'InputStringBufferStream.h',
'InputStringStream.h',
'IOBasicTypes.h',
'IObjectEndWritingTask.h',
'IObjectsContextExtender.h',
'IPageEndWritingTask.h',
'IPDFParserExtender.h',
Expand All @@ -275,9 +290,12 @@
'JPEGImageHandler.h',
'JPEGImageInformation.h',
'JPEGImageParser.h',
'LayeredGlyphsDrawingContext.h',
'LinearGradientShadingPatternWritingTask.h',
'Log.h',
'MapIterator.h',
'MD5Generator.h',
'RC4.h',
'MyStringBuf.h',
'ObjectsBasicTypes.h',
'ObjectsContext.h',
Expand All @@ -295,24 +313,27 @@
'OutputStringBufferStream.h',
'PageContentContext.h',
'PageTree.h',
'PaintedGlyphsDrawingContext.h',
'ParsedPrimitiveHelper.h',
'PDFArray.h',
'PDFBoolean.h',
'PDFCosArray.h',
'PDFCosDict.h',
'PDFDate.h',
'PDFDictionary.h',
'PDFDocEncoding.h',
'PDFDocumentCopyingContext.h',
'PDFDocumentHandler.h',
'PDFEmbedParameterTypes.h',
'PDFFormXObject.h',
'PDFParsingOptions.h',
'PDFTiledPattern.h',
'TiledPatternContentContext.h',
'PDFHexString.h',
'PDFImageXObject.h',
'PDFIndirectObjectReference.h',
'PDFInteger.h',
'PDFLiteralString.h',
'PDFMatrix.h',
'PDFModifiedPage.h',
'PDFName.h',
'PDFNull.h',
Expand All @@ -326,7 +347,8 @@
'PDFPageMergingHelper.h',
'PDFParser.h',
'PDFParserTokenizer.h',
'PDFParseingPath.h',
'PDFParsingOptions.h',
'PDFParsingPath.h',
'PDFReal.h',
'PDFRectangle.h',
'PDFStream.h',
Expand All @@ -336,21 +358,24 @@
'PDFUsedFont.h',
'PDFWriter.h',
'PFMFileReader.h',
'PNGImageHandler.cpp',
'PNGImageHandler.h',
'PrimitiveObjectsWriter.h',
'ProcsetResourcesConstants.h',
'PSBool.h',
'RC4.h',
'RadialGradientShadingPatternWritingTask.h',
'RefCountObject.h',
'RefCountPtr.h',
'ResourcesDictionary.h',
'SafeBufferMacrosDefs.h',
'SimpleGlyphsDrawingContext.h',
'SimpleStringTokenizer.h',
'Singleton.h',
'SingleValueContainerIterator.h',
'ShadingWriter.h',
'StandardEncoding.h',
'StateReader.h',
'StateWriter.h',
'SweepGradientShadingPatternWritingTask.h',
'TIFFImageHandler.h',
'TiffUsageParameters.h',
'Timer.h',
Expand Down

0 comments on commit 5c4d064

Please sign in to comment.