|
11 | 11 | 'direct_dependent_settings': { |
12 | 12 | 'include_dirs': [ 'base64/include' ], |
13 | 13 | }, |
| 14 | + 'defines': [ 'BASE64_STATIC_DEFINE' ], |
14 | 15 | 'sources': [ |
15 | 16 | 'base64/include/libbase64.h', |
16 | 17 | 'base64/lib/arch/generic/codec.c', |
|
69 | 70 | 'type': 'static_library', |
70 | 71 | 'include_dirs': [ 'base64/include', 'base64/lib' ], |
71 | 72 | 'sources': [ 'base64/lib/arch/ssse3/codec.c' ], |
72 | | - 'defines': [ 'HAVE_SSSE3=1' ], |
| 73 | + 'defines': [ 'BASE64_STATIC_DEFINE', 'HAVE_SSSE3=1' ], |
73 | 74 | 'conditions': [ |
74 | 75 | [ 'OS!="win"', { |
75 | 76 | 'cflags': [ '-mssse3' ], |
|
85 | 86 | 'type': 'static_library', |
86 | 87 | 'include_dirs': [ 'base64/include', 'base64/lib' ], |
87 | 88 | 'sources': [ 'base64/lib/arch/sse41/codec.c' ], |
88 | | - 'defines': [ 'HAVE_SSE41=1' ], |
| 89 | + 'defines': [ 'BASE64_STATIC_DEFINE', 'HAVE_SSE41=1' ], |
89 | 90 | 'conditions': [ |
90 | 91 | [ 'OS!="win"', { |
91 | 92 | 'cflags': [ '-msse4.1' ], |
|
101 | 102 | 'type': 'static_library', |
102 | 103 | 'include_dirs': [ 'base64/include', 'base64/lib' ], |
103 | 104 | 'sources': [ 'base64/lib/arch/sse42/codec.c' ], |
104 | | - 'defines': [ 'HAVE_SSE42=1' ], |
| 105 | + 'defines': [ 'BASE64_STATIC_DEFINE', 'HAVE_SSE42=1' ], |
105 | 106 | 'conditions': [ |
106 | 107 | [ 'OS!="win"', { |
107 | 108 | 'cflags': [ '-msse4.2' ], |
|
117 | 118 | 'type': 'static_library', |
118 | 119 | 'include_dirs': [ 'base64/include', 'base64/lib' ], |
119 | 120 | 'sources': [ 'base64/lib/arch/avx/codec.c' ], |
120 | | - 'defines': [ 'HAVE_AVX=1' ], |
| 121 | + 'defines': [ 'BASE64_STATIC_DEFINE', 'HAVE_AVX=1' ], |
121 | 122 | 'conditions': [ |
122 | 123 | [ 'OS!="win"', { |
123 | 124 | 'cflags': [ '-mavx' ], |
124 | 125 | 'xcode_settings': { |
125 | 126 | 'OTHER_CFLAGS': [ '-mavx' ] |
126 | 127 | }, |
| 128 | + }, { |
| 129 | + 'msvs_settings': { |
| 130 | + 'VCCLCompilerTool': { |
| 131 | + 'AdditionalOptions': [ |
| 132 | + '/arch:AVX' |
| 133 | + ], |
| 134 | + }, |
| 135 | + }, |
127 | 136 | }], |
128 | 137 | ], |
129 | 138 | }, |
|
133 | 142 | 'type': 'static_library', |
134 | 143 | 'include_dirs': [ 'base64/include', 'base64/lib' ], |
135 | 144 | 'sources': [ 'base64/lib/arch/avx2/codec.c' ], |
136 | | - 'defines': [ 'HAVE_AVX2=1' ], |
| 145 | + 'defines': [ 'BASE64_STATIC_DEFINE', 'HAVE_AVX2=1' ], |
137 | 146 | 'conditions': [ |
138 | 147 | [ 'OS!="win"', { |
139 | 148 | 'cflags': [ '-mavx2' ], |
140 | 149 | 'xcode_settings': { |
141 | 150 | 'OTHER_CFLAGS': [ '-mavx2' ] |
142 | 151 | }, |
| 152 | + }, { |
| 153 | + 'msvs_settings': { |
| 154 | + 'VCCLCompilerTool': { |
| 155 | + 'AdditionalOptions': [ |
| 156 | + '/arch:AVX2' |
| 157 | + ], |
| 158 | + }, |
| 159 | + }, |
143 | 160 | }], |
144 | 161 | ], |
145 | 162 | }, |
|
149 | 166 | 'type': 'static_library', |
150 | 167 | 'include_dirs': [ 'base64/include', 'base64/lib' ], |
151 | 168 | 'sources': [ 'base64/lib/arch/neon32/codec.c' ], |
152 | | - 'defines': [ 'HAVE_NEON32=1' ], |
| 169 | + 'defines': [ 'BASE64_STATIC_DEFINE', 'HAVE_NEON32=1' ], |
153 | 170 | 'conditions': [ |
154 | 171 | [ 'OS!="win"', { |
155 | 172 | 'cflags': [ '-mfpu=neon' ], |
|
165 | 182 | 'type': 'static_library', |
166 | 183 | 'include_dirs': [ 'base64/include', 'base64/lib' ], |
167 | 184 | 'sources': [ 'base64/lib/arch/neon64/codec.c' ], |
168 | | - 'defines': [ 'HAVE_NEON64=1' ], |
| 185 | + 'defines': [ 'BASE64_STATIC_DEFINE', 'HAVE_NEON64=1' ], |
169 | 186 | # NEON is required in arm64, so no -mfpu flag is needed |
170 | 187 | } |
171 | 188 |
|
|
0 commit comments