blob: 26d090743b5fa9a66ffbe6b7ae8b83cc3f38e91a [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
murgatroid99f33b1322015-10-05 09:45:04 -07008# Copyright 2015, Google Inc.
9# All rights reserved.
10#
11# Redistribution and use in source and binary forms, with or without
12# modification, are permitted provided that the following conditions are
13# met:
14#
15# * Redistributions of source code must retain the above copyright
16# notice, this list of conditions and the following disclaimer.
17# * Redistributions in binary form must reproduce the above
18# copyright notice, this list of conditions and the following disclaimer
19# in the documentation and/or other materials provided with the
20# distribution.
21# * Neither the name of Google Inc. nor the names of its
22# contributors may be used to endorse or promote products derived from
23# this software without specific prior written permission.
24#
25# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
murgatroid99fd994f12015-10-09 14:02:28 -070036
37# Some of this file is built with the help of
38# https://n8.io/converting-a-c-library-to-gyp/
murgatroid992af89e42015-10-01 11:54:00 -070039{
murgatroid99fd994f12015-10-09 14:02:28 -070040 'variables': {
murgatroid992af89e42015-10-01 11:54:00 -070041 'config': '<!(echo $CONFIG)'
42 },
murgatroid99fd994f12015-10-09 14:02:28 -070043 # TODO: Finish windows support
44 'target_defaults': {
murgatroid99e7540792015-10-09 15:43:14 -070045 # Empirically, Node only exports ALPN symbols if its major version is >0.
murgatroid99fd994f12015-10-09 14:02:28 -070046 # io.js always reports versions >0 and always exports ALPN symbols.
murgatroid9915def982015-10-09 14:11:02 -070047 # Therefore, Node's major version will be truthy if and only if it
48 # supports ALPN. The output of "node -v" is v[major].[minor].[patch],
murgatroid99c07c7342015-10-19 17:41:03 -070049 # like "v4.1.1" in a recent version. We use cut to split by period and
50 # take the first field (resulting in "v[major]"), then use cut again
51 # to take all but the first character, removing the "v".
murgatroid99fd994f12015-10-09 14:02:28 -070052 'defines': [
murgatroid99c07c7342015-10-19 17:41:03 -070053 'TSI_OPENSSL_ALPN_SUPPORT=<!(node --version | cut -d. -f1 | cut -c2-)'
murgatroid99fd994f12015-10-09 14:02:28 -070054 ],
55 'include_dirs': [
56 '.',
murgatroid995c56c922016-01-25 13:32:52 -080057 'include'
murgatroid99a89d9e72015-10-13 16:03:16 -070058 ],
59 'conditions': [
murgatroid995c56c922016-01-25 13:32:52 -080060 ['OS == "win"', {
61 "include_dirs": [ "third_party/boringssl/include" ]
62 }, {
63 'include_dirs': [
64 '<(node_root_dir)/deps/openssl/openssl/include',
65 '<(node_root_dir)/deps/zlib'
66 ],
murgatroid99a89d9e72015-10-13 16:03:16 -070067 'conditions': [
68 ['config=="gcov"', {
69 'cflags': [
70 '-ftest-coverage',
71 '-fprofile-arcs',
72 '-O0'
73 ],
74 'ldflags': [
75 '-ftest-coverage',
76 '-fprofile-arcs'
77 ]
78 }
murgatroid995c56c922016-01-25 13:32:52 -080079 ],
80 ["target_arch=='ia32'", {
81 "include_dirs": [ "<(node_root_dir)/deps/openssl/config/piii" ]
82 }],
83 ["target_arch=='x64'", {
84 "include_dirs": [ "<(node_root_dir)/deps/openssl/config/k8" ]
85 }],
86 ["target_arch=='arm'", {
87 "include_dirs": [ "<(node_root_dir)/deps/openssl/config/arm" ]
88 }]
murgatroid99a89d9e72015-10-13 16:03:16 -070089 ]
murgatroid99afe46982015-10-23 10:17:26 -070090 }]
murgatroid99fd994f12015-10-09 14:02:28 -070091 ]
92 },
murgatroid995c56c922016-01-25 13:32:52 -080093 'conditions': [
94 ['OS == "win"', {
95 'targets': [
96 # Only want to compile BoringSSL and zlib under Windows
97 {
98 'cflags': [
99 '-std=c99',
100 '-Wall',
101 '-Werror'
102 ],
103 'target_name': 'boringssl',
104 'product_prefix': 'lib',
105 'type': 'static_library',
106 'dependencies': [
107 ],
108 'sources': [
109 'src/boringssl/err_data.c',
110 'third_party/boringssl/crypto/aes/aes.c',
111 'third_party/boringssl/crypto/aes/mode_wrappers.c',
112 'third_party/boringssl/crypto/asn1/a_bitstr.c',
113 'third_party/boringssl/crypto/asn1/a_bool.c',
114 'third_party/boringssl/crypto/asn1/a_bytes.c',
115 'third_party/boringssl/crypto/asn1/a_d2i_fp.c',
116 'third_party/boringssl/crypto/asn1/a_dup.c',
117 'third_party/boringssl/crypto/asn1/a_enum.c',
118 'third_party/boringssl/crypto/asn1/a_gentm.c',
119 'third_party/boringssl/crypto/asn1/a_i2d_fp.c',
120 'third_party/boringssl/crypto/asn1/a_int.c',
121 'third_party/boringssl/crypto/asn1/a_mbstr.c',
122 'third_party/boringssl/crypto/asn1/a_object.c',
123 'third_party/boringssl/crypto/asn1/a_octet.c',
124 'third_party/boringssl/crypto/asn1/a_print.c',
125 'third_party/boringssl/crypto/asn1/a_strnid.c',
126 'third_party/boringssl/crypto/asn1/a_time.c',
127 'third_party/boringssl/crypto/asn1/a_type.c',
128 'third_party/boringssl/crypto/asn1/a_utctm.c',
129 'third_party/boringssl/crypto/asn1/a_utf8.c',
130 'third_party/boringssl/crypto/asn1/asn1_lib.c',
131 'third_party/boringssl/crypto/asn1/asn1_par.c',
132 'third_party/boringssl/crypto/asn1/asn_pack.c',
133 'third_party/boringssl/crypto/asn1/bio_asn1.c',
134 'third_party/boringssl/crypto/asn1/bio_ndef.c',
135 'third_party/boringssl/crypto/asn1/f_enum.c',
136 'third_party/boringssl/crypto/asn1/f_int.c',
137 'third_party/boringssl/crypto/asn1/f_string.c',
138 'third_party/boringssl/crypto/asn1/t_bitst.c',
139 'third_party/boringssl/crypto/asn1/t_pkey.c',
140 'third_party/boringssl/crypto/asn1/tasn_dec.c',
141 'third_party/boringssl/crypto/asn1/tasn_enc.c',
142 'third_party/boringssl/crypto/asn1/tasn_fre.c',
143 'third_party/boringssl/crypto/asn1/tasn_new.c',
144 'third_party/boringssl/crypto/asn1/tasn_prn.c',
145 'third_party/boringssl/crypto/asn1/tasn_typ.c',
146 'third_party/boringssl/crypto/asn1/tasn_utl.c',
147 'third_party/boringssl/crypto/asn1/x_bignum.c',
148 'third_party/boringssl/crypto/asn1/x_long.c',
149 'third_party/boringssl/crypto/base64/base64.c',
150 'third_party/boringssl/crypto/bio/bio.c',
151 'third_party/boringssl/crypto/bio/bio_mem.c',
152 'third_party/boringssl/crypto/bio/buffer.c',
153 'third_party/boringssl/crypto/bio/connect.c',
154 'third_party/boringssl/crypto/bio/fd.c',
155 'third_party/boringssl/crypto/bio/file.c',
156 'third_party/boringssl/crypto/bio/hexdump.c',
157 'third_party/boringssl/crypto/bio/pair.c',
158 'third_party/boringssl/crypto/bio/printf.c',
159 'third_party/boringssl/crypto/bio/socket.c',
160 'third_party/boringssl/crypto/bio/socket_helper.c',
161 'third_party/boringssl/crypto/bn/add.c',
162 'third_party/boringssl/crypto/bn/asm/x86_64-gcc.c',
163 'third_party/boringssl/crypto/bn/bn.c',
164 'third_party/boringssl/crypto/bn/bn_asn1.c',
165 'third_party/boringssl/crypto/bn/cmp.c',
166 'third_party/boringssl/crypto/bn/convert.c',
167 'third_party/boringssl/crypto/bn/ctx.c',
168 'third_party/boringssl/crypto/bn/div.c',
169 'third_party/boringssl/crypto/bn/exponentiation.c',
170 'third_party/boringssl/crypto/bn/gcd.c',
171 'third_party/boringssl/crypto/bn/generic.c',
172 'third_party/boringssl/crypto/bn/kronecker.c',
173 'third_party/boringssl/crypto/bn/montgomery.c',
174 'third_party/boringssl/crypto/bn/mul.c',
175 'third_party/boringssl/crypto/bn/prime.c',
176 'third_party/boringssl/crypto/bn/random.c',
177 'third_party/boringssl/crypto/bn/rsaz_exp.c',
178 'third_party/boringssl/crypto/bn/shift.c',
179 'third_party/boringssl/crypto/bn/sqrt.c',
180 'third_party/boringssl/crypto/buf/buf.c',
181 'third_party/boringssl/crypto/bytestring/ber.c',
182 'third_party/boringssl/crypto/bytestring/cbb.c',
183 'third_party/boringssl/crypto/bytestring/cbs.c',
184 'third_party/boringssl/crypto/chacha/chacha_generic.c',
185 'third_party/boringssl/crypto/chacha/chacha_vec.c',
186 'third_party/boringssl/crypto/cipher/aead.c',
187 'third_party/boringssl/crypto/cipher/cipher.c',
188 'third_party/boringssl/crypto/cipher/derive_key.c',
189 'third_party/boringssl/crypto/cipher/e_aes.c',
190 'third_party/boringssl/crypto/cipher/e_chacha20poly1305.c',
191 'third_party/boringssl/crypto/cipher/e_des.c',
192 'third_party/boringssl/crypto/cipher/e_null.c',
193 'third_party/boringssl/crypto/cipher/e_rc2.c',
194 'third_party/boringssl/crypto/cipher/e_rc4.c',
195 'third_party/boringssl/crypto/cipher/e_ssl3.c',
196 'third_party/boringssl/crypto/cipher/e_tls.c',
197 'third_party/boringssl/crypto/cipher/tls_cbc.c',
198 'third_party/boringssl/crypto/cmac/cmac.c',
199 'third_party/boringssl/crypto/conf/conf.c',
200 'third_party/boringssl/crypto/cpu-arm.c',
201 'third_party/boringssl/crypto/cpu-intel.c',
202 'third_party/boringssl/crypto/crypto.c',
203 'third_party/boringssl/crypto/curve25519/curve25519.c',
204 'third_party/boringssl/crypto/des/des.c',
205 'third_party/boringssl/crypto/dh/check.c',
206 'third_party/boringssl/crypto/dh/dh.c',
207 'third_party/boringssl/crypto/dh/dh_asn1.c',
208 'third_party/boringssl/crypto/dh/params.c',
209 'third_party/boringssl/crypto/digest/digest.c',
210 'third_party/boringssl/crypto/digest/digests.c',
211 'third_party/boringssl/crypto/directory_posix.c',
212 'third_party/boringssl/crypto/directory_win.c',
213 'third_party/boringssl/crypto/dsa/dsa.c',
214 'third_party/boringssl/crypto/dsa/dsa_asn1.c',
215 'third_party/boringssl/crypto/ec/ec.c',
216 'third_party/boringssl/crypto/ec/ec_asn1.c',
217 'third_party/boringssl/crypto/ec/ec_key.c',
218 'third_party/boringssl/crypto/ec/ec_montgomery.c',
219 'third_party/boringssl/crypto/ec/oct.c',
220 'third_party/boringssl/crypto/ec/p224-64.c',
221 'third_party/boringssl/crypto/ec/p256-64.c',
222 'third_party/boringssl/crypto/ec/p256-x86_64.c',
223 'third_party/boringssl/crypto/ec/simple.c',
224 'third_party/boringssl/crypto/ec/util-64.c',
225 'third_party/boringssl/crypto/ec/wnaf.c',
226 'third_party/boringssl/crypto/ecdh/ecdh.c',
227 'third_party/boringssl/crypto/ecdsa/ecdsa.c',
228 'third_party/boringssl/crypto/ecdsa/ecdsa_asn1.c',
229 'third_party/boringssl/crypto/engine/engine.c',
230 'third_party/boringssl/crypto/err/err.c',
231 'third_party/boringssl/crypto/evp/algorithm.c',
232 'third_party/boringssl/crypto/evp/digestsign.c',
233 'third_party/boringssl/crypto/evp/evp.c',
234 'third_party/boringssl/crypto/evp/evp_asn1.c',
235 'third_party/boringssl/crypto/evp/evp_ctx.c',
236 'third_party/boringssl/crypto/evp/p_dsa_asn1.c',
237 'third_party/boringssl/crypto/evp/p_ec.c',
238 'third_party/boringssl/crypto/evp/p_ec_asn1.c',
239 'third_party/boringssl/crypto/evp/p_rsa.c',
240 'third_party/boringssl/crypto/evp/p_rsa_asn1.c',
241 'third_party/boringssl/crypto/evp/pbkdf.c',
242 'third_party/boringssl/crypto/evp/sign.c',
243 'third_party/boringssl/crypto/ex_data.c',
244 'third_party/boringssl/crypto/hkdf/hkdf.c',
245 'third_party/boringssl/crypto/hmac/hmac.c',
246 'third_party/boringssl/crypto/lhash/lhash.c',
247 'third_party/boringssl/crypto/md4/md4.c',
248 'third_party/boringssl/crypto/md5/md5.c',
249 'third_party/boringssl/crypto/mem.c',
250 'third_party/boringssl/crypto/modes/cbc.c',
251 'third_party/boringssl/crypto/modes/cfb.c',
252 'third_party/boringssl/crypto/modes/ctr.c',
253 'third_party/boringssl/crypto/modes/gcm.c',
254 'third_party/boringssl/crypto/modes/ofb.c',
255 'third_party/boringssl/crypto/obj/obj.c',
256 'third_party/boringssl/crypto/obj/obj_xref.c',
257 'third_party/boringssl/crypto/pem/pem_all.c',
258 'third_party/boringssl/crypto/pem/pem_info.c',
259 'third_party/boringssl/crypto/pem/pem_lib.c',
260 'third_party/boringssl/crypto/pem/pem_oth.c',
261 'third_party/boringssl/crypto/pem/pem_pk8.c',
262 'third_party/boringssl/crypto/pem/pem_pkey.c',
263 'third_party/boringssl/crypto/pem/pem_x509.c',
264 'third_party/boringssl/crypto/pem/pem_xaux.c',
265 'third_party/boringssl/crypto/pkcs8/p5_pbe.c',
266 'third_party/boringssl/crypto/pkcs8/p5_pbev2.c',
267 'third_party/boringssl/crypto/pkcs8/p8_pkey.c',
268 'third_party/boringssl/crypto/pkcs8/pkcs8.c',
269 'third_party/boringssl/crypto/poly1305/poly1305.c',
270 'third_party/boringssl/crypto/poly1305/poly1305_arm.c',
271 'third_party/boringssl/crypto/poly1305/poly1305_vec.c',
272 'third_party/boringssl/crypto/rand/rand.c',
273 'third_party/boringssl/crypto/rand/urandom.c',
274 'third_party/boringssl/crypto/rand/windows.c',
275 'third_party/boringssl/crypto/rc4/rc4.c',
276 'third_party/boringssl/crypto/refcount_c11.c',
277 'third_party/boringssl/crypto/refcount_lock.c',
278 'third_party/boringssl/crypto/rsa/blinding.c',
279 'third_party/boringssl/crypto/rsa/padding.c',
280 'third_party/boringssl/crypto/rsa/rsa.c',
281 'third_party/boringssl/crypto/rsa/rsa_asn1.c',
282 'third_party/boringssl/crypto/rsa/rsa_impl.c',
283 'third_party/boringssl/crypto/sha/sha1.c',
284 'third_party/boringssl/crypto/sha/sha256.c',
285 'third_party/boringssl/crypto/sha/sha512.c',
286 'third_party/boringssl/crypto/stack/stack.c',
287 'third_party/boringssl/crypto/thread.c',
288 'third_party/boringssl/crypto/thread_none.c',
289 'third_party/boringssl/crypto/thread_pthread.c',
290 'third_party/boringssl/crypto/thread_win.c',
291 'third_party/boringssl/crypto/time_support.c',
292 'third_party/boringssl/crypto/x509/a_digest.c',
293 'third_party/boringssl/crypto/x509/a_sign.c',
294 'third_party/boringssl/crypto/x509/a_strex.c',
295 'third_party/boringssl/crypto/x509/a_verify.c',
296 'third_party/boringssl/crypto/x509/asn1_gen.c',
297 'third_party/boringssl/crypto/x509/by_dir.c',
298 'third_party/boringssl/crypto/x509/by_file.c',
299 'third_party/boringssl/crypto/x509/i2d_pr.c',
300 'third_party/boringssl/crypto/x509/pkcs7.c',
301 'third_party/boringssl/crypto/x509/t_crl.c',
302 'third_party/boringssl/crypto/x509/t_req.c',
303 'third_party/boringssl/crypto/x509/t_x509.c',
304 'third_party/boringssl/crypto/x509/t_x509a.c',
305 'third_party/boringssl/crypto/x509/x509.c',
306 'third_party/boringssl/crypto/x509/x509_att.c',
307 'third_party/boringssl/crypto/x509/x509_cmp.c',
308 'third_party/boringssl/crypto/x509/x509_d2.c',
309 'third_party/boringssl/crypto/x509/x509_def.c',
310 'third_party/boringssl/crypto/x509/x509_ext.c',
311 'third_party/boringssl/crypto/x509/x509_lu.c',
312 'third_party/boringssl/crypto/x509/x509_obj.c',
313 'third_party/boringssl/crypto/x509/x509_r2x.c',
314 'third_party/boringssl/crypto/x509/x509_req.c',
315 'third_party/boringssl/crypto/x509/x509_set.c',
316 'third_party/boringssl/crypto/x509/x509_trs.c',
317 'third_party/boringssl/crypto/x509/x509_txt.c',
318 'third_party/boringssl/crypto/x509/x509_v3.c',
319 'third_party/boringssl/crypto/x509/x509_vfy.c',
320 'third_party/boringssl/crypto/x509/x509_vpm.c',
321 'third_party/boringssl/crypto/x509/x509cset.c',
322 'third_party/boringssl/crypto/x509/x509name.c',
323 'third_party/boringssl/crypto/x509/x509rset.c',
324 'third_party/boringssl/crypto/x509/x509spki.c',
325 'third_party/boringssl/crypto/x509/x509type.c',
326 'third_party/boringssl/crypto/x509/x_algor.c',
327 'third_party/boringssl/crypto/x509/x_all.c',
328 'third_party/boringssl/crypto/x509/x_attrib.c',
329 'third_party/boringssl/crypto/x509/x_crl.c',
330 'third_party/boringssl/crypto/x509/x_exten.c',
331 'third_party/boringssl/crypto/x509/x_info.c',
332 'third_party/boringssl/crypto/x509/x_name.c',
333 'third_party/boringssl/crypto/x509/x_pkey.c',
334 'third_party/boringssl/crypto/x509/x_pubkey.c',
335 'third_party/boringssl/crypto/x509/x_req.c',
336 'third_party/boringssl/crypto/x509/x_sig.c',
337 'third_party/boringssl/crypto/x509/x_spki.c',
338 'third_party/boringssl/crypto/x509/x_val.c',
339 'third_party/boringssl/crypto/x509/x_x509.c',
340 'third_party/boringssl/crypto/x509/x_x509a.c',
341 'third_party/boringssl/crypto/x509v3/pcy_cache.c',
342 'third_party/boringssl/crypto/x509v3/pcy_data.c',
343 'third_party/boringssl/crypto/x509v3/pcy_lib.c',
344 'third_party/boringssl/crypto/x509v3/pcy_map.c',
345 'third_party/boringssl/crypto/x509v3/pcy_node.c',
346 'third_party/boringssl/crypto/x509v3/pcy_tree.c',
347 'third_party/boringssl/crypto/x509v3/v3_akey.c',
348 'third_party/boringssl/crypto/x509v3/v3_akeya.c',
349 'third_party/boringssl/crypto/x509v3/v3_alt.c',
350 'third_party/boringssl/crypto/x509v3/v3_bcons.c',
351 'third_party/boringssl/crypto/x509v3/v3_bitst.c',
352 'third_party/boringssl/crypto/x509v3/v3_conf.c',
353 'third_party/boringssl/crypto/x509v3/v3_cpols.c',
354 'third_party/boringssl/crypto/x509v3/v3_crld.c',
355 'third_party/boringssl/crypto/x509v3/v3_enum.c',
356 'third_party/boringssl/crypto/x509v3/v3_extku.c',
357 'third_party/boringssl/crypto/x509v3/v3_genn.c',
358 'third_party/boringssl/crypto/x509v3/v3_ia5.c',
359 'third_party/boringssl/crypto/x509v3/v3_info.c',
360 'third_party/boringssl/crypto/x509v3/v3_int.c',
361 'third_party/boringssl/crypto/x509v3/v3_lib.c',
362 'third_party/boringssl/crypto/x509v3/v3_ncons.c',
363 'third_party/boringssl/crypto/x509v3/v3_pci.c',
364 'third_party/boringssl/crypto/x509v3/v3_pcia.c',
365 'third_party/boringssl/crypto/x509v3/v3_pcons.c',
366 'third_party/boringssl/crypto/x509v3/v3_pku.c',
367 'third_party/boringssl/crypto/x509v3/v3_pmaps.c',
368 'third_party/boringssl/crypto/x509v3/v3_prn.c',
369 'third_party/boringssl/crypto/x509v3/v3_purp.c',
370 'third_party/boringssl/crypto/x509v3/v3_skey.c',
371 'third_party/boringssl/crypto/x509v3/v3_sxnet.c',
372 'third_party/boringssl/crypto/x509v3/v3_utl.c',
373 'third_party/boringssl/ssl/custom_extensions.c',
374 'third_party/boringssl/ssl/d1_both.c',
375 'third_party/boringssl/ssl/d1_clnt.c',
376 'third_party/boringssl/ssl/d1_lib.c',
377 'third_party/boringssl/ssl/d1_meth.c',
378 'third_party/boringssl/ssl/d1_pkt.c',
379 'third_party/boringssl/ssl/d1_srtp.c',
380 'third_party/boringssl/ssl/d1_srvr.c',
381 'third_party/boringssl/ssl/dtls_record.c',
382 'third_party/boringssl/ssl/pqueue/pqueue.c',
383 'third_party/boringssl/ssl/s3_both.c',
384 'third_party/boringssl/ssl/s3_clnt.c',
385 'third_party/boringssl/ssl/s3_enc.c',
386 'third_party/boringssl/ssl/s3_lib.c',
387 'third_party/boringssl/ssl/s3_meth.c',
388 'third_party/boringssl/ssl/s3_pkt.c',
389 'third_party/boringssl/ssl/s3_srvr.c',
390 'third_party/boringssl/ssl/ssl_aead_ctx.c',
391 'third_party/boringssl/ssl/ssl_asn1.c',
392 'third_party/boringssl/ssl/ssl_buffer.c',
393 'third_party/boringssl/ssl/ssl_cert.c',
394 'third_party/boringssl/ssl/ssl_cipher.c',
395 'third_party/boringssl/ssl/ssl_file.c',
396 'third_party/boringssl/ssl/ssl_lib.c',
397 'third_party/boringssl/ssl/ssl_rsa.c',
398 'third_party/boringssl/ssl/ssl_session.c',
399 'third_party/boringssl/ssl/ssl_stat.c',
400 'third_party/boringssl/ssl/t1_enc.c',
401 'third_party/boringssl/ssl/t1_lib.c',
402 'third_party/boringssl/ssl/tls_record.c',
403 ],
404 "include_dirs": [ "third_party/boringssl/include" ]
405 },
406 {
407 'cflags': [
408 '-std=c99',
409 '-Wall',
410 '-Werror'
411 ],
412 'target_name': 'z',
413 'product_prefix': 'lib',
414 'type': 'static_library',
415 'dependencies': [
416 ],
417 'sources': [
418 'third_party/zlib/adler32.c',
419 'third_party/zlib/compress.c',
420 'third_party/zlib/crc32.c',
421 'third_party/zlib/deflate.c',
422 'third_party/zlib/gzclose.c',
423 'third_party/zlib/gzlib.c',
424 'third_party/zlib/gzread.c',
425 'third_party/zlib/gzwrite.c',
426 'third_party/zlib/infback.c',
427 'third_party/zlib/inffast.c',
428 'third_party/zlib/inflate.c',
429 'third_party/zlib/inftrees.c',
430 'third_party/zlib/trees.c',
431 'third_party/zlib/uncompr.c',
432 'third_party/zlib/zutil.c',
433 ],
434 "include_dirs": [ "third_party/boringssl/include" ]
435 },
436 ]
437 }]
438 ],
murgatroid99fd994f12015-10-09 14:02:28 -0700439 'targets': [
440 {
murgatroid993abed312016-01-07 17:16:46 -0800441 'cflags': [
442 '-std=c99',
443 '-Wall',
444 '-Werror'
445 ],
murgatroid99fd994f12015-10-09 14:02:28 -0700446 'target_name': 'gpr',
447 'product_prefix': 'lib',
448 'type': 'static_library',
449 'dependencies': [
450 ],
451 'sources': [
Craig Tiller95190092015-10-10 20:06:35 -0700452 'src/core/profiling/basic_timers.c',
453 'src/core/profiling/stap_timers.c',
murgatroid99fd994f12015-10-09 14:02:28 -0700454 'src/core/support/alloc.c',
Craig Tillerfba79f22015-11-23 11:06:55 -0800455 'src/core/support/avl.c',
murgatroid99fd994f12015-10-09 14:02:28 -0700456 'src/core/support/cmdline.c',
457 'src/core/support/cpu_iphone.c',
458 'src/core/support/cpu_linux.c',
459 'src/core/support/cpu_posix.c',
460 'src/core/support/cpu_windows.c',
461 'src/core/support/env_linux.c',
462 'src/core/support/env_posix.c',
463 'src/core/support/env_win32.c',
464 'src/core/support/file.c',
465 'src/core/support/file_posix.c',
466 'src/core/support/file_win32.c',
467 'src/core/support/histogram.c',
468 'src/core/support/host_port.c',
469 'src/core/support/log.c',
470 'src/core/support/log_android.c',
471 'src/core/support/log_linux.c',
472 'src/core/support/log_posix.c',
473 'src/core/support/log_win32.c',
474 'src/core/support/murmur_hash.c',
475 'src/core/support/slice.c',
476 'src/core/support/slice_buffer.c',
477 'src/core/support/stack_lockfree.c',
478 'src/core/support/string.c',
479 'src/core/support/string_posix.c',
480 'src/core/support/string_win32.c',
481 'src/core/support/subprocess_posix.c',
482 'src/core/support/sync.c',
483 'src/core/support/sync_posix.c',
484 'src/core/support/sync_win32.c',
485 'src/core/support/thd.c',
486 'src/core/support/thd_posix.c',
487 'src/core/support/thd_win32.c',
488 'src/core/support/time.c',
489 'src/core/support/time_posix.c',
Craig Tiller95190092015-10-10 20:06:35 -0700490 'src/core/support/time_precise.c',
murgatroid99fd994f12015-10-09 14:02:28 -0700491 'src/core/support/time_win32.c',
492 'src/core/support/tls_pthread.c',
493 ],
murgatroid996ffdb942015-10-22 16:10:05 -0700494 "conditions": [
495 ['OS == "mac"', {
496 'xcode_settings': {
murgatroid9922c448b2015-10-23 10:25:30 -0700497 'MACOSX_DEPLOYMENT_TARGET': '10.9'
murgatroid996ffdb942015-10-22 16:10:05 -0700498 }
499 }]
murgatroid995c56c922016-01-25 13:32:52 -0800500 ]
murgatroid99fd994f12015-10-09 14:02:28 -0700501 },
502 {
murgatroid993abed312016-01-07 17:16:46 -0800503 'cflags': [
504 '-std=c99',
505 '-Wall',
506 '-Werror'
507 ],
murgatroid99fd994f12015-10-09 14:02:28 -0700508 'target_name': 'grpc',
509 'product_prefix': 'lib',
510 'type': 'static_library',
511 'dependencies': [
512 'gpr',
513 ],
514 'sources': [
515 'src/core/httpcli/httpcli_security_connector.c',
516 'src/core/security/base64.c',
517 'src/core/security/client_auth_filter.c',
518 'src/core/security/credentials.c',
519 'src/core/security/credentials_metadata.c',
520 'src/core/security/credentials_posix.c',
521 'src/core/security/credentials_win32.c',
522 'src/core/security/google_default_credentials.c',
523 'src/core/security/handshake.c',
524 'src/core/security/json_token.c',
525 'src/core/security/jwt_verifier.c',
526 'src/core/security/secure_endpoint.c',
527 'src/core/security/security_connector.c',
528 'src/core/security/security_context.c',
529 'src/core/security/server_auth_filter.c',
530 'src/core/security/server_secure_chttp2.c',
531 'src/core/surface/init_secure.c',
532 'src/core/surface/secure_channel_create.c',
533 'src/core/tsi/fake_transport_security.c',
534 'src/core/tsi/ssl_transport_security.c',
535 'src/core/tsi/transport_security.c',
536 'src/core/census/grpc_context.c',
537 'src/core/census/grpc_filter.c',
538 'src/core/channel/channel_args.c',
539 'src/core/channel/channel_stack.c',
540 'src/core/channel/client_channel.c',
David Garcia Quintasb5ab8a22015-10-19 15:41:42 -0700541 'src/core/channel/client_uchannel.c',
murgatroid99fd994f12015-10-09 14:02:28 -0700542 'src/core/channel/compress_filter.c',
543 'src/core/channel/connected_channel.c',
544 'src/core/channel/http_client_filter.c',
545 'src/core/channel/http_server_filter.c',
Craig Tillerca1593a2015-11-02 14:08:33 -0800546 'src/core/channel/subchannel_call_holder.c',
murgatroid99fd994f12015-10-09 14:02:28 -0700547 'src/core/client_config/client_config.c',
548 'src/core/client_config/connector.c',
yang-ga6124122015-11-05 22:36:20 -0800549 'src/core/client_config/default_initial_connect_string.c',
550 'src/core/client_config/initial_connect_string.c',
murgatroid99fd994f12015-10-09 14:02:28 -0700551 'src/core/client_config/lb_policies/pick_first.c',
552 'src/core/client_config/lb_policies/round_robin.c',
553 'src/core/client_config/lb_policy.c',
554 'src/core/client_config/lb_policy_factory.c',
555 'src/core/client_config/lb_policy_registry.c',
556 'src/core/client_config/resolver.c',
557 'src/core/client_config/resolver_factory.c',
558 'src/core/client_config/resolver_registry.c',
559 'src/core/client_config/resolvers/dns_resolver.c',
560 'src/core/client_config/resolvers/sockaddr_resolver.c',
561 'src/core/client_config/subchannel.c',
562 'src/core/client_config/subchannel_factory.c',
murgatroid99fd994f12015-10-09 14:02:28 -0700563 'src/core/client_config/uri_parser.c',
564 'src/core/compression/algorithm.c',
565 'src/core/compression/message_compress.c',
566 'src/core/debug/trace.c',
567 'src/core/httpcli/format_request.c',
568 'src/core/httpcli/httpcli.c',
569 'src/core/httpcli/parser.c',
murgatroid99fd994f12015-10-09 14:02:28 -0700570 'src/core/iomgr/closure.c',
571 'src/core/iomgr/endpoint.c',
572 'src/core/iomgr/endpoint_pair_posix.c',
573 'src/core/iomgr/endpoint_pair_windows.c',
574 'src/core/iomgr/exec_ctx.c',
David Garcia Quintas63e72a72015-10-12 22:07:32 -0700575 'src/core/iomgr/executor.c',
murgatroid99fd994f12015-10-09 14:02:28 -0700576 'src/core/iomgr/fd_posix.c',
577 'src/core/iomgr/iocp_windows.c',
578 'src/core/iomgr/iomgr.c',
579 'src/core/iomgr/iomgr_posix.c',
580 'src/core/iomgr/iomgr_windows.c',
581 'src/core/iomgr/pollset_multipoller_with_epoll.c',
582 'src/core/iomgr/pollset_multipoller_with_poll_posix.c',
583 'src/core/iomgr/pollset_posix.c',
584 'src/core/iomgr/pollset_set_posix.c',
585 'src/core/iomgr/pollset_set_windows.c',
586 'src/core/iomgr/pollset_windows.c',
587 'src/core/iomgr/resolve_address_posix.c',
588 'src/core/iomgr/resolve_address_windows.c',
589 'src/core/iomgr/sockaddr_utils.c',
590 'src/core/iomgr/socket_utils_common_posix.c',
591 'src/core/iomgr/socket_utils_linux.c',
592 'src/core/iomgr/socket_utils_posix.c',
593 'src/core/iomgr/socket_windows.c',
594 'src/core/iomgr/tcp_client_posix.c',
595 'src/core/iomgr/tcp_client_windows.c',
596 'src/core/iomgr/tcp_posix.c',
597 'src/core/iomgr/tcp_server_posix.c',
598 'src/core/iomgr/tcp_server_windows.c',
599 'src/core/iomgr/tcp_windows.c',
600 'src/core/iomgr/time_averaged_stats.c',
David Garcia Quintasb65e4212015-10-14 12:00:21 -0700601 'src/core/iomgr/timer.c',
602 'src/core/iomgr/timer_heap.c',
murgatroid99fd994f12015-10-09 14:02:28 -0700603 'src/core/iomgr/udp_server.c',
604 'src/core/iomgr/wakeup_fd_eventfd.c',
605 'src/core/iomgr/wakeup_fd_nospecial.c',
606 'src/core/iomgr/wakeup_fd_pipe.c',
607 'src/core/iomgr/wakeup_fd_posix.c',
608 'src/core/iomgr/workqueue_posix.c',
609 'src/core/iomgr/workqueue_windows.c',
610 'src/core/json/json.c',
611 'src/core/json/json_reader.c',
612 'src/core/json/json_string.c',
613 'src/core/json/json_writer.c',
murgatroid99fd994f12015-10-09 14:02:28 -0700614 'src/core/surface/api_trace.c',
615 'src/core/surface/byte_buffer.c',
murgatroid99fd994f12015-10-09 14:02:28 -0700616 'src/core/surface/byte_buffer_reader.c',
617 'src/core/surface/call.c',
618 'src/core/surface/call_details.c',
619 'src/core/surface/call_log_batch.c',
620 'src/core/surface/channel.c',
621 'src/core/surface/channel_connectivity.c',
622 'src/core/surface/channel_create.c',
Craig Tiller26dab312015-12-07 14:43:47 -0800623 'src/core/surface/channel_ping.c',
murgatroid99fd994f12015-10-09 14:02:28 -0700624 'src/core/surface/completion_queue.c',
625 'src/core/surface/event_string.c',
626 'src/core/surface/init.c',
627 'src/core/surface/lame_client.c',
628 'src/core/surface/metadata_array.c',
629 'src/core/surface/server.c',
630 'src/core/surface/server_chttp2.c',
631 'src/core/surface/server_create.c',
murgatroid99c3910ca2016-01-06 13:14:23 -0800632 'src/core/surface/validate_metadata.c',
murgatroid99fd994f12015-10-09 14:02:28 -0700633 'src/core/surface/version.c',
Craig Tillerca1593a2015-11-02 14:08:33 -0800634 'src/core/transport/byte_stream.c',
murgatroid99fd994f12015-10-09 14:02:28 -0700635 'src/core/transport/chttp2/alpn.c',
636 'src/core/transport/chttp2/bin_encoder.c',
637 'src/core/transport/chttp2/frame_data.c',
638 'src/core/transport/chttp2/frame_goaway.c',
639 'src/core/transport/chttp2/frame_ping.c',
640 'src/core/transport/chttp2/frame_rst_stream.c',
641 'src/core/transport/chttp2/frame_settings.c',
642 'src/core/transport/chttp2/frame_window_update.c',
Craig Tillerca1593a2015-11-02 14:08:33 -0800643 'src/core/transport/chttp2/hpack_encoder.c',
murgatroid99fd994f12015-10-09 14:02:28 -0700644 'src/core/transport/chttp2/hpack_parser.c',
645 'src/core/transport/chttp2/hpack_table.c',
646 'src/core/transport/chttp2/huffsyms.c',
647 'src/core/transport/chttp2/incoming_metadata.c',
648 'src/core/transport/chttp2/parsing.c',
649 'src/core/transport/chttp2/status_conversion.c',
murgatroid99fd994f12015-10-09 14:02:28 -0700650 'src/core/transport/chttp2/stream_lists.c',
651 'src/core/transport/chttp2/stream_map.c',
652 'src/core/transport/chttp2/timeout_encoding.c',
653 'src/core/transport/chttp2/varint.c',
654 'src/core/transport/chttp2/writing.c',
655 'src/core/transport/chttp2_transport.c',
656 'src/core/transport/connectivity_state.c',
657 'src/core/transport/metadata.c',
Craig Tillerca1593a2015-11-02 14:08:33 -0800658 'src/core/transport/metadata_batch.c',
Craig Tiller2e7687c2015-11-18 14:56:46 -0800659 'src/core/transport/static_metadata.c',
murgatroid99fd994f12015-10-09 14:02:28 -0700660 'src/core/transport/transport.c',
661 'src/core/transport/transport_op_string.c',
662 'src/core/census/context.c',
663 'src/core/census/initialize.c',
664 'src/core/census/operation.c',
Alistair Veitchbb30d252016-01-12 17:36:05 -0800665 'src/core/census/tag_set.c',
murgatroid99fd994f12015-10-09 14:02:28 -0700666 'src/core/census/tracing.c',
667 ],
murgatroid996ffdb942015-10-22 16:10:05 -0700668 "conditions": [
669 ['OS == "mac"', {
670 'xcode_settings': {
murgatroid9922c448b2015-10-23 10:25:30 -0700671 'MACOSX_DEPLOYMENT_TARGET': '10.9'
murgatroid996ffdb942015-10-22 16:10:05 -0700672 }
673 }]
murgatroid995c56c922016-01-25 13:32:52 -0800674 ]
murgatroid99fd994f12015-10-09 14:02:28 -0700675 },
murgatroid992af89e42015-10-01 11:54:00 -0700676 {
677 'include_dirs': [
678 "<!(node -e \"require('nan')\")"
679 ],
680 'cflags': [
murgatroid993abed312016-01-07 17:16:46 -0800681 '-std=c++11',
murgatroid992af89e42015-10-01 11:54:00 -0700682 '-Wall',
683 '-pthread',
684 '-g',
685 '-zdefs',
686 '-Werror',
687 '-Wno-error=deprecated-declarations'
688 ],
689 'ldflags': [
690 '-g'
691 ],
692 "conditions": [
murgatroid995c56c922016-01-25 13:32:52 -0800693 ['OS=="mac"', {
murgatroid992af89e42015-10-01 11:54:00 -0700694 'xcode_settings': {
695 'MACOSX_DEPLOYMENT_TARGET': '10.9',
696 'OTHER_CFLAGS': [
murgatroid992af89e42015-10-01 11:54:00 -0700697 '-stdlib=libc++'
698 ]
699 }
murgatroid995c56c922016-01-25 13:32:52 -0800700 }],
701 ['OS=="win"', {
702 'dependencies': [
703 "boringssl",
704 "z",
705 ]
murgatroid992af89e42015-10-01 11:54:00 -0700706 }]
707 ],
708 "target_name": "grpc_node",
709 "sources": [
710 "src/node/ext/byte_buffer.cc",
711 "src/node/ext/call.cc",
murgatroid9947f519e2015-10-07 12:34:24 -0700712 "src/node/ext/call_credentials.cc",
murgatroid992af89e42015-10-01 11:54:00 -0700713 "src/node/ext/channel.cc",
murgatroid9947f519e2015-10-07 12:34:24 -0700714 "src/node/ext/channel_credentials.cc",
murgatroid992af89e42015-10-01 11:54:00 -0700715 "src/node/ext/completion_queue_async_worker.cc",
murgatroid992af89e42015-10-01 11:54:00 -0700716 "src/node/ext/node_grpc.cc",
717 "src/node/ext/server.cc",
718 "src/node/ext/server_credentials.cc",
murgatroid99879bc4f2015-11-05 10:35:04 -0800719 "src/node/ext/timeval.cc",
murgatroid992af89e42015-10-01 11:54:00 -0700720 ],
721 "dependencies": [
murgatroid99879bc4f2015-11-05 10:35:04 -0800722 "grpc",
723 "gpr",
murgatroid992af89e42015-10-01 11:54:00 -0700724 ]
murgatroid99879bc4f2015-11-05 10:35:04 -0800725 },
murgatroid992af89e42015-10-01 11:54:00 -0700726 ]
727}