Skip to content

Commit

Permalink
windows issue wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mscdex committed Jul 10, 2022
1 parent 08a1c76 commit eed8c55
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions deps/base64/base64.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
'include_dirs': [ 'base64/include', 'base64/lib' ],
'direct_dependent_settings': {
'include_dirs': [ 'base64/include' ],
'defines': [ 'BASE64_STATIC_DEFINE' ],
},
'defines': [ 'BASE64_STATIC_DEFINE' ],
'sources': [
'base64/include/libbase64.h',
'base64/lib/arch/generic/codec.c',
Expand Down Expand Up @@ -69,7 +71,7 @@
'type': 'static_library',
'include_dirs': [ 'base64/include', 'base64/lib' ],
'sources': [ 'base64/lib/arch/ssse3/codec.c' ],
'defines': [ 'HAVE_SSSE3=1' ],
'defines': [ 'BASE64_STATIC_DEFINE', 'HAVE_SSSE3=1' ],
'conditions': [
[ 'OS!="win"', {
'cflags': [ '-mssse3' ],
Expand All @@ -85,7 +87,7 @@
'type': 'static_library',
'include_dirs': [ 'base64/include', 'base64/lib' ],
'sources': [ 'base64/lib/arch/sse41/codec.c' ],
'defines': [ 'HAVE_SSE41=1' ],
'defines': [ 'BASE64_STATIC_DEFINE', 'HAVE_SSE41=1' ],
'conditions': [
[ 'OS!="win"', {
'cflags': [ '-msse4.1' ],
Expand All @@ -101,7 +103,7 @@
'type': 'static_library',
'include_dirs': [ 'base64/include', 'base64/lib' ],
'sources': [ 'base64/lib/arch/sse42/codec.c' ],
'defines': [ 'HAVE_SSE42=1' ],
'defines': [ 'BASE64_STATIC_DEFINE', 'HAVE_SSE42=1' ],
'conditions': [
[ 'OS!="win"', {
'cflags': [ '-msse4.2' ],
Expand All @@ -117,13 +119,21 @@
'type': 'static_library',
'include_dirs': [ 'base64/include', 'base64/lib' ],
'sources': [ 'base64/lib/arch/avx/codec.c' ],
'defines': [ 'HAVE_AVX=1' ],
'defines': [ 'BASE64_STATIC_DEFINE', 'HAVE_AVX=1' ],
'conditions': [
[ 'OS!="win"', {
'cflags': [ '-mavx' ],
'xcode_settings': {
'OTHER_CFLAGS': [ '-mavx' ]
},
}, {
'msvs_settings': {
'VCCLCompilerTool': {
'AdditionalOptions': [
'/arch:AVX'
],
},
},
}],
],
},
Expand All @@ -133,13 +143,21 @@
'type': 'static_library',
'include_dirs': [ 'base64/include', 'base64/lib' ],
'sources': [ 'base64/lib/arch/avx2/codec.c' ],
'defines': [ 'HAVE_AVX2=1' ],
'defines': [ 'BASE64_STATIC_DEFINE', 'HAVE_AVX2=1' ],
'conditions': [
[ 'OS!="win"', {
'cflags': [ '-mavx2' ],
'xcode_settings': {
'OTHER_CFLAGS': [ '-mavx2' ]
},
}, {
'msvs_settings': {
'VCCLCompilerTool': {
'AdditionalOptions': [
'/arch:AVX2'
],
},
},
}],
],
},
Expand All @@ -149,7 +167,7 @@
'type': 'static_library',
'include_dirs': [ 'base64/include', 'base64/lib' ],
'sources': [ 'base64/lib/arch/neon32/codec.c' ],
'defines': [ 'HAVE_NEON32=1' ],
'defines': [ 'BASE64_STATIC_DEFINE', 'HAVE_NEON32=1' ],
'conditions': [
[ 'OS!="win"', {
'cflags': [ '-mfpu=neon' ],
Expand All @@ -165,7 +183,7 @@
'type': 'static_library',
'include_dirs': [ 'base64/include', 'base64/lib' ],
'sources': [ 'base64/lib/arch/neon64/codec.c' ],
'defines': [ 'HAVE_NEON64=1' ],
'defines': [ 'BASE64_STATIC_DEFINE', 'HAVE_NEON64=1' ],
# NEON is required in arm64, so no -mfpu flag is needed
}

Expand Down

0 comments on commit eed8c55

Please sign in to comment.