Skip to content

Commit

Permalink
Adds a node-gyp build file (binding.gyp) for podofo, and an Xcode pro…
Browse files Browse the repository at this point in the history
…ject fo ran OSX build.
  • Loading branch information
mz2 committed Jun 12, 2014
1 parent bbbd0a4 commit 4280199
Show file tree
Hide file tree
Showing 10 changed files with 958 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "External/freetype"]
path = External/freetype
url = [email protected]:mekentosj/freetype-gyp
1 change: 1 addition & 0 deletions External/freetype
Submodule freetype added at a08b06
123 changes: 123 additions & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
{
'targets':[{
"target_name" : "podofo",
"type" : "static_library",
"sources" : [
"src/doc/PdfFontFactoryBase14Data.h",
"src/doc/PdfAcroForm.cpp",
"src/doc/PdfFontConfigWrapper.cpp",
"src/doc/PdfMemDocument.cpp",
"src/doc/PdfAction.cpp",
"src/doc/PdfFontFactory.cpp",
"src/doc/PdfNamesTree.cpp",
"src/doc/PdfAnnotation.cpp",
"src/doc/PdfFontMetrics.cpp",
"src/doc/PdfOutlines.cpp",
"src/doc/PdfCMapEncoding.cpp",
"src/doc/PdfFontMetricsBase14.cpp",
"src/doc/PdfPage.cpp",
"src/doc/PdfContents.cpp",
"src/doc/PdfFontMetricsFreetype.cpp",
"src/doc/PdfPagesTree.cpp",
"src/doc/PdfDestination.cpp",
"src/doc/PdfFontMetricsObject.cpp",
"src/doc/PdfPagesTreeCache.cpp",
"src/doc/PdfDifferenceEncoding.cpp",
"src/doc/PdfFontSimple.cpp",
"src/doc/PdfPainter.cpp",
"src/doc/PdfDocument.cpp",
"src/doc/PdfFontTTFSubset.cpp",
"src/doc/PdfPainterMM.cpp",
"src/doc/PdfElement.cpp",
"src/doc/PdfFontTrueType.cpp",
"src/doc/PdfShadingPattern.cpp",
"src/doc/PdfEncodingObjectFactory.cpp",
"src/doc/PdfFontType1.cpp",
"src/doc/PdfSignOutputDevice.cpp",
"src/doc/PdfExtGState.cpp",
"src/doc/PdfFontType1Base14.cpp",
"src/doc/PdfSignatureField.cpp",
"src/doc/PdfField.cpp",
"src/doc/PdfFunction.cpp",
"src/doc/PdfStreamedDocument.cpp",
"src/doc/PdfFileSpec.cpp",
"src/doc/PdfHintStream.cpp",
"src/doc/PdfFont.cpp",
"src/doc/PdfIdentityEncoding.cpp",
"src/doc/PdfTable.cpp",
"src/doc/PdfFontCID.cpp",
"src/doc/PdfImage.cpp",
"src/doc/PdfXObject.cpp",
"src/doc/PdfFontCache.cpp",
"src/doc/PdfInfo.cpp",
"src/base/PdfArray.cpp",
"src/base/PdfFiltersPrivate.cpp",
"src/base/PdfRect.cpp",
"src/base/PdfCanvas.cpp",
"src/base/PdfImmediateWriter.cpp",
"src/base/PdfRefCountedBuffer.cpp",
"src/base/PdfColor.cpp",
"src/base/PdfInputDevice.cpp",
"src/base/PdfRefCountedInputDevice.cpp",
"src/base/PdfContentsTokenizer.cpp",
"src/base/PdfInputStream.cpp",
"src/base/PdfReference.cpp",
"src/base/PdfData.cpp",
"src/base/PdfLocale.cpp",
"src/base/PdfRijndael.cpp",
"src/base/PdfDataType.cpp",
"src/base/PdfMemStream.cpp",
"src/base/PdfStream.cpp",
"src/base/PdfDate.cpp",
"src/base/PdfMemoryManagement.cpp",
"src/base/PdfString.cpp",
"src/base/PdfDictionary.cpp",
"src/base/PdfName.cpp",
"src/base/PdfTokenizer.cpp",
"src/base/PdfEncoding.cpp",
"src/base/PdfObject.cpp",
"src/base/PdfVariant.cpp",
"src/base/PdfEncodingFactory.cpp",
"src/base/PdfObjectStreamParserObject.cpp",
"src/base/PdfVecObjects.cpp",
"src/base/PdfEncrypt.cpp",
"src/base/PdfOutputDevice.cpp",
"src/base/PdfWriter.cpp",
"src/base/PdfError.cpp",
"src/base/PdfOutputStream.cpp",
"src/base/PdfXRef.cpp",
"src/base/PdfFileStream.cpp",
"src/base/PdfParser.cpp",
"src/base/PdfXRefStream.cpp",
"src/base/PdfFilter.cpp",
"src/base/PdfParserObject.cpp",
"src/base/PdfXRefStreamParserObject.cpp"],

"include_dirs" :
["External/freetype/include",
"./",
"src",
"src/base",
"src/doc",
"podofo-staticlib-osx/podofo/podofo" ],

"conditions" : [
['OS=="mac"',
{ "cflags_cc!": [ "-fno-exceptions" ],
"xcode_settings": {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'GCC_ENABLE_CPP_RTTI': 'YES',
'OTHER_CPLUSPLUSFLAGS' : ['-std=c++11','-stdlib=libc++'],
'MACOSX_DEPLOYMENT_TARGET': '10.7'
}
}],
['OS=="linux"', {
"cflags_cc!" : [ "-fno-exceptions", "-fno-rtti" ],
"cflags_cc" : [ "-std=c++0x" ]
}]
],
"link_settings" : { "libraries" : [ "-lz" ] },
'defines' : [ 'BUILDING_PODOFO', 'PODOFO_HAVE_FREETYPE', 'DEBUG_PODOFO' ],
'dependencies' : ['External/freetype/binding.gyp:freetype']
}]
}
Loading

0 comments on commit 4280199

Please sign in to comment.