blob: cb0a2fbab191acc8aba36d2051d592f7cea8d4ae [file] [log] [blame]
murgatroid99fd994f12015-10-09 14:02:28 -07001# GRPC Node gyp file
2# This currently builds the Node extension and dependencies
3# This file has been automatically generated from a template file.
4# Please look at the templates directory instead.
5# This file can be regenerated from the template by running
6# tools/buildgen/generate_projects.sh
7
Jan Tattermusch4d5c3102017-06-07 10:23:56 +02008# Copyright 2015 gRPC authors.
murgatroid99f33b1322015-10-05 09:45:04 -07009#
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020010# Licensed under the Apache License, Version 2.0 (the "License");
11# you may not use this file except in compliance with the License.
12# You may obtain a copy of the License at
murgatroid99f33b1322015-10-05 09:45:04 -070013#
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020014# http://www.apache.org/licenses/LICENSE-2.0
murgatroid99f33b1322015-10-05 09:45:04 -070015#
Jan Tattermusch4d5c3102017-06-07 10:23:56 +020016# Unless required by applicable law or agreed to in writing, software
17# distributed under the License is distributed on an "AS IS" BASIS,
18# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19# See the License for the specific language governing permissions and
20# limitations under the License.
murgatroid99fd994f12015-10-09 14:02:28 -070021
22# Some of this file is built with the help of
23# https://n8.io/converting-a-c-library-to-gyp/
murgatroid992af89e42015-10-01 11:54:00 -070024{
murgatroid99dc230462016-10-25 14:12:42 -070025 'variables': {
murgatroid991191b722017-02-08 11:56:52 -080026 'runtime%': 'node',
murgatroid99a99c9472017-03-02 11:32:08 -080027 # Some Node installations use the system installation of OpenSSL, and on
28 # some systems, the system OpenSSL still does not have ALPN support. This
29 # will let users recompile gRPC to work without ALPN.
murgatroid99fef39132017-03-23 17:45:21 -070030 'grpc_alpn%': 'true',
31 # Indicates that the library should be built with gcov.
murgatroid9998058332017-04-19 10:25:34 -070032 'grpc_gcov%': 'false',
33 # Indicates that the library should be built with compatibility for musl
34 # libc, so that it can run on Alpine Linux. This is only necessary if not
35 # building on Alpine Linux
36 'grpc_alpine%': 'false'
murgatroid99dc230462016-10-25 14:12:42 -070037 },
murgatroid99fd994f12015-10-09 14:02:28 -070038 'target_defaults': {
murgatroid99fef39132017-03-23 17:45:21 -070039 'configurations': {
40 'Release': {
41 'cflags': [
42 '-O2',
43 ],
44 'defines': [
45 'NDEBUG',
46 ],
47 },
48 'Debug': {
49 'cflags': [
50 '-O0',
51 ],
52 'defines': [
53 '_DEBUG',
54 'DEBUG',
55 ],
56 },
57 },
58 'cflags': [
59 '-g',
60 '-Wall',
61 '-Wextra',
62 '-Werror',
63 '-Wno-long-long',
64 '-Wno-unused-parameter',
65 '-DOSATOMIC_USE_INLINED=1',
66 ],
67 'ldflags': [
68 '-g',
69 ],
murgatroid9932de20c2017-07-06 16:58:11 -070070 'cflags_c': [
71 '-Werror',
72 '-std=c99'
73 ],
74 'cflags_cc': [
75 '-Werror',
76 '-std=c++11'
77 ],
murgatroid99fd994f12015-10-09 14:02:28 -070078 'include_dirs': [
79 '.',
murgatroid995c56c922016-01-25 13:32:52 -080080 'include'
murgatroid99a89d9e72015-10-13 16:03:16 -070081 ],
murgatroid999030c812016-09-16 13:25:08 -070082 'defines': [
murgatroid99f94f64f2017-04-24 13:35:21 -070083 'GPR_BACKWARDS_COMPATIBILITY_MODE',
84 'GRPC_ARES=0',
85 'GRPC_UV'
murgatroid999030c812016-09-16 13:25:08 -070086 ],
murgatroid99a89d9e72015-10-13 16:03:16 -070087 'conditions': [
murgatroid99fef39132017-03-23 17:45:21 -070088 ['grpc_gcov=="true"', {
89 'cflags': [
90 '-O0',
91 '-fprofile-arcs',
92 '-ftest-coverage',
93 '-Wno-return-type',
94 ],
95 'defines': [
96 '_DEBUG',
97 'DEBUG',
98 'GPR_GCOV',
99 ],
100 'ldflags': [
101 '-fprofile-arcs',
102 '-ftest-coverage',
103 '-rdynamic',
104 ],
105 }],
murgatroid9998058332017-04-19 10:25:34 -0700106 ['grpc_alpine=="true"', {
107 'defines': [
108 'GPR_MUSL_LIBC_COMPAT'
109 ]
110 }],
murgatroid99e8ec16d2017-01-13 11:00:53 -0800111 ['OS!="win" and runtime=="electron"', {
Michael Lumish88162f82017-01-12 17:37:58 -0800112 "defines": [
113 'OPENSSL_NO_THREADS'
114 ]
115 }],
murgatroid99dc230462016-10-25 14:12:42 -0700116 # This is the condition for using boringssl
117 ['OS=="win" or runtime=="electron"', {
118 "include_dirs": [
119 "third_party/boringssl/include"
120 ],
121 "defines": [
Michael Lumish88162f82017-01-12 17:37:58 -0800122 'OPENSSL_NO_ASM'
murgatroid99dc230462016-10-25 14:12:42 -0700123 ]
124 }, {
murgatroid99a99c9472017-03-02 11:32:08 -0800125 'conditions': [
Yaron Shani8d1cfdc2017-05-22 14:43:05 +0300126 ["target_arch=='ia32'", {
Yaron Shani1d9a11b2017-05-22 23:00:46 -0700127 "include_dirs": [ "<(node_root_dir)/deps/openssl/config/piii" ]
Yaron Shani8d1cfdc2017-05-22 14:43:05 +0300128 }],
129 ["target_arch=='x64'", {
Yaron Shani1d9a11b2017-05-22 23:00:46 -0700130 "include_dirs": [ "<(node_root_dir)/deps/openssl/config/k8" ]
Yaron Shani8d1cfdc2017-05-22 14:43:05 +0300131 }],
132 ["target_arch=='arm'", {
Yaron Shani1d9a11b2017-05-22 23:00:46 -0700133 "include_dirs": [ "<(node_root_dir)/deps/openssl/config/arm" ]
Yaron Shani8d1cfdc2017-05-22 14:43:05 +0300134 }],
murgatroid99a99c9472017-03-02 11:32:08 -0800135 ['grpc_alpn=="true"', {
136 'defines': [
137 'TSI_OPENSSL_ALPN_SUPPORT=1'
138 ],
139 }, {
140 'defines': [
141 'TSI_OPENSSL_ALPN_SUPPORT=0'
142 ],
143 }]
murgatroid99dc230462016-10-25 14:12:42 -0700144 ],
145 'include_dirs': [
146 '<(node_root_dir)/deps/openssl/openssl/include',
murgatroid99dc230462016-10-25 14:12:42 -0700147 ]
148 }],
murgatroid995c56c922016-01-25 13:32:52 -0800149 ['OS == "win"', {
murgatroid99673f65b2016-02-01 11:19:07 -0800150 "include_dirs": [
Yuchen Zengb48000c2016-08-09 22:44:23 -0700151 "third_party/zlib",
Yuchen Zeng6694bb02017-01-23 17:09:51 -0800152 "third_party/cares/cares"
murgatroid99673f65b2016-02-01 11:19:07 -0800153 ],
Michael Lumishe2f34652016-01-27 16:41:54 -0800154 "defines": [
155 '_WIN32_WINNT=0x0600',
156 'WIN32_LEAN_AND_MEAN',
157 '_HAS_EXCEPTIONS=0',
158 'UNICODE',
159 '_UNICODE',
160 'NOMINMAX',
Michael Lumishe2f34652016-01-27 16:41:54 -0800161 ],
162 "msvs_settings": {
163 'VCCLCompilerTool': {
164 'RuntimeLibrary': 1, # static debug
165 }
166 },
167 "libraries": [
168 "ws2_32"
169 ]
170 }, { # OS != "win"
murgatroid995c56c922016-01-25 13:32:52 -0800171 'include_dirs': [
Yuchen Zengb48000c2016-08-09 22:44:23 -0700172 '<(node_root_dir)/deps/zlib',
Michael Lumish68dff872017-04-03 11:16:41 -0700173 '<(node_root_dir)/deps/cares/include'
murgatroid99a89d9e72015-10-13 16:03:16 -0700174 ]
murgatroid9932de20c2017-07-06 16:58:11 -0700175 }],
176 ['OS == "mac"', {
177 'xcode_settings': {
murgatroid99e9295472017-07-19 15:58:40 -0700178 'OTHER_CFLAGS': [
179 '-g',
180 '-Wall',
181 '-Wextra',
182 '-Werror',
183 '-Wno-long-long',
184 '-Wno-unused-parameter',
185 '-DOSATOMIC_USE_INLINED=1',
186 ],
187 'OTHER_CPLUSPLUSFLAGS': [
188 '-g',
189 '-Wall',
190 '-Wextra',
191 '-Werror',
192 '-Wno-long-long',
193 '-Wno-unused-parameter',
194 '-DOSATOMIC_USE_INLINED=1',
195 '-stdlib=libc++',
murgatroid99655c8b12017-07-20 10:23:43 -0700196 '-std=c++11',
197 '-Wno-error=deprecated-declarations'
murgatroid99e9295472017-07-19 15:58:40 -0700198 ],
murgatroid9932de20c2017-07-06 16:58:11 -0700199 },
murgatroid99afe46982015-10-23 10:17:26 -0700200 }]
murgatroid99fd994f12015-10-09 14:02:28 -0700201 ]
202 },
murgatroid995c56c922016-01-25 13:32:52 -0800203 'conditions': [
murgatroid99dc230462016-10-25 14:12:42 -0700204 ['OS=="win" or runtime=="electron"', {
murgatroid995c56c922016-01-25 13:32:52 -0800205 'targets': [
murgatroid99af6c1782016-01-28 13:14:24 -0800206 {
murgatroid995c56c922016-01-25 13:32:52 -0800207 'target_name': 'boringssl',
208 'product_prefix': 'lib',
209 'type': 'static_library',
210 'dependencies': [
211 ],
212 'sources': [
213 'src/boringssl/err_data.c',
214 'third_party/boringssl/crypto/aes/aes.c',
Ken Paysonf8d6fb72017-06-15 17:32:49 -0700215 'third_party/boringssl/crypto/aes/key_wrap.c',
murgatroid995c56c922016-01-25 13:32:52 -0800216 'third_party/boringssl/crypto/aes/mode_wrappers.c',
217 'third_party/boringssl/crypto/asn1/a_bitstr.c',
218 'third_party/boringssl/crypto/asn1/a_bool.c',
murgatroid995c56c922016-01-25 13:32:52 -0800219 'third_party/boringssl/crypto/asn1/a_d2i_fp.c',
220 'third_party/boringssl/crypto/asn1/a_dup.c',
221 'third_party/boringssl/crypto/asn1/a_enum.c',
222 'third_party/boringssl/crypto/asn1/a_gentm.c',
223 'third_party/boringssl/crypto/asn1/a_i2d_fp.c',
224 'third_party/boringssl/crypto/asn1/a_int.c',
225 'third_party/boringssl/crypto/asn1/a_mbstr.c',
226 'third_party/boringssl/crypto/asn1/a_object.c',
227 'third_party/boringssl/crypto/asn1/a_octet.c',
228 'third_party/boringssl/crypto/asn1/a_print.c',
229 'third_party/boringssl/crypto/asn1/a_strnid.c',
230 'third_party/boringssl/crypto/asn1/a_time.c',
231 'third_party/boringssl/crypto/asn1/a_type.c',
232 'third_party/boringssl/crypto/asn1/a_utctm.c',
233 'third_party/boringssl/crypto/asn1/a_utf8.c',
234 'third_party/boringssl/crypto/asn1/asn1_lib.c',
235 'third_party/boringssl/crypto/asn1/asn1_par.c',
236 'third_party/boringssl/crypto/asn1/asn_pack.c',
murgatroid995c56c922016-01-25 13:32:52 -0800237 'third_party/boringssl/crypto/asn1/f_enum.c',
238 'third_party/boringssl/crypto/asn1/f_int.c',
239 'third_party/boringssl/crypto/asn1/f_string.c',
240 'third_party/boringssl/crypto/asn1/t_bitst.c',
murgatroid995c56c922016-01-25 13:32:52 -0800241 'third_party/boringssl/crypto/asn1/tasn_dec.c',
242 'third_party/boringssl/crypto/asn1/tasn_enc.c',
243 'third_party/boringssl/crypto/asn1/tasn_fre.c',
244 'third_party/boringssl/crypto/asn1/tasn_new.c',
murgatroid995c56c922016-01-25 13:32:52 -0800245 'third_party/boringssl/crypto/asn1/tasn_typ.c',
246 'third_party/boringssl/crypto/asn1/tasn_utl.c',
Ken Paysonf8d6fb72017-06-15 17:32:49 -0700247 'third_party/boringssl/crypto/asn1/time_support.c',
murgatroid995c56c922016-01-25 13:32:52 -0800248 'third_party/boringssl/crypto/asn1/x_bignum.c',
249 'third_party/boringssl/crypto/asn1/x_long.c',
250 'third_party/boringssl/crypto/base64/base64.c',
251 'third_party/boringssl/crypto/bio/bio.c',
252 'third_party/boringssl/crypto/bio/bio_mem.c',
murgatroid995c56c922016-01-25 13:32:52 -0800253 'third_party/boringssl/crypto/bio/connect.c',
254 'third_party/boringssl/crypto/bio/fd.c',
255 'third_party/boringssl/crypto/bio/file.c',
256 'third_party/boringssl/crypto/bio/hexdump.c',
257 'third_party/boringssl/crypto/bio/pair.c',
258 'third_party/boringssl/crypto/bio/printf.c',
259 'third_party/boringssl/crypto/bio/socket.c',
260 'third_party/boringssl/crypto/bio/socket_helper.c',
261 'third_party/boringssl/crypto/bn/add.c',
262 'third_party/boringssl/crypto/bn/asm/x86_64-gcc.c',
263 'third_party/boringssl/crypto/bn/bn.c',
264 'third_party/boringssl/crypto/bn/bn_asn1.c',
265 'third_party/boringssl/crypto/bn/cmp.c',
266 'third_party/boringssl/crypto/bn/convert.c',
267 'third_party/boringssl/crypto/bn/ctx.c',
268 'third_party/boringssl/crypto/bn/div.c',
269 'third_party/boringssl/crypto/bn/exponentiation.c',
270 'third_party/boringssl/crypto/bn/gcd.c',
271 'third_party/boringssl/crypto/bn/generic.c',
272 'third_party/boringssl/crypto/bn/kronecker.c',
273 'third_party/boringssl/crypto/bn/montgomery.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800274 'third_party/boringssl/crypto/bn/montgomery_inv.c',
murgatroid995c56c922016-01-25 13:32:52 -0800275 'third_party/boringssl/crypto/bn/mul.c',
276 'third_party/boringssl/crypto/bn/prime.c',
277 'third_party/boringssl/crypto/bn/random.c',
278 'third_party/boringssl/crypto/bn/rsaz_exp.c',
279 'third_party/boringssl/crypto/bn/shift.c',
280 'third_party/boringssl/crypto/bn/sqrt.c',
281 'third_party/boringssl/crypto/buf/buf.c',
itessier2a522032016-04-19 17:38:51 -0700282 'third_party/boringssl/crypto/bytestring/asn1_compat.c',
murgatroid995c56c922016-01-25 13:32:52 -0800283 'third_party/boringssl/crypto/bytestring/ber.c',
284 'third_party/boringssl/crypto/bytestring/cbb.c',
285 'third_party/boringssl/crypto/bytestring/cbs.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800286 'third_party/boringssl/crypto/chacha/chacha.c',
murgatroid995c56c922016-01-25 13:32:52 -0800287 'third_party/boringssl/crypto/cipher/aead.c',
288 'third_party/boringssl/crypto/cipher/cipher.c',
289 'third_party/boringssl/crypto/cipher/derive_key.c',
290 'third_party/boringssl/crypto/cipher/e_aes.c',
291 'third_party/boringssl/crypto/cipher/e_chacha20poly1305.c',
292 'third_party/boringssl/crypto/cipher/e_des.c',
293 'third_party/boringssl/crypto/cipher/e_null.c',
294 'third_party/boringssl/crypto/cipher/e_rc2.c',
295 'third_party/boringssl/crypto/cipher/e_rc4.c',
296 'third_party/boringssl/crypto/cipher/e_ssl3.c',
297 'third_party/boringssl/crypto/cipher/e_tls.c',
298 'third_party/boringssl/crypto/cipher/tls_cbc.c',
299 'third_party/boringssl/crypto/cmac/cmac.c',
300 'third_party/boringssl/crypto/conf/conf.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800301 'third_party/boringssl/crypto/cpu-aarch64-linux.c',
302 'third_party/boringssl/crypto/cpu-arm-linux.c',
murgatroid995c56c922016-01-25 13:32:52 -0800303 'third_party/boringssl/crypto/cpu-arm.c',
304 'third_party/boringssl/crypto/cpu-intel.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800305 'third_party/boringssl/crypto/cpu-ppc64le.c',
murgatroid995c56c922016-01-25 13:32:52 -0800306 'third_party/boringssl/crypto/crypto.c',
307 'third_party/boringssl/crypto/curve25519/curve25519.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800308 'third_party/boringssl/crypto/curve25519/spake25519.c',
itessier2a522032016-04-19 17:38:51 -0700309 'third_party/boringssl/crypto/curve25519/x25519-x86_64.c',
murgatroid995c56c922016-01-25 13:32:52 -0800310 'third_party/boringssl/crypto/des/des.c',
311 'third_party/boringssl/crypto/dh/check.c',
312 'third_party/boringssl/crypto/dh/dh.c',
313 'third_party/boringssl/crypto/dh/dh_asn1.c',
314 'third_party/boringssl/crypto/dh/params.c',
315 'third_party/boringssl/crypto/digest/digest.c',
316 'third_party/boringssl/crypto/digest/digests.c',
murgatroid995c56c922016-01-25 13:32:52 -0800317 'third_party/boringssl/crypto/dsa/dsa.c',
318 'third_party/boringssl/crypto/dsa/dsa_asn1.c',
319 'third_party/boringssl/crypto/ec/ec.c',
320 'third_party/boringssl/crypto/ec/ec_asn1.c',
321 'third_party/boringssl/crypto/ec/ec_key.c',
322 'third_party/boringssl/crypto/ec/ec_montgomery.c',
323 'third_party/boringssl/crypto/ec/oct.c',
324 'third_party/boringssl/crypto/ec/p224-64.c',
325 'third_party/boringssl/crypto/ec/p256-64.c',
326 'third_party/boringssl/crypto/ec/p256-x86_64.c',
327 'third_party/boringssl/crypto/ec/simple.c',
328 'third_party/boringssl/crypto/ec/util-64.c',
329 'third_party/boringssl/crypto/ec/wnaf.c',
330 'third_party/boringssl/crypto/ecdh/ecdh.c',
331 'third_party/boringssl/crypto/ecdsa/ecdsa.c',
332 'third_party/boringssl/crypto/ecdsa/ecdsa_asn1.c',
333 'third_party/boringssl/crypto/engine/engine.c',
334 'third_party/boringssl/crypto/err/err.c',
murgatroid995c56c922016-01-25 13:32:52 -0800335 'third_party/boringssl/crypto/evp/digestsign.c',
336 'third_party/boringssl/crypto/evp/evp.c',
337 'third_party/boringssl/crypto/evp/evp_asn1.c',
338 'third_party/boringssl/crypto/evp/evp_ctx.c',
339 'third_party/boringssl/crypto/evp/p_dsa_asn1.c',
340 'third_party/boringssl/crypto/evp/p_ec.c',
341 'third_party/boringssl/crypto/evp/p_ec_asn1.c',
342 'third_party/boringssl/crypto/evp/p_rsa.c',
343 'third_party/boringssl/crypto/evp/p_rsa_asn1.c',
344 'third_party/boringssl/crypto/evp/pbkdf.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800345 'third_party/boringssl/crypto/evp/print.c',
murgatroid995c56c922016-01-25 13:32:52 -0800346 'third_party/boringssl/crypto/evp/sign.c',
347 'third_party/boringssl/crypto/ex_data.c',
348 'third_party/boringssl/crypto/hkdf/hkdf.c',
349 'third_party/boringssl/crypto/hmac/hmac.c',
350 'third_party/boringssl/crypto/lhash/lhash.c',
351 'third_party/boringssl/crypto/md4/md4.c',
352 'third_party/boringssl/crypto/md5/md5.c',
353 'third_party/boringssl/crypto/mem.c',
354 'third_party/boringssl/crypto/modes/cbc.c',
355 'third_party/boringssl/crypto/modes/cfb.c',
356 'third_party/boringssl/crypto/modes/ctr.c',
357 'third_party/boringssl/crypto/modes/gcm.c',
358 'third_party/boringssl/crypto/modes/ofb.c',
Ken Paysonf8d6fb72017-06-15 17:32:49 -0700359 'third_party/boringssl/crypto/modes/polyval.c',
murgatroid995c56c922016-01-25 13:32:52 -0800360 'third_party/boringssl/crypto/obj/obj.c',
361 'third_party/boringssl/crypto/obj/obj_xref.c',
362 'third_party/boringssl/crypto/pem/pem_all.c',
363 'third_party/boringssl/crypto/pem/pem_info.c',
364 'third_party/boringssl/crypto/pem/pem_lib.c',
365 'third_party/boringssl/crypto/pem/pem_oth.c',
366 'third_party/boringssl/crypto/pem/pem_pk8.c',
367 'third_party/boringssl/crypto/pem/pem_pkey.c',
368 'third_party/boringssl/crypto/pem/pem_x509.c',
369 'third_party/boringssl/crypto/pem/pem_xaux.c',
murgatroid995c56c922016-01-25 13:32:52 -0800370 'third_party/boringssl/crypto/pkcs8/p5_pbev2.c',
371 'third_party/boringssl/crypto/pkcs8/p8_pkey.c',
372 'third_party/boringssl/crypto/pkcs8/pkcs8.c',
373 'third_party/boringssl/crypto/poly1305/poly1305.c',
374 'third_party/boringssl/crypto/poly1305/poly1305_arm.c',
375 'third_party/boringssl/crypto/poly1305/poly1305_vec.c',
Ken Paysonf8d6fb72017-06-15 17:32:49 -0700376 'third_party/boringssl/crypto/pool/pool.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800377 'third_party/boringssl/crypto/rand/deterministic.c',
Ken Paysonf8d6fb72017-06-15 17:32:49 -0700378 'third_party/boringssl/crypto/rand/fuchsia.c',
murgatroid995c56c922016-01-25 13:32:52 -0800379 'third_party/boringssl/crypto/rand/rand.c',
380 'third_party/boringssl/crypto/rand/urandom.c',
381 'third_party/boringssl/crypto/rand/windows.c',
382 'third_party/boringssl/crypto/rc4/rc4.c',
383 'third_party/boringssl/crypto/refcount_c11.c',
384 'third_party/boringssl/crypto/refcount_lock.c',
385 'third_party/boringssl/crypto/rsa/blinding.c',
386 'third_party/boringssl/crypto/rsa/padding.c',
387 'third_party/boringssl/crypto/rsa/rsa.c',
388 'third_party/boringssl/crypto/rsa/rsa_asn1.c',
389 'third_party/boringssl/crypto/rsa/rsa_impl.c',
Ken Paysonf8d6fb72017-06-15 17:32:49 -0700390 'third_party/boringssl/crypto/sha/sha1-altivec.c',
murgatroid995c56c922016-01-25 13:32:52 -0800391 'third_party/boringssl/crypto/sha/sha1.c',
392 'third_party/boringssl/crypto/sha/sha256.c',
393 'third_party/boringssl/crypto/sha/sha512.c',
394 'third_party/boringssl/crypto/stack/stack.c',
395 'third_party/boringssl/crypto/thread.c',
396 'third_party/boringssl/crypto/thread_none.c',
397 'third_party/boringssl/crypto/thread_pthread.c',
398 'third_party/boringssl/crypto/thread_win.c',
murgatroid995c56c922016-01-25 13:32:52 -0800399 'third_party/boringssl/crypto/x509/a_digest.c',
400 'third_party/boringssl/crypto/x509/a_sign.c',
401 'third_party/boringssl/crypto/x509/a_strex.c',
402 'third_party/boringssl/crypto/x509/a_verify.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800403 'third_party/boringssl/crypto/x509/algorithm.c',
murgatroid995c56c922016-01-25 13:32:52 -0800404 'third_party/boringssl/crypto/x509/asn1_gen.c',
405 'third_party/boringssl/crypto/x509/by_dir.c',
406 'third_party/boringssl/crypto/x509/by_file.c',
407 'third_party/boringssl/crypto/x509/i2d_pr.c',
408 'third_party/boringssl/crypto/x509/pkcs7.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800409 'third_party/boringssl/crypto/x509/rsa_pss.c',
murgatroid995c56c922016-01-25 13:32:52 -0800410 'third_party/boringssl/crypto/x509/t_crl.c',
411 'third_party/boringssl/crypto/x509/t_req.c',
412 'third_party/boringssl/crypto/x509/t_x509.c',
413 'third_party/boringssl/crypto/x509/t_x509a.c',
414 'third_party/boringssl/crypto/x509/x509.c',
415 'third_party/boringssl/crypto/x509/x509_att.c',
416 'third_party/boringssl/crypto/x509/x509_cmp.c',
417 'third_party/boringssl/crypto/x509/x509_d2.c',
418 'third_party/boringssl/crypto/x509/x509_def.c',
419 'third_party/boringssl/crypto/x509/x509_ext.c',
420 'third_party/boringssl/crypto/x509/x509_lu.c',
421 'third_party/boringssl/crypto/x509/x509_obj.c',
422 'third_party/boringssl/crypto/x509/x509_r2x.c',
423 'third_party/boringssl/crypto/x509/x509_req.c',
424 'third_party/boringssl/crypto/x509/x509_set.c',
425 'third_party/boringssl/crypto/x509/x509_trs.c',
426 'third_party/boringssl/crypto/x509/x509_txt.c',
427 'third_party/boringssl/crypto/x509/x509_v3.c',
428 'third_party/boringssl/crypto/x509/x509_vfy.c',
429 'third_party/boringssl/crypto/x509/x509_vpm.c',
430 'third_party/boringssl/crypto/x509/x509cset.c',
431 'third_party/boringssl/crypto/x509/x509name.c',
432 'third_party/boringssl/crypto/x509/x509rset.c',
433 'third_party/boringssl/crypto/x509/x509spki.c',
434 'third_party/boringssl/crypto/x509/x509type.c',
435 'third_party/boringssl/crypto/x509/x_algor.c',
436 'third_party/boringssl/crypto/x509/x_all.c',
437 'third_party/boringssl/crypto/x509/x_attrib.c',
438 'third_party/boringssl/crypto/x509/x_crl.c',
439 'third_party/boringssl/crypto/x509/x_exten.c',
440 'third_party/boringssl/crypto/x509/x_info.c',
441 'third_party/boringssl/crypto/x509/x_name.c',
442 'third_party/boringssl/crypto/x509/x_pkey.c',
443 'third_party/boringssl/crypto/x509/x_pubkey.c',
444 'third_party/boringssl/crypto/x509/x_req.c',
445 'third_party/boringssl/crypto/x509/x_sig.c',
446 'third_party/boringssl/crypto/x509/x_spki.c',
447 'third_party/boringssl/crypto/x509/x_val.c',
448 'third_party/boringssl/crypto/x509/x_x509.c',
449 'third_party/boringssl/crypto/x509/x_x509a.c',
450 'third_party/boringssl/crypto/x509v3/pcy_cache.c',
451 'third_party/boringssl/crypto/x509v3/pcy_data.c',
452 'third_party/boringssl/crypto/x509v3/pcy_lib.c',
453 'third_party/boringssl/crypto/x509v3/pcy_map.c',
454 'third_party/boringssl/crypto/x509v3/pcy_node.c',
455 'third_party/boringssl/crypto/x509v3/pcy_tree.c',
456 'third_party/boringssl/crypto/x509v3/v3_akey.c',
457 'third_party/boringssl/crypto/x509v3/v3_akeya.c',
458 'third_party/boringssl/crypto/x509v3/v3_alt.c',
459 'third_party/boringssl/crypto/x509v3/v3_bcons.c',
460 'third_party/boringssl/crypto/x509v3/v3_bitst.c',
461 'third_party/boringssl/crypto/x509v3/v3_conf.c',
462 'third_party/boringssl/crypto/x509v3/v3_cpols.c',
463 'third_party/boringssl/crypto/x509v3/v3_crld.c',
464 'third_party/boringssl/crypto/x509v3/v3_enum.c',
465 'third_party/boringssl/crypto/x509v3/v3_extku.c',
466 'third_party/boringssl/crypto/x509v3/v3_genn.c',
467 'third_party/boringssl/crypto/x509v3/v3_ia5.c',
468 'third_party/boringssl/crypto/x509v3/v3_info.c',
469 'third_party/boringssl/crypto/x509v3/v3_int.c',
470 'third_party/boringssl/crypto/x509v3/v3_lib.c',
471 'third_party/boringssl/crypto/x509v3/v3_ncons.c',
472 'third_party/boringssl/crypto/x509v3/v3_pci.c',
473 'third_party/boringssl/crypto/x509v3/v3_pcia.c',
474 'third_party/boringssl/crypto/x509v3/v3_pcons.c',
475 'third_party/boringssl/crypto/x509v3/v3_pku.c',
476 'third_party/boringssl/crypto/x509v3/v3_pmaps.c',
477 'third_party/boringssl/crypto/x509v3/v3_prn.c',
478 'third_party/boringssl/crypto/x509v3/v3_purp.c',
479 'third_party/boringssl/crypto/x509v3/v3_skey.c',
480 'third_party/boringssl/crypto/x509v3/v3_sxnet.c',
481 'third_party/boringssl/crypto/x509v3/v3_utl.c',
Ken Paysonf8d6fb72017-06-15 17:32:49 -0700482 'third_party/boringssl/ssl/bio_ssl.c',
murgatroid995c56c922016-01-25 13:32:52 -0800483 'third_party/boringssl/ssl/custom_extensions.c',
484 'third_party/boringssl/ssl/d1_both.c',
murgatroid995c56c922016-01-25 13:32:52 -0800485 'third_party/boringssl/ssl/d1_lib.c',
murgatroid995c56c922016-01-25 13:32:52 -0800486 'third_party/boringssl/ssl/d1_pkt.c',
487 'third_party/boringssl/ssl/d1_srtp.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800488 'third_party/boringssl/ssl/dtls_method.c',
murgatroid995c56c922016-01-25 13:32:52 -0800489 'third_party/boringssl/ssl/dtls_record.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800490 'third_party/boringssl/ssl/handshake_client.c',
491 'third_party/boringssl/ssl/handshake_server.c',
murgatroid995c56c922016-01-25 13:32:52 -0800492 'third_party/boringssl/ssl/s3_both.c',
murgatroid995c56c922016-01-25 13:32:52 -0800493 'third_party/boringssl/ssl/s3_lib.c',
murgatroid995c56c922016-01-25 13:32:52 -0800494 'third_party/boringssl/ssl/s3_pkt.c',
murgatroid995c56c922016-01-25 13:32:52 -0800495 'third_party/boringssl/ssl/ssl_aead_ctx.c',
496 'third_party/boringssl/ssl/ssl_asn1.c',
497 'third_party/boringssl/ssl/ssl_buffer.c',
498 'third_party/boringssl/ssl/ssl_cert.c',
499 'third_party/boringssl/ssl/ssl_cipher.c',
itessier2a522032016-04-19 17:38:51 -0700500 'third_party/boringssl/ssl/ssl_ecdh.c',
murgatroid995c56c922016-01-25 13:32:52 -0800501 'third_party/boringssl/ssl/ssl_file.c',
502 'third_party/boringssl/ssl/ssl_lib.c',
Ken Paysonf8d6fb72017-06-15 17:32:49 -0700503 'third_party/boringssl/ssl/ssl_privkey.c',
504 'third_party/boringssl/ssl/ssl_privkey_cc.cc',
murgatroid995c56c922016-01-25 13:32:52 -0800505 'third_party/boringssl/ssl/ssl_session.c',
506 'third_party/boringssl/ssl/ssl_stat.c',
Ken Paysonf8d6fb72017-06-15 17:32:49 -0700507 'third_party/boringssl/ssl/ssl_transcript.c',
508 'third_party/boringssl/ssl/ssl_x509.c',
murgatroid995c56c922016-01-25 13:32:52 -0800509 'third_party/boringssl/ssl/t1_enc.c',
510 'third_party/boringssl/ssl/t1_lib.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800511 'third_party/boringssl/ssl/tls13_both.c',
512 'third_party/boringssl/ssl/tls13_client.c',
513 'third_party/boringssl/ssl/tls13_enc.c',
514 'third_party/boringssl/ssl/tls13_server.c',
515 'third_party/boringssl/ssl/tls_method.c',
murgatroid995c56c922016-01-25 13:32:52 -0800516 'third_party/boringssl/ssl/tls_record.c',
Ken Paysonf8d6fb72017-06-15 17:32:49 -0700517 ],
murgatroid99e9295472017-07-19 15:58:40 -0700518 'conditions': [
519 ['OS == "mac"', {
520 'xcode_settings': {
521 'MACOSX_DEPLOYMENT_TARGET': '10.9'
522 }
523 }]
524 ]
murgatroid995c56c922016-01-25 13:32:52 -0800525 },
Ken Paysonf8d6fb72017-06-15 17:32:49 -0700526 ],
murgatroid99dc230462016-10-25 14:12:42 -0700527 }],
murgatroid99f25f5052017-04-13 17:22:32 -0700528 ['OS == "win" and runtime!="electron"', {
murgatroid99dc230462016-10-25 14:12:42 -0700529 'targets': [
530 {
531 # IMPORTANT WINDOWS BUILD INFORMATION
532 # This library does not build on Windows without modifying the Node
533 # development packages that node-gyp downloads in order to build.
534 # Due to https://github.com/nodejs/node/issues/4932, the headers for
535 # BoringSSL conflict with the OpenSSL headers included by default
536 # when including the Node headers. The remedy for this is to remove
537 # the OpenSSL headers, from the downloaded Node development package,
538 # which is typically located in `.node-gyp` in your home directory.
murgatroid99f25f5052017-04-13 17:22:32 -0700539 #
540 # This is not true of Electron, which does not have OpenSSL headers.
murgatroid99dc230462016-10-25 14:12:42 -0700541 'target_name': 'WINDOWS_BUILD_WARNING',
murgatroid99025f1102017-04-10 13:07:37 -0700542 'rules': [
murgatroid99dc230462016-10-25 14:12:42 -0700543 {
murgatroid99025f1102017-04-10 13:07:37 -0700544 'rule_name': 'WINDOWS_BUILD_WARNING',
545 'extension': 'S',
murgatroid99dc230462016-10-25 14:12:42 -0700546 'inputs': [
547 'package.json'
548 ],
549 'outputs': [
550 'ignore_this_part'
551 ],
552 'action': ['echo', 'IMPORTANT: Due to https://github.com/nodejs/node/issues/4932, to build this library on Windows, you must first remove <(node_root_dir)/include/node/openssl/']
553 }
554 ]
555 },
murgatroid99652210a2017-04-19 13:46:32 -0700556 ]
557 }],
558 ['OS == "win"', {
559 'targets': [
murgatroid99dc230462016-10-25 14:12:42 -0700560 # Only want to compile zlib under Windows
murgatroid995c56c922016-01-25 13:32:52 -0800561 {
murgatroid995c56c922016-01-25 13:32:52 -0800562 'target_name': 'z',
563 'product_prefix': 'lib',
564 'type': 'static_library',
565 'dependencies': [
566 ],
567 'sources': [
568 'third_party/zlib/adler32.c',
569 'third_party/zlib/compress.c',
570 'third_party/zlib/crc32.c',
571 'third_party/zlib/deflate.c',
572 'third_party/zlib/gzclose.c',
573 'third_party/zlib/gzlib.c',
574 'third_party/zlib/gzread.c',
575 'third_party/zlib/gzwrite.c',
576 'third_party/zlib/infback.c',
577 'third_party/zlib/inffast.c',
578 'third_party/zlib/inflate.c',
579 'third_party/zlib/inftrees.c',
580 'third_party/zlib/trees.c',
581 'third_party/zlib/uncompr.c',
582 'third_party/zlib/zutil.c',
murgatroid99af6c1782016-01-28 13:14:24 -0800583 ]
murgatroid995c56c922016-01-25 13:32:52 -0800584 },
585 ]
586 }]
587 ],
murgatroid99fd994f12015-10-09 14:02:28 -0700588 'targets': [
589 {
Craig Tillerda179ce2016-02-09 12:01:53 -0800590 'target_name': 'gpr',
591 'product_prefix': 'lib',
592 'type': 'static_library',
593 'dependencies': [
594 ],
595 'sources': [
Craig Tillerf23078c2016-03-25 17:07:29 -0700596 'src/core/lib/profiling/basic_timers.c',
597 'src/core/lib/profiling/stap_timers.c',
598 'src/core/lib/support/alloc.c',
Craig Tiller9202b3f2017-03-12 22:30:38 -0700599 'src/core/lib/support/arena.c',
Mark D. Rothfecba532017-03-17 09:50:48 -0700600 'src/core/lib/support/atm.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700601 'src/core/lib/support/avl.c',
602 'src/core/lib/support/backoff.c',
603 'src/core/lib/support/cmdline.c',
604 'src/core/lib/support/cpu_iphone.c',
605 'src/core/lib/support/cpu_linux.c',
606 'src/core/lib/support/cpu_posix.c',
607 'src/core/lib/support/cpu_windows.c',
608 'src/core/lib/support/env_linux.c',
609 'src/core/lib/support/env_posix.c',
Yuchen Zeng12dfdc32016-04-26 22:05:41 -0700610 'src/core/lib/support/env_windows.c',
Ken Payson9714e032017-10-10 11:18:49 -0700611 'src/core/lib/support/fork.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700612 'src/core/lib/support/histogram.c',
613 'src/core/lib/support/host_port.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700614 'src/core/lib/support/log.c',
615 'src/core/lib/support/log_android.c',
616 'src/core/lib/support/log_linux.c',
617 'src/core/lib/support/log_posix.c',
Yuchen Zeng12dfdc32016-04-26 22:05:41 -0700618 'src/core/lib/support/log_windows.c',
Craig Tiller57726ca2016-09-12 11:59:45 -0700619 'src/core/lib/support/mpscq.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700620 'src/core/lib/support/murmur_hash.c',
Ken Paysona4710a02017-07-10 16:49:59 -0700621 'src/core/lib/support/stack_lockfree.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700622 'src/core/lib/support/string.c',
623 'src/core/lib/support/string_posix.c',
Yuchen Zeng4594bd92016-05-31 14:06:01 -0700624 'src/core/lib/support/string_util_windows.c',
Yuchen Zeng12dfdc32016-04-26 22:05:41 -0700625 'src/core/lib/support/string_windows.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700626 'src/core/lib/support/subprocess_posix.c',
627 'src/core/lib/support/subprocess_windows.c',
628 'src/core/lib/support/sync.c',
629 'src/core/lib/support/sync_posix.c',
Yuchen Zeng12dfdc32016-04-26 22:05:41 -0700630 'src/core/lib/support/sync_windows.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700631 'src/core/lib/support/thd.c',
632 'src/core/lib/support/thd_posix.c',
Yuchen Zeng12dfdc32016-04-26 22:05:41 -0700633 'src/core/lib/support/thd_windows.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700634 'src/core/lib/support/time.c',
635 'src/core/lib/support/time_posix.c',
636 'src/core/lib/support/time_precise.c',
Yuchen Zeng12dfdc32016-04-26 22:05:41 -0700637 'src/core/lib/support/time_windows.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700638 'src/core/lib/support/tls_pthread.c',
Nicolas "Pixel" Noblec4b18a52016-04-15 04:53:54 +0200639 'src/core/lib/support/tmpfile_msys.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700640 'src/core/lib/support/tmpfile_posix.c',
Yuchen Zeng12dfdc32016-04-26 22:05:41 -0700641 'src/core/lib/support/tmpfile_windows.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700642 'src/core/lib/support/wrap_memcpy.c',
Craig Tillerda179ce2016-02-09 12:01:53 -0800643 ],
murgatroid99e9295472017-07-19 15:58:40 -0700644 'conditions': [
645 ['OS == "mac"', {
646 'xcode_settings': {
647 'MACOSX_DEPLOYMENT_TARGET': '10.9'
648 }
649 }]
650 ]
Craig Tillerda179ce2016-02-09 12:01:53 -0800651 },
652 {
murgatroid99fd994f12015-10-09 14:02:28 -0700653 'target_name': 'grpc',
654 'product_prefix': 'lib',
655 'type': 'static_library',
656 'dependencies': [
Craig Tillerda179ce2016-02-09 12:01:53 -0800657 'gpr',
murgatroid99fd994f12015-10-09 14:02:28 -0700658 ],
659 'sources': [
Craig Tiller3ab2fe02016-04-11 20:11:18 -0700660 'src/core/lib/surface/init.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700661 'src/core/lib/channel/channel_args.c',
662 'src/core/lib/channel/channel_stack.c',
663 'src/core/lib/channel/channel_stack_builder.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700664 'src/core/lib/channel/connected_channel.c',
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700665 'src/core/lib/channel/handshaker.c',
Mark D. Roth1f0f23c2017-01-06 13:07:19 -0800666 'src/core/lib/channel/handshaker_factory.c',
667 'src/core/lib/channel/handshaker_registry.c',
David Garcia Quintasac094472016-05-18 20:25:57 -0700668 'src/core/lib/compression/compression.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700669 'src/core/lib/compression/message_compress.c',
Muxi Yane87a7e12017-06-29 16:53:24 -0700670 'src/core/lib/compression/stream_compression.c',
Muxi Yanbf5484e2017-09-01 18:03:03 -0700671 'src/core/lib/compression/stream_compression_gzip.c',
672 'src/core/lib/compression/stream_compression_identity.c',
Craig Tillerb8930462017-07-19 16:24:19 -0700673 'src/core/lib/debug/stats.c',
674 'src/core/lib/debug/stats_data.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700675 'src/core/lib/http/format_request.c',
676 'src/core/lib/http/httpcli.c',
677 'src/core/lib/http/parser.c',
Mark D. Roth764cf042017-09-01 09:00:06 -0700678 'src/core/lib/iomgr/call_combiner.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700679 'src/core/lib/iomgr/closure.c',
Craig Tiller57726ca2016-09-12 11:59:45 -0700680 'src/core/lib/iomgr/combiner.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700681 'src/core/lib/iomgr/endpoint.c',
682 'src/core/lib/iomgr/endpoint_pair_posix.c',
murgatroid99c36f6ea2016-10-03 09:24:09 -0700683 'src/core/lib/iomgr/endpoint_pair_uv.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700684 'src/core/lib/iomgr/endpoint_pair_windows.c',
Craig Tiller27f59af2016-04-28 14:19:48 -0700685 'src/core/lib/iomgr/error.c',
Craig Tillerc67cc992017-04-27 10:15:51 -0700686 'src/core/lib/iomgr/ev_epoll1_linux.c',
Craig Tillerf4360d72017-04-07 08:51:00 -0700687 'src/core/lib/iomgr/ev_epollex_linux.c',
Craig Tillerc67cc992017-04-27 10:15:51 -0700688 'src/core/lib/iomgr/ev_epollsig_linux.c',
Craig Tillerd9a60bb2016-03-28 23:13:19 -0700689 'src/core/lib/iomgr/ev_poll_posix.c',
Craig Tiller8a034482016-03-28 16:09:04 -0700690 'src/core/lib/iomgr/ev_posix.c',
Jan Tattermuschde030a32017-05-16 18:20:26 +0200691 'src/core/lib/iomgr/ev_windows.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700692 'src/core/lib/iomgr/exec_ctx.c',
693 'src/core/lib/iomgr/executor.c',
Ken Payson9714e032017-10-10 11:18:49 -0700694 'src/core/lib/iomgr/fork_posix.c',
695 'src/core/lib/iomgr/fork_windows.c',
Mark D. Rothf9bf4282017-08-03 14:47:23 -0700696 'src/core/lib/iomgr/gethostname_fallback.c',
697 'src/core/lib/iomgr/gethostname_host_name_max.c',
698 'src/core/lib/iomgr/gethostname_sysconf.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700699 'src/core/lib/iomgr/iocp_windows.c',
700 'src/core/lib/iomgr/iomgr.c',
701 'src/core/lib/iomgr/iomgr_posix.c',
murgatroid999030c812016-09-16 13:25:08 -0700702 'src/core/lib/iomgr/iomgr_uv.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700703 'src/core/lib/iomgr/iomgr_windows.c',
Craig Tiller819cd882017-04-25 13:18:22 -0700704 'src/core/lib/iomgr/is_epollexclusive_available.c',
Craig Tiller85178862016-05-18 16:09:16 -0700705 'src/core/lib/iomgr/load_file.c',
Craig Tiller376887d2017-04-06 08:27:03 -0700706 'src/core/lib/iomgr/lockfree_event.c',
Makarand Dharmapurikar0579cfc2016-06-20 15:45:24 -0700707 'src/core/lib/iomgr/network_status_tracker.c',
David Garcia Quintas2a50dfe2016-05-31 15:09:12 -0700708 'src/core/lib/iomgr/polling_entity.c',
murgatroid999030c812016-09-16 13:25:08 -0700709 'src/core/lib/iomgr/pollset_set_uv.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700710 'src/core/lib/iomgr/pollset_set_windows.c',
murgatroid999030c812016-09-16 13:25:08 -0700711 'src/core/lib/iomgr/pollset_uv.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700712 'src/core/lib/iomgr/pollset_windows.c',
713 'src/core/lib/iomgr/resolve_address_posix.c',
murgatroid999030c812016-09-16 13:25:08 -0700714 'src/core/lib/iomgr/resolve_address_uv.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700715 'src/core/lib/iomgr/resolve_address_windows.c',
Craig Tiller20afa3d2016-10-17 14:52:14 -0700716 'src/core/lib/iomgr/resource_quota.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700717 'src/core/lib/iomgr/sockaddr_utils.c',
Michael Warresc46b3eb2017-02-22 22:57:04 -0500718 'src/core/lib/iomgr/socket_factory_posix.c',
Yuchen Zengde3daf52016-10-13 17:26:26 -0700719 'src/core/lib/iomgr/socket_mutator.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700720 'src/core/lib/iomgr/socket_utils_common_posix.c',
721 'src/core/lib/iomgr/socket_utils_linux.c',
722 'src/core/lib/iomgr/socket_utils_posix.c',
murgatroid999030c812016-09-16 13:25:08 -0700723 'src/core/lib/iomgr/socket_utils_uv.c',
murgatroid9979b32272016-08-08 13:38:30 -0700724 'src/core/lib/iomgr/socket_utils_windows.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700725 'src/core/lib/iomgr/socket_windows.c',
726 'src/core/lib/iomgr/tcp_client_posix.c',
murgatroid999030c812016-09-16 13:25:08 -0700727 'src/core/lib/iomgr/tcp_client_uv.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700728 'src/core/lib/iomgr/tcp_client_windows.c',
729 'src/core/lib/iomgr/tcp_posix.c',
730 'src/core/lib/iomgr/tcp_server_posix.c',
Yuchen Zeng68745bb2017-03-14 17:51:07 -0700731 'src/core/lib/iomgr/tcp_server_utils_posix_common.c',
Yuchen Zeng47155ed2017-03-13 17:18:07 -0700732 'src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.c',
733 'src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.c',
murgatroid999030c812016-09-16 13:25:08 -0700734 'src/core/lib/iomgr/tcp_server_uv.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700735 'src/core/lib/iomgr/tcp_server_windows.c',
murgatroid999030c812016-09-16 13:25:08 -0700736 'src/core/lib/iomgr/tcp_uv.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700737 'src/core/lib/iomgr/tcp_windows.c',
738 'src/core/lib/iomgr/time_averaged_stats.c',
murgatroid999030c812016-09-16 13:25:08 -0700739 'src/core/lib/iomgr/timer_generic.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700740 'src/core/lib/iomgr/timer_heap.c',
Craig Tillerc3571792017-05-02 12:33:38 -0700741 'src/core/lib/iomgr/timer_manager.c',
murgatroid999030c812016-09-16 13:25:08 -0700742 'src/core/lib/iomgr/timer_uv.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700743 'src/core/lib/iomgr/udp_server.c',
744 'src/core/lib/iomgr/unix_sockets_posix.c',
745 'src/core/lib/iomgr/unix_sockets_posix_noop.c',
Ken Payson31caabd2016-08-06 21:27:29 -0700746 'src/core/lib/iomgr/wakeup_fd_cv.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700747 'src/core/lib/iomgr/wakeup_fd_eventfd.c',
748 'src/core/lib/iomgr/wakeup_fd_nospecial.c',
749 'src/core/lib/iomgr/wakeup_fd_pipe.c',
750 'src/core/lib/iomgr/wakeup_fd_posix.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700751 'src/core/lib/json/json.c',
752 'src/core/lib/json/json_reader.c',
753 'src/core/lib/json/json_string.c',
754 'src/core/lib/json/json_writer.c',
Craig Tiller29b527f2017-03-30 10:27:20 -0700755 'src/core/lib/slice/b64.c',
Craig Tillerc3350542016-10-26 16:19:01 -0700756 'src/core/lib/slice/percent_encoding.c',
757 'src/core/lib/slice/slice.c',
758 'src/core/lib/slice/slice_buffer.c',
Craig Tiller7c70b6c2017-01-23 07:48:42 -0800759 'src/core/lib/slice/slice_hash_table.c',
760 'src/core/lib/slice/slice_intern.c',
Craig Tillerc3350542016-10-26 16:19:01 -0700761 'src/core/lib/slice/slice_string_helpers.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700762 'src/core/lib/surface/alarm.c',
763 'src/core/lib/surface/api_trace.c',
764 'src/core/lib/surface/byte_buffer.c',
765 'src/core/lib/surface/byte_buffer_reader.c',
766 'src/core/lib/surface/call.c',
767 'src/core/lib/surface/call_details.c',
768 'src/core/lib/surface/call_log_batch.c',
769 'src/core/lib/surface/channel.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700770 'src/core/lib/surface/channel_init.c',
771 'src/core/lib/surface/channel_ping.c',
772 'src/core/lib/surface/channel_stack_type.c',
773 'src/core/lib/surface/completion_queue.c',
Sree Kuchibhotlabf184282017-03-21 15:18:58 -0700774 'src/core/lib/surface/completion_queue_factory.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700775 'src/core/lib/surface/event_string.c',
Craig Tiller8ebb5442017-04-07 16:01:55 -0700776 'src/core/lib/surface/lame_client.cc',
Craig Tillerf23078c2016-03-25 17:07:29 -0700777 'src/core/lib/surface/metadata_array.c',
778 'src/core/lib/surface/server.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700779 'src/core/lib/surface/validate_metadata.c',
780 'src/core/lib/surface/version.c',
Craig Tiller9e0066b2016-10-20 14:04:18 -0700781 'src/core/lib/transport/bdp_estimator.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700782 'src/core/lib/transport/byte_stream.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700783 'src/core/lib/transport/connectivity_state.c',
Craig Tiller7c70b6c2017-01-23 07:48:42 -0800784 'src/core/lib/transport/error_utils.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700785 'src/core/lib/transport/metadata.c',
786 'src/core/lib/transport/metadata_batch.c',
Craig Tillerdd2fa642016-10-20 15:46:32 -0700787 'src/core/lib/transport/pid_controller.c',
Mark D. Rothea846a02016-11-03 11:32:54 -0700788 'src/core/lib/transport/service_config.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700789 'src/core/lib/transport/static_metadata.c',
Craig Tiller7c70b6c2017-01-23 07:48:42 -0800790 'src/core/lib/transport/status_conversion.c',
Robbie Shade710d2422016-07-13 15:15:38 -0400791 'src/core/lib/transport/timeout_encoding.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700792 'src/core/lib/transport/transport.c',
793 'src/core/lib/transport/transport_op_string.c',
Craig Tiller1f477302017-05-05 11:01:25 -0700794 'src/core/lib/debug/trace.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700795 'src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c',
Yuchen Zengd982bba2016-05-12 18:53:52 -0700796 'src/core/ext/transport/chttp2/transport/bin_decoder.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700797 'src/core/ext/transport/chttp2/transport/bin_encoder.c',
798 'src/core/ext/transport/chttp2/transport/chttp2_plugin.c',
799 'src/core/ext/transport/chttp2/transport/chttp2_transport.c',
jiangtaoli20163aaa5ea2017-08-02 13:36:50 -0700800 'src/core/ext/transport/chttp2/transport/flow_control.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700801 'src/core/ext/transport/chttp2/transport/frame_data.c',
802 'src/core/ext/transport/chttp2/transport/frame_goaway.c',
803 'src/core/ext/transport/chttp2/transport/frame_ping.c',
804 'src/core/ext/transport/chttp2/transport/frame_rst_stream.c',
805 'src/core/ext/transport/chttp2/transport/frame_settings.c',
806 'src/core/ext/transport/chttp2/transport/frame_window_update.c',
807 'src/core/ext/transport/chttp2/transport/hpack_encoder.c',
808 'src/core/ext/transport/chttp2/transport/hpack_parser.c',
809 'src/core/ext/transport/chttp2/transport/hpack_table.c',
Craig Tillerc8f62bc2017-04-03 16:25:45 -0700810 'src/core/ext/transport/chttp2/transport/http2_settings.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700811 'src/core/ext/transport/chttp2/transport/huffsyms.c',
812 'src/core/ext/transport/chttp2/transport/incoming_metadata.c',
813 'src/core/ext/transport/chttp2/transport/parsing.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700814 'src/core/ext/transport/chttp2/transport/stream_lists.c',
815 'src/core/ext/transport/chttp2/transport/stream_map.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700816 'src/core/ext/transport/chttp2/transport/varint.c',
817 'src/core/ext/transport/chttp2/transport/writing.c',
818 'src/core/ext/transport/chttp2/alpn/alpn.c',
Craig Tilleraf767432017-04-03 13:54:31 -0700819 'src/core/ext/filters/http/client/http_client_filter.c',
Craig Tilleraf767432017-04-03 13:54:31 -0700820 'src/core/ext/filters/http/http_filters_plugin.c',
Craig Tiller71d6ce62017-04-06 09:10:09 -0700821 'src/core/ext/filters/http/message_compress/message_compress_filter.c',
Craig Tilleraf767432017-04-03 13:54:31 -0700822 'src/core/ext/filters/http/server/http_server_filter.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700823 'src/core/lib/http/httpcli_security_connector.c',
Julien Boeuf8ca294e2016-05-02 14:56:30 -0700824 'src/core/lib/security/context/security_context.c',
825 'src/core/lib/security/credentials/composite/composite_credentials.c',
826 'src/core/lib/security/credentials/credentials.c',
827 'src/core/lib/security/credentials/credentials_metadata.c',
828 'src/core/lib/security/credentials/fake/fake_credentials.c',
murgatroid997c205902016-08-09 10:07:42 -0700829 'src/core/lib/security/credentials/google_default/credentials_generic.c',
Julien Boeuf8ca294e2016-05-02 14:56:30 -0700830 'src/core/lib/security/credentials/google_default/google_default_credentials.c',
831 'src/core/lib/security/credentials/iam/iam_credentials.c',
832 'src/core/lib/security/credentials/jwt/json_token.c',
833 'src/core/lib/security/credentials/jwt/jwt_credentials.c',
834 'src/core/lib/security/credentials/jwt/jwt_verifier.c',
835 'src/core/lib/security/credentials/oauth2/oauth2_credentials.c',
836 'src/core/lib/security/credentials/plugin/plugin_credentials.c',
837 'src/core/lib/security/credentials/ssl/ssl_credentials.c',
838 'src/core/lib/security/transport/client_auth_filter.c',
David Garcia Quintas01291502017-02-07 13:26:41 -0800839 'src/core/lib/security/transport/lb_targets_info.c',
Julien Boeuf8ca294e2016-05-02 14:56:30 -0700840 'src/core/lib/security/transport/secure_endpoint.c',
841 'src/core/lib/security/transport/security_connector.c',
Mark D. Roth071cacf2016-11-17 13:17:56 -0800842 'src/core/lib/security/transport/security_handshaker.c',
Julien Boeuf8ca294e2016-05-02 14:56:30 -0700843 'src/core/lib/security/transport/server_auth_filter.c',
Craig Tillerddad9782016-05-05 17:11:31 -0700844 'src/core/lib/security/transport/tsi_error.c',
Julien Boeuf8ca294e2016-05-02 14:56:30 -0700845 'src/core/lib/security/util/json_util.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700846 'src/core/lib/surface/init_secure.c',
Craig Tiller134fed32017-03-28 14:27:18 -0700847 'src/core/tsi/fake_transport_security.c',
Yihua Zhang1435bfc2017-07-17 11:20:51 -0700848 'src/core/tsi/gts_transport_security.c',
Craig Tiller134fed32017-03-28 14:27:18 -0700849 'src/core/tsi/ssl_transport_security.c',
jiangtaoli201625d6fd82017-08-09 11:15:04 -0700850 'src/core/tsi/transport_security_grpc.c',
Craig Tiller134fed32017-03-28 14:27:18 -0700851 'src/core/tsi/transport_security.c',
jiangtaoli2016e69881d2017-04-10 14:29:43 -0700852 'src/core/tsi/transport_security_adapter.c',
Mark D. Roth71403822016-12-02 10:51:39 -0800853 'src/core/ext/transport/chttp2/server/chttp2_server.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700854 'src/core/ext/transport/chttp2/client/secure/secure_channel_create.c',
Craig Tiller9eb0fde2017-03-31 16:59:30 -0700855 'src/core/ext/filters/client_channel/channel_connectivity.c',
856 'src/core/ext/filters/client_channel/client_channel.c',
857 'src/core/ext/filters/client_channel/client_channel_factory.c',
858 'src/core/ext/filters/client_channel/client_channel_plugin.c',
859 'src/core/ext/filters/client_channel/connector.c',
860 'src/core/ext/filters/client_channel/http_connect_handshaker.c',
861 'src/core/ext/filters/client_channel/http_proxy.c',
862 'src/core/ext/filters/client_channel/lb_policy.c',
863 'src/core/ext/filters/client_channel/lb_policy_factory.c',
864 'src/core/ext/filters/client_channel/lb_policy_registry.c',
865 'src/core/ext/filters/client_channel/parse_address.c',
866 'src/core/ext/filters/client_channel/proxy_mapper.c',
867 'src/core/ext/filters/client_channel/proxy_mapper_registry.c',
868 'src/core/ext/filters/client_channel/resolver.c',
869 'src/core/ext/filters/client_channel/resolver_factory.c',
870 'src/core/ext/filters/client_channel/resolver_registry.c',
871 'src/core/ext/filters/client_channel/retry_throttle.c',
872 'src/core/ext/filters/client_channel/subchannel.c',
873 'src/core/ext/filters/client_channel/subchannel_index.c',
874 'src/core/ext/filters/client_channel/uri_parser.c',
Craig Tiller71d6ce62017-04-06 09:10:09 -0700875 'src/core/ext/filters/deadline/deadline_filter.c',
Mark D. Roth8686cab2016-11-17 13:12:17 -0800876 'src/core/ext/transport/chttp2/client/chttp2_connector.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700877 'src/core/ext/transport/chttp2/server/insecure/server_chttp2.c',
Adam Michalikbf10c822016-05-20 16:13:32 -0700878 'src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700879 'src/core/ext/transport/chttp2/client/insecure/channel_create.c',
Adam Michalik321b1fb2016-05-16 15:42:36 -0700880 'src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c',
Vijay Pai3d7d5f42017-05-04 10:02:24 -0700881 'src/core/ext/transport/inproc/inproc_plugin.c',
882 'src/core/ext/transport/inproc/inproc_transport.c',
Mark D. Roth09e458c2017-05-02 08:13:26 -0700883 'src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.c',
Craig Tiller9eb0fde2017-03-31 16:59:30 -0700884 'src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c',
885 'src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel_secure.c',
Mark D. Roth09e458c2017-05-02 08:13:26 -0700886 'src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.c',
Craig Tiller9eb0fde2017-03-31 16:59:30 -0700887 'src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.c',
888 'src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c',
Craig Tillereb841e22016-02-11 15:49:16 -0800889 'third_party/nanopb/pb_common.c',
890 'third_party/nanopb/pb_decode.c',
891 'third_party/nanopb/pb_encode.c',
David Garcia Quintas87d5a312017-06-06 19:45:58 -0700892 'src/core/ext/filters/client_channel/resolver/fake/fake_resolver.c',
Craig Tiller9eb0fde2017-03-31 16:59:30 -0700893 'src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.c',
894 'src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.c',
895 'src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.c',
896 'src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.c',
897 'src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.c',
Yuchen Zeng4ebace72017-06-05 17:24:06 -0700898 'src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_fallback.c',
Craig Tiller9eb0fde2017-03-31 16:59:30 -0700899 'src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.c',
900 'src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.c',
David Garcia Quintas0822d332017-09-06 17:40:42 -0700901 'src/core/ext/filters/load_reporting/server_load_reporting_filter.c',
902 'src/core/ext/filters/load_reporting/server_load_reporting_plugin.c',
Alistair Veitch4aaba752016-06-02 17:11:46 -0700903 'src/core/ext/census/base_resources.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700904 'src/core/ext/census/context.c',
Alistair Veitch30fe6322016-05-23 10:11:28 -0700905 'src/core/ext/census/gen/census.pb.c',
Alistair Veitcha0c69f92016-08-31 12:01:27 -0700906 'src/core/ext/census/gen/trace_context.pb.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700907 'src/core/ext/census/grpc_context.c',
908 'src/core/ext/census/grpc_filter.c',
909 'src/core/ext/census/grpc_plugin.c',
910 'src/core/ext/census/initialize.c',
Vizerai0359e122017-04-28 20:06:58 -0700911 'src/core/ext/census/intrusive_hash_map.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700912 'src/core/ext/census/mlog.c',
913 'src/core/ext/census/operation.c',
914 'src/core/ext/census/placeholders.c',
Alistair Veitch4aaba752016-06-02 17:11:46 -0700915 'src/core/ext/census/resource.c',
Vizerai12d1fc62016-09-09 14:22:19 -0700916 'src/core/ext/census/trace_context.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700917 'src/core/ext/census/tracing.c',
Craig Tiller6d4894e2017-03-31 17:22:06 -0700918 'src/core/ext/filters/max_age/max_age_filter.c',
Craig Tiller9b3648a2017-04-03 12:25:19 -0700919 'src/core/ext/filters/message_size/message_size_filter.c',
Muxi Yan29ff4662017-05-15 10:27:55 -0700920 'src/core/ext/filters/workarounds/workaround_cronet_compression_filter.c',
921 'src/core/ext/filters/workarounds/workaround_utils.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700922 'src/core/plugin_registry/grpc_plugin_registry.c',
murgatroid99fd994f12015-10-09 14:02:28 -0700923 ],
murgatroid99e9295472017-07-19 15:58:40 -0700924 'conditions': [
925 ['OS == "mac"', {
926 'xcode_settings': {
927 'MACOSX_DEPLOYMENT_TARGET': '10.9'
928 }
929 }]
930 ]
murgatroid99fd994f12015-10-09 14:02:28 -0700931 },
murgatroid992af89e42015-10-01 11:54:00 -0700932 {
933 'include_dirs': [
934 "<!(node -e \"require('nan')\")"
935 ],
936 'cflags': [
murgatroid992af89e42015-10-01 11:54:00 -0700937 '-pthread',
murgatroid992af89e42015-10-01 11:54:00 -0700938 '-zdefs',
murgatroid992af89e42015-10-01 11:54:00 -0700939 '-Wno-error=deprecated-declarations'
940 ],
murgatroid992af89e42015-10-01 11:54:00 -0700941 "conditions": [
murgatroid99dc230462016-10-25 14:12:42 -0700942 ['OS=="win" or runtime=="electron"', {
943 'dependencies': [
944 "boringssl",
945 ]
946 }],
murgatroid995c56c922016-01-25 13:32:52 -0800947 ['OS=="win"', {
948 'dependencies': [
murgatroid995c56c922016-01-25 13:32:52 -0800949 "z",
950 ]
Craig Tiller4bef7ce2016-02-02 08:38:43 -0800951 }],
952 ['OS=="linux"', {
953 'ldflags': [
954 '-Wl,-wrap,memcpy'
955 ]
murgatroid99e9295472017-07-19 15:58:40 -0700956 }],
957 ['OS == "mac"', {
958 'xcode_settings': {
959 'MACOSX_DEPLOYMENT_TARGET': '10.9'
960 }
murgatroid992af89e42015-10-01 11:54:00 -0700961 }]
962 ],
963 "target_name": "grpc_node",
964 "sources": [
965 "src/node/ext/byte_buffer.cc",
966 "src/node/ext/call.cc",
murgatroid9947f519e2015-10-07 12:34:24 -0700967 "src/node/ext/call_credentials.cc",
murgatroid992af89e42015-10-01 11:54:00 -0700968 "src/node/ext/channel.cc",
murgatroid9947f519e2015-10-07 12:34:24 -0700969 "src/node/ext/channel_credentials.cc",
murgatroid99f94f64f2017-04-24 13:35:21 -0700970 "src/node/ext/completion_queue.cc",
murgatroid992af89e42015-10-01 11:54:00 -0700971 "src/node/ext/node_grpc.cc",
972 "src/node/ext/server.cc",
973 "src/node/ext/server_credentials.cc",
Craig Tiller7c70b6c2017-01-23 07:48:42 -0800974 "src/node/ext/slice.cc",
murgatroid99879bc4f2015-11-05 10:35:04 -0800975 "src/node/ext/timeval.cc",
murgatroid992af89e42015-10-01 11:54:00 -0700976 ],
977 "dependencies": [
murgatroid99879bc4f2015-11-05 10:35:04 -0800978 "grpc",
Craig Tillerda179ce2016-02-09 12:01:53 -0800979 "gpr",
murgatroid992af89e42015-10-01 11:54:00 -0700980 ]
murgatroid99879bc4f2015-11-05 10:35:04 -0800981 },
murgatroid99e190f352016-01-20 13:52:08 -0800982 {
983 "target_name": "action_after_build",
984 "type": "none",
985 "dependencies": [ "<(module_name)" ],
986 "copies": [
987 {
988 "files": [ "<(PRODUCT_DIR)/<(module_name).node"],
989 "destination": "<(module_path)"
990 }
991 ]
992 }
murgatroid992af89e42015-10-01 11:54:00 -0700993 ]
994}