Skip to content

Commit 2aaf1f6

Browse files
committed
windows issue wip
1 parent 08a1c76 commit 2aaf1f6

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

deps/base64/base64.gyp

+24-7
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
'direct_dependent_settings': {
1212
'include_dirs': [ 'base64/include' ],
1313
},
14+
'defines': [ 'BASE64_STATIC_DEFINE' ],
1415
'sources': [
1516
'base64/include/libbase64.h',
1617
'base64/lib/arch/generic/codec.c',
@@ -69,7 +70,7 @@
6970
'type': 'static_library',
7071
'include_dirs': [ 'base64/include', 'base64/lib' ],
7172
'sources': [ 'base64/lib/arch/ssse3/codec.c' ],
72-
'defines': [ 'HAVE_SSSE3=1' ],
73+
'defines': [ 'BASE64_STATIC_DEFINE', 'HAVE_SSSE3=1' ],
7374
'conditions': [
7475
[ 'OS!="win"', {
7576
'cflags': [ '-mssse3' ],
@@ -85,7 +86,7 @@
8586
'type': 'static_library',
8687
'include_dirs': [ 'base64/include', 'base64/lib' ],
8788
'sources': [ 'base64/lib/arch/sse41/codec.c' ],
88-
'defines': [ 'HAVE_SSE41=1' ],
89+
'defines': [ 'BASE64_STATIC_DEFINE', 'HAVE_SSE41=1' ],
8990
'conditions': [
9091
[ 'OS!="win"', {
9192
'cflags': [ '-msse4.1' ],
@@ -101,7 +102,7 @@
101102
'type': 'static_library',
102103
'include_dirs': [ 'base64/include', 'base64/lib' ],
103104
'sources': [ 'base64/lib/arch/sse42/codec.c' ],
104-
'defines': [ 'HAVE_SSE42=1' ],
105+
'defines': [ 'BASE64_STATIC_DEFINE', 'HAVE_SSE42=1' ],
105106
'conditions': [
106107
[ 'OS!="win"', {
107108
'cflags': [ '-msse4.2' ],
@@ -117,13 +118,21 @@
117118
'type': 'static_library',
118119
'include_dirs': [ 'base64/include', 'base64/lib' ],
119120
'sources': [ 'base64/lib/arch/avx/codec.c' ],
120-
'defines': [ 'HAVE_AVX=1' ],
121+
'defines': [ 'BASE64_STATIC_DEFINE', 'HAVE_AVX=1' ],
121122
'conditions': [
122123
[ 'OS!="win"', {
123124
'cflags': [ '-mavx' ],
124125
'xcode_settings': {
125126
'OTHER_CFLAGS': [ '-mavx' ]
126127
},
128+
}, {
129+
'msvs_settings': {
130+
'VCCLCompilerTool': {
131+
'AdditionalOptions': [
132+
'/arch:AVX'
133+
],
134+
},
135+
},
127136
}],
128137
],
129138
},
@@ -133,13 +142,21 @@
133142
'type': 'static_library',
134143
'include_dirs': [ 'base64/include', 'base64/lib' ],
135144
'sources': [ 'base64/lib/arch/avx2/codec.c' ],
136-
'defines': [ 'HAVE_AVX2=1' ],
145+
'defines': [ 'BASE64_STATIC_DEFINE', 'HAVE_AVX2=1' ],
137146
'conditions': [
138147
[ 'OS!="win"', {
139148
'cflags': [ '-mavx2' ],
140149
'xcode_settings': {
141150
'OTHER_CFLAGS': [ '-mavx2' ]
142151
},
152+
}, {
153+
'msvs_settings': {
154+
'VCCLCompilerTool': {
155+
'AdditionalOptions': [
156+
'/arch:AVX2'
157+
],
158+
},
159+
},
143160
}],
144161
],
145162
},
@@ -149,7 +166,7 @@
149166
'type': 'static_library',
150167
'include_dirs': [ 'base64/include', 'base64/lib' ],
151168
'sources': [ 'base64/lib/arch/neon32/codec.c' ],
152-
'defines': [ 'HAVE_NEON32=1' ],
169+
'defines': [ 'BASE64_STATIC_DEFINE', 'HAVE_NEON32=1' ],
153170
'conditions': [
154171
[ 'OS!="win"', {
155172
'cflags': [ '-mfpu=neon' ],
@@ -165,7 +182,7 @@
165182
'type': 'static_library',
166183
'include_dirs': [ 'base64/include', 'base64/lib' ],
167184
'sources': [ 'base64/lib/arch/neon64/codec.c' ],
168-
'defines': [ 'HAVE_NEON64=1' ],
185+
'defines': [ 'BASE64_STATIC_DEFINE', 'HAVE_NEON64=1' ],
169186
# NEON is required in arm64, so no -mfpu flag is needed
170187
}
171188

0 commit comments

Comments
 (0)