This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
/
binding.gyp
140 lines (139 loc) · 3.84 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
{
'targets': [
{
'target_name': 'oniguruma',
'type': 'static_library',
'conditions': [
['OS=="win"', {
'msvs_disabled_warnings': [
4244, # conversion from '__int64' to 'int', possible loss of data
],
'defines': [
'ONIG_EXTERN=extern',
],
}],
['OS=="linux"', {
'cflags': [
'-w',
],
}],
],
'direct_dependent_settings': {
'include_dirs': [
'deps/onig'
],
},
'include_dirs': [
'deps/onig',
'deps/onig/enc',
],
'sources': [
'deps/onig/oniggnu.h',
'deps/onig/onigposix.h',
'deps/onig/oniguruma.h',
'deps/onig/regcomp.c',
'deps/onig/regenc.c',
'deps/onig/regenc.h',
'deps/onig/regerror.c',
'deps/onig/regexec.c',
'deps/onig/regext.c',
'deps/onig/reggnu.c',
'deps/onig/regint.h',
'deps/onig/regparse.c',
'deps/onig/regparse.h',
'deps/onig/regposerr.c',
'deps/onig/regposix.c',
'deps/onig/regsyntax.c',
'deps/onig/regtrav.c',
'deps/onig/regversion.c',
'deps/onig/st.c',
'deps/onig/st.c',
'deps/onig/enc/ascii.c',
'deps/onig/enc/big5.c',
'deps/onig/enc/cp1251.c',
'deps/onig/enc/euc_jp.c',
'deps/onig/enc/euc_kr.c',
'deps/onig/enc/euc_tw.c',
'deps/onig/enc/gb18030.c',
'deps/onig/enc/iso8859_1.c',
'deps/onig/enc/iso8859_2.c',
'deps/onig/enc/iso8859_3.c',
'deps/onig/enc/iso8859_4.c',
'deps/onig/enc/iso8859_5.c',
'deps/onig/enc/iso8859_6.c',
'deps/onig/enc/iso8859_7.c',
'deps/onig/enc/iso8859_8.c',
'deps/onig/enc/iso8859_9.c',
'deps/onig/enc/iso8859_10.c',
'deps/onig/enc/iso8859_11.c',
'deps/onig/enc/iso8859_13.c',
'deps/onig/enc/iso8859_14.c',
'deps/onig/enc/iso8859_15.c',
'deps/onig/enc/iso8859_16.c',
'deps/onig/enc/koi8.c',
'deps/onig/enc/koi8_r.c',
'deps/onig/enc/mktable.c',
'deps/onig/enc/sjis.c',
'deps/onig/enc/unicode.c',
'deps/onig/enc/utf16_be.c',
'deps/onig/enc/utf16_le.c',
'deps/onig/enc/utf32_be.c',
'deps/onig/enc/utf32_le.c',
'deps/onig/enc/utf8.c',
],
},
{
'target_name': 'onig_scanner',
'dependencies': [
'oniguruma'
],
'include_dirs': [ '<!(node -e "require(\'nan\')")' ],
'sources': [
'src/onig-result.cc',
'src/onig-reg-exp.cc',
'src/onig-scanner.cc',
'src/onig-scanner-worker.cc',
'src/onig-searcher.cc',
'src/onig-string.cc'
],
'conditions': [
['OS=="mac"', {
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS': ['-std=c++17', '-stdlib=libc++'],
'MACOSX_DEPLOYMENT_TARGET': '10.7.0',
}
}],
['OS in "linux solaris"', {
'cflags': [
'-std=c++17',
'-Wno-unused-result',
'-Wno-missing-field-initializers',
],
'cflags_cc!': [
'-fno-rtti'
]
}],
['OS=="win"', {
'msvs_disabled_warnings': [
4244, # conversion from 'double' to 'int', possible loss of data
4267, # conversion from 'size_t' to 'int', possible loss of data
4530, # C++ exception handler used, but unwind semantics are not enabled
],
'msvs_settings': {
'VCCLCompilerTool' : {
'AdditionalOptions' : ['/EHsc']
}
},
'defines': [
'ONIG_EXTERN=extern',
],
}],
['OS=="freebsd"', {
'cflags': [
'-std=c++17',
]
}]
]
}
]
}