forked from BinaryMuse/node-cmark-gfm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
101 lines (101 loc) · 2.66 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
{
'targets': [
{
'target_name': 'libcmark-gfm',
'type': 'static_library',
'cflags': [
'-std=c99'
],
'defines': [
'CMARK_GFM_STATIC_DEFINE',
'CMARK_GFM_EXTENSIONS_STATIC_DEFINE'
],
'include_dirs': [
'vendor/cmark'
],
'sources': [
'vendor/cmark/arena.c',
'vendor/cmark/blocks.c',
'vendor/cmark/buffer.c',
'vendor/cmark/cmark.c',
'vendor/cmark/cmark_ctype.c',
'vendor/cmark/commonmark.c',
'vendor/cmark/footnotes.c',
'vendor/cmark/houdini_href_e.c',
'vendor/cmark/houdini_html_e.c',
'vendor/cmark/houdini_html_u.c',
'vendor/cmark/html.c',
'vendor/cmark/inlines.c',
'vendor/cmark/iterator.c',
'vendor/cmark/latex.c',
'vendor/cmark/linked_list.c',
'vendor/cmark/man.c',
'vendor/cmark/map.c',
'vendor/cmark/node.c',
'vendor/cmark/plaintext.c',
'vendor/cmark/plugin.c',
'vendor/cmark/references.c',
'vendor/cmark/registry.c',
'vendor/cmark/render.c',
'vendor/cmark/scanners.c',
'vendor/cmark/syntax_extension.c',
'vendor/cmark/utf8.c',
'vendor/cmark/xml.c',
'vendor/cmark/autolink.c',
'vendor/cmark/core-extensions.c',
'vendor/cmark/ext_scanners.c',
'vendor/cmark/strikethrough.c',
'vendor/cmark/table.c',
'vendor/cmark/tagfilter.c',
'vendor/cmark/tasklist.c',
]
},
{
'target_name': 'binding',
'defines': [
'NAPI_DISABLE_CPP_EXCEPTIONS',
'CMARK_GFM_STATIC_DEFINE',
'CMARK_GFM_EXTENSIONS_STATIC_DEFINE'
],
'dependencies': [
'libcmark-gfm',
"<!(node -p \"require('node-addon-api').gyp\")"
],
'cflags': [
'-std=c++11'
],
'include_dirs': [
"<!@(node -p \"require('node-addon-api').include\")",
'src',
'vendor/cmark'
],
'sources': [
'src/markdown.cc',
'src/sync.cc',
'src/streaming_parser.cc',
'src/binding.cc',
],
'conditions': [
['OS=="win"', {
'link_settings': {
'libraries': [
'<(PRODUCT_DIR)/libcmark-gfm.lib'
]
}
}, {
'link_settings': {
'libraries': [
'<(PRODUCT_DIR)/cmark-gfm.a'
]
}
}]
],
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.8',
'CLANG_CXX_LIBRARY': 'libc++',
'CLANG_CXX_LANGUAGE_STANDARD': 'c++11',
'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0'
}
}
]
}