forked from julianhille/MuhammaraJS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
111 lines (109 loc) · 3.62 KB
/
binding.gyp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
'targets': [
{
'target_name': 'muhammara',
'type': 'loadable_module',
'product_extension': 'node',
'dependencies': [
'./src/deps/PDFWriter/binding.gyp:pdfwriter'
],
"cflags_cc": [ "-std=c++17" ],
"cflags": [ "-std=c++17" ],
'include_dirs': [
'./src',
'./src/deps/PDFWriter',
'./src/deps/FreeType/include'
],
'msvs_settings':
{
'VCCLCompilerTool':
{
'AdditionalOptions':
[
'/std:c++17',
]
}
},
'conditions': [
['OS=="mac"', {
'xcode_settings': {
'CLANG_CXX_LIBRARY': 'libc++',
"OTHER_CFLAGS": [ "-std=c++17"]
}
}],
['OS=="win"', {
'defines!': [
'V8_DEPRECATION_WARNINGS=1',
'V8_DEPRECATION_WARNINGS',
'V8_IMMINENT_DEPRECATION_WARNINGS',
'V8_IMMINENT_DEPRECATION_WARNINGS=1'
],
}, { # OS != "win",
'defines': [
],
}]
],
'sources': [
'./src/ConstructorsHolder.cpp',
'./src/PDFStreamDriver.cpp',
'./src/DictionaryContextDriver.cpp',
'./src/PDFTextStringDriver.cpp',
'./src/PDFDateDriver.cpp',
'./src/PDFArrayDriver.cpp',
'./src/PDFDictionaryDriver.cpp',
'./src/PDFStreamInputDriver.cpp',
'./src/PDFIndirectObjectReferenceDriver.cpp',
'./src/PDFBooleanDriver.cpp',
'./src/PDFLiteralStringDriver.cpp',
'./src/PDFHexStringDriver.cpp',
'./src/PDFNullDriver.cpp',
'./src/PDFNameDriver.cpp',
'./src/PDFIntegerDriver.cpp',
'./src/PDFRealDriver.cpp',
'./src/PDFSymbolDriver.cpp',
'./src/PDFObjectDriver.cpp',
'./src/PDFReaderDriver.cpp',
'./src/DocumentCopyingContextDriver.cpp',
'./src/ObjectsContextDriver.cpp',
'./src/DocumentContextDriver.cpp',
'./src/ImageXObjectDriver.cpp',
'./src/UsedFontDriver.cpp',
'./src/ResourcesDictionaryDriver.cpp',
'./src/XObjectContentContextDriver.cpp',
'./src/FormXObjectDriver.cpp',
'./src/AbstractContentContextDriver.cpp',
'./src/PageContentContextDriver.cpp',
'./src/PDFPageDriver.cpp',
'./src/PDFPageModifierDriver.cpp',
'./src/PDFWriterDriver.cpp',
'./src/PDFPageInputDriver.cpp',
'./src/InputFileDriver.cpp',
'./src/OutputFileDriver.cpp',
'./src/InfoDictionaryDriver.cpp',
'./src/ByteReaderDriver.cpp',
'./src/ByteReaderWithPositionDriver.cpp',
'./src/ByteWriterDriver.cpp',
'./src/ByteWriterWithPositionDriver.cpp',
'./src/ObjectByteReader.cpp',
'./src/ObjectByteReaderWithPosition.cpp',
'./src/ObjectByteWriter.cpp',
'./src/ObjectByteWriterWithPosition.cpp',
'./src/PDFObjectParserDriver.cpp',
'./src/muhammara.cpp'
]
},
{
'target_name': 'action_after_build',
'type': 'none',
'dependencies': [ '<(module_name)' ],
'copies': [
{
'files': [
'<(PRODUCT_DIR)/muhammara.node'
],
'destination': '<(module_path)'
}
]
}
]
}