blob: c7ed04517d10999d5698a39c668b788b1ee169f6 [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
Craig Tiller6169d5f2016-03-31 07:46:18 -07008# Copyright 2015, Google Inc.
murgatroid99f33b1322015-10-05 09:45:04 -07009# 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{
murgatroid99dc230462016-10-25 14:12:42 -070040 'variables': {
murgatroid991191b722017-02-08 11:56:52 -080041 'runtime%': 'node',
42 # UV integration in C core is disabled by default while bugs are ironed
43 # out. It can be re-enabled for one build by setting the npm config
44 # variable grpc_uv to true, and it can be re-enabled permanently by
45 # setting it to true here.
46 'grpc_uv%': 'false'
murgatroid99dc230462016-10-25 14:12:42 -070047 },
murgatroid99fd994f12015-10-09 14:02:28 -070048 'target_defaults': {
murgatroid99fd994f12015-10-09 14:02:28 -070049 'include_dirs': [
50 '.',
murgatroid995c56c922016-01-25 13:32:52 -080051 'include'
murgatroid99a89d9e72015-10-13 16:03:16 -070052 ],
murgatroid999030c812016-09-16 13:25:08 -070053 'defines': [
murgatroid99cb4b2b52016-10-27 11:30:50 -070054 'GPR_BACKWARDS_COMPATIBILITY_MODE'
murgatroid999030c812016-09-16 13:25:08 -070055 ],
murgatroid99a89d9e72015-10-13 16:03:16 -070056 'conditions': [
murgatroid991191b722017-02-08 11:56:52 -080057 ['runtime=="node" and grpc_uv=="true"', {
murgatroid99cb4b2b52016-10-27 11:30:50 -070058 'defines': [
murgatroid996f62c0a2017-02-06 17:31:15 -080059 # Disabling this while bugs are ironed out. Uncomment this to
60 # re-enable libuv integration in C core.
murgatroid991191b722017-02-08 11:56:52 -080061 'GRPC_UV'
murgatroid99cb4b2b52016-10-27 11:30:50 -070062 ]
63 }],
murgatroid99e8ec16d2017-01-13 11:00:53 -080064 ['OS!="win" and runtime=="electron"', {
Michael Lumish88162f82017-01-12 17:37:58 -080065 "defines": [
66 'OPENSSL_NO_THREADS'
67 ]
68 }],
murgatroid99dc230462016-10-25 14:12:42 -070069 # This is the condition for using boringssl
70 ['OS=="win" or runtime=="electron"', {
71 "include_dirs": [
72 "third_party/boringssl/include"
73 ],
74 "defines": [
Michael Lumish88162f82017-01-12 17:37:58 -080075 'OPENSSL_NO_ASM'
murgatroid99dc230462016-10-25 14:12:42 -070076 ]
77 }, {
murgatroid991191b722017-02-08 11:56:52 -080078 # As of the beginning of 2017, we only support versions of Node with
79 # embedded versions of OpenSSL that support ALPN
murgatroid99dc230462016-10-25 14:12:42 -070080 'defines': [
murgatroid991191b722017-02-08 11:56:52 -080081 'TSI_OPENSSL_ALPN_SUPPORT=1'
murgatroid99dc230462016-10-25 14:12:42 -070082 ],
83 'include_dirs': [
84 '<(node_root_dir)/deps/openssl/openssl/include',
85 ],
86 'conditions': [
87 ["target_arch=='ia32'", {
88 "include_dirs": [ "<(node_root_dir)/deps/openssl/config/piii" ]
89 }],
90 ["target_arch=='x64'", {
91 "include_dirs": [ "<(node_root_dir)/deps/openssl/config/k8" ]
92 }],
93 ["target_arch=='arm'", {
94 "include_dirs": [ "<(node_root_dir)/deps/openssl/config/arm" ]
95 }]
96 ]
97 }],
murgatroid995c56c922016-01-25 13:32:52 -080098 ['OS == "win"', {
murgatroid99673f65b2016-02-01 11:19:07 -080099 "include_dirs": [
murgatroid99673f65b2016-02-01 11:19:07 -0800100 "third_party/zlib"
101 ],
Michael Lumishe2f34652016-01-27 16:41:54 -0800102 "defines": [
103 '_WIN32_WINNT=0x0600',
104 'WIN32_LEAN_AND_MEAN',
105 '_HAS_EXCEPTIONS=0',
106 'UNICODE',
107 '_UNICODE',
108 'NOMINMAX',
Michael Lumishe2f34652016-01-27 16:41:54 -0800109 ],
110 "msvs_settings": {
111 'VCCLCompilerTool': {
112 'RuntimeLibrary': 1, # static debug
113 }
114 },
115 "libraries": [
116 "ws2_32"
117 ]
118 }, { # OS != "win"
murgatroid99673f65b2016-02-01 11:19:07 -0800119 'variables': {
120 'config': '<!(echo $CONFIG)',
murgatroid99673f65b2016-02-01 11:19:07 -0800121 },
murgatroid995c56c922016-01-25 13:32:52 -0800122 'include_dirs': [
murgatroid995c56c922016-01-25 13:32:52 -0800123 '<(node_root_dir)/deps/zlib'
124 ],
murgatroid99a89d9e72015-10-13 16:03:16 -0700125 'conditions': [
126 ['config=="gcov"', {
127 'cflags': [
128 '-ftest-coverage',
129 '-fprofile-arcs',
130 '-O0'
131 ],
132 'ldflags': [
133 '-ftest-coverage',
134 '-fprofile-arcs'
135 ]
136 }
murgatroid99dc230462016-10-25 14:12:42 -0700137 ]
murgatroid99a89d9e72015-10-13 16:03:16 -0700138 ]
murgatroid99afe46982015-10-23 10:17:26 -0700139 }]
murgatroid99fd994f12015-10-09 14:02:28 -0700140 ]
141 },
murgatroid995c56c922016-01-25 13:32:52 -0800142 'conditions': [
murgatroid99dc230462016-10-25 14:12:42 -0700143 ['OS=="win" or runtime=="electron"', {
murgatroid995c56c922016-01-25 13:32:52 -0800144 'targets': [
murgatroid99af6c1782016-01-28 13:14:24 -0800145 {
murgatroid995c56c922016-01-25 13:32:52 -0800146 'cflags': [
147 '-std=c99',
148 '-Wall',
149 '-Werror'
150 ],
151 'target_name': 'boringssl',
152 'product_prefix': 'lib',
153 'type': 'static_library',
154 'dependencies': [
155 ],
156 'sources': [
157 'src/boringssl/err_data.c',
158 'third_party/boringssl/crypto/aes/aes.c',
159 'third_party/boringssl/crypto/aes/mode_wrappers.c',
160 'third_party/boringssl/crypto/asn1/a_bitstr.c',
161 'third_party/boringssl/crypto/asn1/a_bool.c',
murgatroid995c56c922016-01-25 13:32:52 -0800162 'third_party/boringssl/crypto/asn1/a_d2i_fp.c',
163 'third_party/boringssl/crypto/asn1/a_dup.c',
164 'third_party/boringssl/crypto/asn1/a_enum.c',
165 'third_party/boringssl/crypto/asn1/a_gentm.c',
166 'third_party/boringssl/crypto/asn1/a_i2d_fp.c',
167 'third_party/boringssl/crypto/asn1/a_int.c',
168 'third_party/boringssl/crypto/asn1/a_mbstr.c',
169 'third_party/boringssl/crypto/asn1/a_object.c',
170 'third_party/boringssl/crypto/asn1/a_octet.c',
171 'third_party/boringssl/crypto/asn1/a_print.c',
172 'third_party/boringssl/crypto/asn1/a_strnid.c',
173 'third_party/boringssl/crypto/asn1/a_time.c',
174 'third_party/boringssl/crypto/asn1/a_type.c',
175 'third_party/boringssl/crypto/asn1/a_utctm.c',
176 'third_party/boringssl/crypto/asn1/a_utf8.c',
177 'third_party/boringssl/crypto/asn1/asn1_lib.c',
178 'third_party/boringssl/crypto/asn1/asn1_par.c',
179 'third_party/boringssl/crypto/asn1/asn_pack.c',
murgatroid995c56c922016-01-25 13:32:52 -0800180 'third_party/boringssl/crypto/asn1/f_enum.c',
181 'third_party/boringssl/crypto/asn1/f_int.c',
182 'third_party/boringssl/crypto/asn1/f_string.c',
183 'third_party/boringssl/crypto/asn1/t_bitst.c',
murgatroid995c56c922016-01-25 13:32:52 -0800184 'third_party/boringssl/crypto/asn1/tasn_dec.c',
185 'third_party/boringssl/crypto/asn1/tasn_enc.c',
186 'third_party/boringssl/crypto/asn1/tasn_fre.c',
187 'third_party/boringssl/crypto/asn1/tasn_new.c',
murgatroid995c56c922016-01-25 13:32:52 -0800188 'third_party/boringssl/crypto/asn1/tasn_typ.c',
189 'third_party/boringssl/crypto/asn1/tasn_utl.c',
190 'third_party/boringssl/crypto/asn1/x_bignum.c',
191 'third_party/boringssl/crypto/asn1/x_long.c',
192 'third_party/boringssl/crypto/base64/base64.c',
193 'third_party/boringssl/crypto/bio/bio.c',
194 'third_party/boringssl/crypto/bio/bio_mem.c',
195 'third_party/boringssl/crypto/bio/buffer.c',
196 'third_party/boringssl/crypto/bio/connect.c',
197 'third_party/boringssl/crypto/bio/fd.c',
198 'third_party/boringssl/crypto/bio/file.c',
199 'third_party/boringssl/crypto/bio/hexdump.c',
200 'third_party/boringssl/crypto/bio/pair.c',
201 'third_party/boringssl/crypto/bio/printf.c',
202 'third_party/boringssl/crypto/bio/socket.c',
203 'third_party/boringssl/crypto/bio/socket_helper.c',
204 'third_party/boringssl/crypto/bn/add.c',
205 'third_party/boringssl/crypto/bn/asm/x86_64-gcc.c',
206 'third_party/boringssl/crypto/bn/bn.c',
207 'third_party/boringssl/crypto/bn/bn_asn1.c',
208 'third_party/boringssl/crypto/bn/cmp.c',
209 'third_party/boringssl/crypto/bn/convert.c',
210 'third_party/boringssl/crypto/bn/ctx.c',
211 'third_party/boringssl/crypto/bn/div.c',
212 'third_party/boringssl/crypto/bn/exponentiation.c',
213 'third_party/boringssl/crypto/bn/gcd.c',
214 'third_party/boringssl/crypto/bn/generic.c',
215 'third_party/boringssl/crypto/bn/kronecker.c',
216 'third_party/boringssl/crypto/bn/montgomery.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800217 'third_party/boringssl/crypto/bn/montgomery_inv.c',
murgatroid995c56c922016-01-25 13:32:52 -0800218 'third_party/boringssl/crypto/bn/mul.c',
219 'third_party/boringssl/crypto/bn/prime.c',
220 'third_party/boringssl/crypto/bn/random.c',
221 'third_party/boringssl/crypto/bn/rsaz_exp.c',
222 'third_party/boringssl/crypto/bn/shift.c',
223 'third_party/boringssl/crypto/bn/sqrt.c',
224 'third_party/boringssl/crypto/buf/buf.c',
itessier2a522032016-04-19 17:38:51 -0700225 'third_party/boringssl/crypto/bytestring/asn1_compat.c',
murgatroid995c56c922016-01-25 13:32:52 -0800226 'third_party/boringssl/crypto/bytestring/ber.c',
227 'third_party/boringssl/crypto/bytestring/cbb.c',
228 'third_party/boringssl/crypto/bytestring/cbs.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800229 'third_party/boringssl/crypto/chacha/chacha.c',
murgatroid995c56c922016-01-25 13:32:52 -0800230 'third_party/boringssl/crypto/cipher/aead.c',
231 'third_party/boringssl/crypto/cipher/cipher.c',
232 'third_party/boringssl/crypto/cipher/derive_key.c',
233 'third_party/boringssl/crypto/cipher/e_aes.c',
234 'third_party/boringssl/crypto/cipher/e_chacha20poly1305.c',
235 'third_party/boringssl/crypto/cipher/e_des.c',
236 'third_party/boringssl/crypto/cipher/e_null.c',
237 'third_party/boringssl/crypto/cipher/e_rc2.c',
238 'third_party/boringssl/crypto/cipher/e_rc4.c',
239 'third_party/boringssl/crypto/cipher/e_ssl3.c',
240 'third_party/boringssl/crypto/cipher/e_tls.c',
241 'third_party/boringssl/crypto/cipher/tls_cbc.c',
242 'third_party/boringssl/crypto/cmac/cmac.c',
243 'third_party/boringssl/crypto/conf/conf.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800244 'third_party/boringssl/crypto/cpu-aarch64-linux.c',
245 'third_party/boringssl/crypto/cpu-arm-linux.c',
murgatroid995c56c922016-01-25 13:32:52 -0800246 'third_party/boringssl/crypto/cpu-arm.c',
247 'third_party/boringssl/crypto/cpu-intel.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800248 'third_party/boringssl/crypto/cpu-ppc64le.c',
murgatroid995c56c922016-01-25 13:32:52 -0800249 'third_party/boringssl/crypto/crypto.c',
250 'third_party/boringssl/crypto/curve25519/curve25519.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800251 'third_party/boringssl/crypto/curve25519/spake25519.c',
itessier2a522032016-04-19 17:38:51 -0700252 'third_party/boringssl/crypto/curve25519/x25519-x86_64.c',
murgatroid995c56c922016-01-25 13:32:52 -0800253 'third_party/boringssl/crypto/des/des.c',
254 'third_party/boringssl/crypto/dh/check.c',
255 'third_party/boringssl/crypto/dh/dh.c',
256 'third_party/boringssl/crypto/dh/dh_asn1.c',
257 'third_party/boringssl/crypto/dh/params.c',
258 'third_party/boringssl/crypto/digest/digest.c',
259 'third_party/boringssl/crypto/digest/digests.c',
murgatroid995c56c922016-01-25 13:32:52 -0800260 'third_party/boringssl/crypto/dsa/dsa.c',
261 'third_party/boringssl/crypto/dsa/dsa_asn1.c',
262 'third_party/boringssl/crypto/ec/ec.c',
263 'third_party/boringssl/crypto/ec/ec_asn1.c',
264 'third_party/boringssl/crypto/ec/ec_key.c',
265 'third_party/boringssl/crypto/ec/ec_montgomery.c',
266 'third_party/boringssl/crypto/ec/oct.c',
267 'third_party/boringssl/crypto/ec/p224-64.c',
268 'third_party/boringssl/crypto/ec/p256-64.c',
269 'third_party/boringssl/crypto/ec/p256-x86_64.c',
270 'third_party/boringssl/crypto/ec/simple.c',
271 'third_party/boringssl/crypto/ec/util-64.c',
272 'third_party/boringssl/crypto/ec/wnaf.c',
273 'third_party/boringssl/crypto/ecdh/ecdh.c',
274 'third_party/boringssl/crypto/ecdsa/ecdsa.c',
275 'third_party/boringssl/crypto/ecdsa/ecdsa_asn1.c',
276 'third_party/boringssl/crypto/engine/engine.c',
277 'third_party/boringssl/crypto/err/err.c',
murgatroid995c56c922016-01-25 13:32:52 -0800278 'third_party/boringssl/crypto/evp/digestsign.c',
279 'third_party/boringssl/crypto/evp/evp.c',
280 'third_party/boringssl/crypto/evp/evp_asn1.c',
281 'third_party/boringssl/crypto/evp/evp_ctx.c',
282 'third_party/boringssl/crypto/evp/p_dsa_asn1.c',
283 'third_party/boringssl/crypto/evp/p_ec.c',
284 'third_party/boringssl/crypto/evp/p_ec_asn1.c',
285 'third_party/boringssl/crypto/evp/p_rsa.c',
286 'third_party/boringssl/crypto/evp/p_rsa_asn1.c',
287 'third_party/boringssl/crypto/evp/pbkdf.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800288 'third_party/boringssl/crypto/evp/print.c',
murgatroid995c56c922016-01-25 13:32:52 -0800289 'third_party/boringssl/crypto/evp/sign.c',
290 'third_party/boringssl/crypto/ex_data.c',
291 'third_party/boringssl/crypto/hkdf/hkdf.c',
292 'third_party/boringssl/crypto/hmac/hmac.c',
293 'third_party/boringssl/crypto/lhash/lhash.c',
294 'third_party/boringssl/crypto/md4/md4.c',
295 'third_party/boringssl/crypto/md5/md5.c',
296 'third_party/boringssl/crypto/mem.c',
297 'third_party/boringssl/crypto/modes/cbc.c',
298 'third_party/boringssl/crypto/modes/cfb.c',
299 'third_party/boringssl/crypto/modes/ctr.c',
300 'third_party/boringssl/crypto/modes/gcm.c',
301 'third_party/boringssl/crypto/modes/ofb.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800302 'third_party/boringssl/crypto/newhope/error_correction.c',
303 'third_party/boringssl/crypto/newhope/newhope.c',
304 'third_party/boringssl/crypto/newhope/ntt.c',
305 'third_party/boringssl/crypto/newhope/poly.c',
306 'third_party/boringssl/crypto/newhope/precomp.c',
307 'third_party/boringssl/crypto/newhope/reduce.c',
murgatroid995c56c922016-01-25 13:32:52 -0800308 'third_party/boringssl/crypto/obj/obj.c',
309 'third_party/boringssl/crypto/obj/obj_xref.c',
310 'third_party/boringssl/crypto/pem/pem_all.c',
311 'third_party/boringssl/crypto/pem/pem_info.c',
312 'third_party/boringssl/crypto/pem/pem_lib.c',
313 'third_party/boringssl/crypto/pem/pem_oth.c',
314 'third_party/boringssl/crypto/pem/pem_pk8.c',
315 'third_party/boringssl/crypto/pem/pem_pkey.c',
316 'third_party/boringssl/crypto/pem/pem_x509.c',
317 'third_party/boringssl/crypto/pem/pem_xaux.c',
318 'third_party/boringssl/crypto/pkcs8/p5_pbe.c',
319 'third_party/boringssl/crypto/pkcs8/p5_pbev2.c',
320 'third_party/boringssl/crypto/pkcs8/p8_pkey.c',
321 'third_party/boringssl/crypto/pkcs8/pkcs8.c',
322 'third_party/boringssl/crypto/poly1305/poly1305.c',
323 'third_party/boringssl/crypto/poly1305/poly1305_arm.c',
324 'third_party/boringssl/crypto/poly1305/poly1305_vec.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800325 'third_party/boringssl/crypto/rand/deterministic.c',
murgatroid995c56c922016-01-25 13:32:52 -0800326 'third_party/boringssl/crypto/rand/rand.c',
327 'third_party/boringssl/crypto/rand/urandom.c',
328 'third_party/boringssl/crypto/rand/windows.c',
329 'third_party/boringssl/crypto/rc4/rc4.c',
330 'third_party/boringssl/crypto/refcount_c11.c',
331 'third_party/boringssl/crypto/refcount_lock.c',
332 'third_party/boringssl/crypto/rsa/blinding.c',
333 'third_party/boringssl/crypto/rsa/padding.c',
334 'third_party/boringssl/crypto/rsa/rsa.c',
335 'third_party/boringssl/crypto/rsa/rsa_asn1.c',
336 'third_party/boringssl/crypto/rsa/rsa_impl.c',
337 'third_party/boringssl/crypto/sha/sha1.c',
338 'third_party/boringssl/crypto/sha/sha256.c',
339 'third_party/boringssl/crypto/sha/sha512.c',
340 'third_party/boringssl/crypto/stack/stack.c',
341 'third_party/boringssl/crypto/thread.c',
342 'third_party/boringssl/crypto/thread_none.c',
343 'third_party/boringssl/crypto/thread_pthread.c',
344 'third_party/boringssl/crypto/thread_win.c',
345 'third_party/boringssl/crypto/time_support.c',
346 'third_party/boringssl/crypto/x509/a_digest.c',
347 'third_party/boringssl/crypto/x509/a_sign.c',
348 'third_party/boringssl/crypto/x509/a_strex.c',
349 'third_party/boringssl/crypto/x509/a_verify.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800350 'third_party/boringssl/crypto/x509/algorithm.c',
murgatroid995c56c922016-01-25 13:32:52 -0800351 'third_party/boringssl/crypto/x509/asn1_gen.c',
352 'third_party/boringssl/crypto/x509/by_dir.c',
353 'third_party/boringssl/crypto/x509/by_file.c',
354 'third_party/boringssl/crypto/x509/i2d_pr.c',
355 'third_party/boringssl/crypto/x509/pkcs7.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800356 'third_party/boringssl/crypto/x509/rsa_pss.c',
murgatroid995c56c922016-01-25 13:32:52 -0800357 'third_party/boringssl/crypto/x509/t_crl.c',
358 'third_party/boringssl/crypto/x509/t_req.c',
359 'third_party/boringssl/crypto/x509/t_x509.c',
360 'third_party/boringssl/crypto/x509/t_x509a.c',
361 'third_party/boringssl/crypto/x509/x509.c',
362 'third_party/boringssl/crypto/x509/x509_att.c',
363 'third_party/boringssl/crypto/x509/x509_cmp.c',
364 'third_party/boringssl/crypto/x509/x509_d2.c',
365 'third_party/boringssl/crypto/x509/x509_def.c',
366 'third_party/boringssl/crypto/x509/x509_ext.c',
367 'third_party/boringssl/crypto/x509/x509_lu.c',
368 'third_party/boringssl/crypto/x509/x509_obj.c',
369 'third_party/boringssl/crypto/x509/x509_r2x.c',
370 'third_party/boringssl/crypto/x509/x509_req.c',
371 'third_party/boringssl/crypto/x509/x509_set.c',
372 'third_party/boringssl/crypto/x509/x509_trs.c',
373 'third_party/boringssl/crypto/x509/x509_txt.c',
374 'third_party/boringssl/crypto/x509/x509_v3.c',
375 'third_party/boringssl/crypto/x509/x509_vfy.c',
376 'third_party/boringssl/crypto/x509/x509_vpm.c',
377 'third_party/boringssl/crypto/x509/x509cset.c',
378 'third_party/boringssl/crypto/x509/x509name.c',
379 'third_party/boringssl/crypto/x509/x509rset.c',
380 'third_party/boringssl/crypto/x509/x509spki.c',
381 'third_party/boringssl/crypto/x509/x509type.c',
382 'third_party/boringssl/crypto/x509/x_algor.c',
383 'third_party/boringssl/crypto/x509/x_all.c',
384 'third_party/boringssl/crypto/x509/x_attrib.c',
385 'third_party/boringssl/crypto/x509/x_crl.c',
386 'third_party/boringssl/crypto/x509/x_exten.c',
387 'third_party/boringssl/crypto/x509/x_info.c',
388 'third_party/boringssl/crypto/x509/x_name.c',
389 'third_party/boringssl/crypto/x509/x_pkey.c',
390 'third_party/boringssl/crypto/x509/x_pubkey.c',
391 'third_party/boringssl/crypto/x509/x_req.c',
392 'third_party/boringssl/crypto/x509/x_sig.c',
393 'third_party/boringssl/crypto/x509/x_spki.c',
394 'third_party/boringssl/crypto/x509/x_val.c',
395 'third_party/boringssl/crypto/x509/x_x509.c',
396 'third_party/boringssl/crypto/x509/x_x509a.c',
397 'third_party/boringssl/crypto/x509v3/pcy_cache.c',
398 'third_party/boringssl/crypto/x509v3/pcy_data.c',
399 'third_party/boringssl/crypto/x509v3/pcy_lib.c',
400 'third_party/boringssl/crypto/x509v3/pcy_map.c',
401 'third_party/boringssl/crypto/x509v3/pcy_node.c',
402 'third_party/boringssl/crypto/x509v3/pcy_tree.c',
403 'third_party/boringssl/crypto/x509v3/v3_akey.c',
404 'third_party/boringssl/crypto/x509v3/v3_akeya.c',
405 'third_party/boringssl/crypto/x509v3/v3_alt.c',
406 'third_party/boringssl/crypto/x509v3/v3_bcons.c',
407 'third_party/boringssl/crypto/x509v3/v3_bitst.c',
408 'third_party/boringssl/crypto/x509v3/v3_conf.c',
409 'third_party/boringssl/crypto/x509v3/v3_cpols.c',
410 'third_party/boringssl/crypto/x509v3/v3_crld.c',
411 'third_party/boringssl/crypto/x509v3/v3_enum.c',
412 'third_party/boringssl/crypto/x509v3/v3_extku.c',
413 'third_party/boringssl/crypto/x509v3/v3_genn.c',
414 'third_party/boringssl/crypto/x509v3/v3_ia5.c',
415 'third_party/boringssl/crypto/x509v3/v3_info.c',
416 'third_party/boringssl/crypto/x509v3/v3_int.c',
417 'third_party/boringssl/crypto/x509v3/v3_lib.c',
418 'third_party/boringssl/crypto/x509v3/v3_ncons.c',
419 'third_party/boringssl/crypto/x509v3/v3_pci.c',
420 'third_party/boringssl/crypto/x509v3/v3_pcia.c',
421 'third_party/boringssl/crypto/x509v3/v3_pcons.c',
422 'third_party/boringssl/crypto/x509v3/v3_pku.c',
423 'third_party/boringssl/crypto/x509v3/v3_pmaps.c',
424 'third_party/boringssl/crypto/x509v3/v3_prn.c',
425 'third_party/boringssl/crypto/x509v3/v3_purp.c',
426 'third_party/boringssl/crypto/x509v3/v3_skey.c',
427 'third_party/boringssl/crypto/x509v3/v3_sxnet.c',
428 'third_party/boringssl/crypto/x509v3/v3_utl.c',
429 'third_party/boringssl/ssl/custom_extensions.c',
430 'third_party/boringssl/ssl/d1_both.c',
murgatroid995c56c922016-01-25 13:32:52 -0800431 'third_party/boringssl/ssl/d1_lib.c',
murgatroid995c56c922016-01-25 13:32:52 -0800432 'third_party/boringssl/ssl/d1_pkt.c',
433 'third_party/boringssl/ssl/d1_srtp.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800434 'third_party/boringssl/ssl/dtls_method.c',
murgatroid995c56c922016-01-25 13:32:52 -0800435 'third_party/boringssl/ssl/dtls_record.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800436 'third_party/boringssl/ssl/handshake_client.c',
437 'third_party/boringssl/ssl/handshake_server.c',
murgatroid995c56c922016-01-25 13:32:52 -0800438 'third_party/boringssl/ssl/s3_both.c',
murgatroid995c56c922016-01-25 13:32:52 -0800439 'third_party/boringssl/ssl/s3_enc.c',
440 'third_party/boringssl/ssl/s3_lib.c',
murgatroid995c56c922016-01-25 13:32:52 -0800441 'third_party/boringssl/ssl/s3_pkt.c',
murgatroid995c56c922016-01-25 13:32:52 -0800442 'third_party/boringssl/ssl/ssl_aead_ctx.c',
443 'third_party/boringssl/ssl/ssl_asn1.c',
444 'third_party/boringssl/ssl/ssl_buffer.c',
445 'third_party/boringssl/ssl/ssl_cert.c',
446 'third_party/boringssl/ssl/ssl_cipher.c',
itessier2a522032016-04-19 17:38:51 -0700447 'third_party/boringssl/ssl/ssl_ecdh.c',
murgatroid995c56c922016-01-25 13:32:52 -0800448 'third_party/boringssl/ssl/ssl_file.c',
449 'third_party/boringssl/ssl/ssl_lib.c',
450 'third_party/boringssl/ssl/ssl_rsa.c',
451 'third_party/boringssl/ssl/ssl_session.c',
452 'third_party/boringssl/ssl/ssl_stat.c',
453 'third_party/boringssl/ssl/t1_enc.c',
454 'third_party/boringssl/ssl/t1_lib.c',
Stanley Cheungb39942f2017-01-12 21:31:07 -0800455 'third_party/boringssl/ssl/tls13_both.c',
456 'third_party/boringssl/ssl/tls13_client.c',
457 'third_party/boringssl/ssl/tls13_enc.c',
458 'third_party/boringssl/ssl/tls13_server.c',
459 'third_party/boringssl/ssl/tls_method.c',
murgatroid995c56c922016-01-25 13:32:52 -0800460 'third_party/boringssl/ssl/tls_record.c',
murgatroid99af6c1782016-01-28 13:14:24 -0800461 ]
murgatroid995c56c922016-01-25 13:32:52 -0800462 },
murgatroid99dc230462016-10-25 14:12:42 -0700463 ]
464 }],
465 ['OS == "win"', {
466 'targets': [
467 {
468 # IMPORTANT WINDOWS BUILD INFORMATION
469 # This library does not build on Windows without modifying the Node
470 # development packages that node-gyp downloads in order to build.
471 # Due to https://github.com/nodejs/node/issues/4932, the headers for
472 # BoringSSL conflict with the OpenSSL headers included by default
473 # when including the Node headers. The remedy for this is to remove
474 # the OpenSSL headers, from the downloaded Node development package,
475 # which is typically located in `.node-gyp` in your home directory.
476 'target_name': 'WINDOWS_BUILD_WARNING',
477 'actions': [
478 {
479 'action_name': 'WINDOWS_BUILD_WARNING',
480 'inputs': [
481 'package.json'
482 ],
483 'outputs': [
484 'ignore_this_part'
485 ],
486 '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/']
487 }
488 ]
489 },
490 # Only want to compile zlib under Windows
murgatroid995c56c922016-01-25 13:32:52 -0800491 {
492 'cflags': [
493 '-std=c99',
494 '-Wall',
495 '-Werror'
496 ],
497 'target_name': 'z',
498 'product_prefix': 'lib',
499 'type': 'static_library',
500 'dependencies': [
501 ],
502 'sources': [
503 'third_party/zlib/adler32.c',
504 'third_party/zlib/compress.c',
505 'third_party/zlib/crc32.c',
506 'third_party/zlib/deflate.c',
507 'third_party/zlib/gzclose.c',
508 'third_party/zlib/gzlib.c',
509 'third_party/zlib/gzread.c',
510 'third_party/zlib/gzwrite.c',
511 'third_party/zlib/infback.c',
512 'third_party/zlib/inffast.c',
513 'third_party/zlib/inflate.c',
514 'third_party/zlib/inftrees.c',
515 'third_party/zlib/trees.c',
516 'third_party/zlib/uncompr.c',
517 'third_party/zlib/zutil.c',
murgatroid99af6c1782016-01-28 13:14:24 -0800518 ]
murgatroid995c56c922016-01-25 13:32:52 -0800519 },
520 ]
521 }]
522 ],
murgatroid99fd994f12015-10-09 14:02:28 -0700523 'targets': [
524 {
murgatroid993abed312016-01-07 17:16:46 -0800525 'cflags': [
526 '-std=c99',
527 '-Wall',
528 '-Werror'
529 ],
Craig Tillerda179ce2016-02-09 12:01:53 -0800530 'target_name': 'gpr',
531 'product_prefix': 'lib',
532 'type': 'static_library',
533 'dependencies': [
534 ],
535 'sources': [
Craig Tillerf23078c2016-03-25 17:07:29 -0700536 'src/core/lib/profiling/basic_timers.c',
537 'src/core/lib/profiling/stap_timers.c',
538 'src/core/lib/support/alloc.c',
539 'src/core/lib/support/avl.c',
540 'src/core/lib/support/backoff.c',
541 'src/core/lib/support/cmdline.c',
542 'src/core/lib/support/cpu_iphone.c',
543 'src/core/lib/support/cpu_linux.c',
544 'src/core/lib/support/cpu_posix.c',
545 'src/core/lib/support/cpu_windows.c',
546 'src/core/lib/support/env_linux.c',
547 'src/core/lib/support/env_posix.c',
Yuchen Zeng12dfdc32016-04-26 22:05:41 -0700548 'src/core/lib/support/env_windows.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700549 'src/core/lib/support/histogram.c',
550 'src/core/lib/support/host_port.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700551 'src/core/lib/support/log.c',
552 'src/core/lib/support/log_android.c',
553 'src/core/lib/support/log_linux.c',
554 'src/core/lib/support/log_posix.c',
Yuchen Zeng12dfdc32016-04-26 22:05:41 -0700555 'src/core/lib/support/log_windows.c',
Craig Tiller57726ca2016-09-12 11:59:45 -0700556 'src/core/lib/support/mpscq.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700557 'src/core/lib/support/murmur_hash.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700558 'src/core/lib/support/stack_lockfree.c',
559 'src/core/lib/support/string.c',
560 'src/core/lib/support/string_posix.c',
Yuchen Zeng4594bd92016-05-31 14:06:01 -0700561 'src/core/lib/support/string_util_windows.c',
Yuchen Zeng12dfdc32016-04-26 22:05:41 -0700562 'src/core/lib/support/string_windows.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700563 'src/core/lib/support/subprocess_posix.c',
564 'src/core/lib/support/subprocess_windows.c',
565 'src/core/lib/support/sync.c',
566 'src/core/lib/support/sync_posix.c',
Yuchen Zeng12dfdc32016-04-26 22:05:41 -0700567 'src/core/lib/support/sync_windows.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700568 'src/core/lib/support/thd.c',
569 'src/core/lib/support/thd_posix.c',
Yuchen Zeng12dfdc32016-04-26 22:05:41 -0700570 'src/core/lib/support/thd_windows.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700571 'src/core/lib/support/time.c',
572 'src/core/lib/support/time_posix.c',
573 'src/core/lib/support/time_precise.c',
Yuchen Zeng12dfdc32016-04-26 22:05:41 -0700574 'src/core/lib/support/time_windows.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700575 'src/core/lib/support/tls_pthread.c',
Nicolas "Pixel" Noblec4b18a52016-04-15 04:53:54 +0200576 'src/core/lib/support/tmpfile_msys.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700577 'src/core/lib/support/tmpfile_posix.c',
Yuchen Zeng12dfdc32016-04-26 22:05:41 -0700578 'src/core/lib/support/tmpfile_windows.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700579 'src/core/lib/support/wrap_memcpy.c',
Craig Tillerda179ce2016-02-09 12:01:53 -0800580 ],
581 "conditions": [
582 ['OS == "mac"', {
583 'xcode_settings': {
584 'MACOSX_DEPLOYMENT_TARGET': '10.9'
585 }
586 }]
587 ]
588 },
589 {
590 'cflags': [
591 '-std=c99',
592 '-Wall',
593 '-Werror'
594 ],
murgatroid99fd994f12015-10-09 14:02:28 -0700595 'target_name': 'grpc',
596 'product_prefix': 'lib',
597 'type': 'static_library',
598 'dependencies': [
Craig Tillerda179ce2016-02-09 12:01:53 -0800599 'gpr',
murgatroid99fd994f12015-10-09 14:02:28 -0700600 ],
601 'sources': [
Craig Tiller3ab2fe02016-04-11 20:11:18 -0700602 'src/core/lib/surface/init.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700603 'src/core/lib/channel/channel_args.c',
604 'src/core/lib/channel/channel_stack.c',
605 'src/core/lib/channel/channel_stack_builder.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700606 'src/core/lib/channel/compress_filter.c',
607 'src/core/lib/channel/connected_channel.c',
Mark D. Roth14c072c2016-08-26 08:31:34 -0700608 'src/core/lib/channel/deadline_filter.c',
Mark D. Rothdfbdefe2016-07-14 09:18:22 -0700609 'src/core/lib/channel/handshaker.c',
Mark D. Roth1f0f23c2017-01-06 13:07:19 -0800610 'src/core/lib/channel/handshaker_factory.c',
611 'src/core/lib/channel/handshaker_registry.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700612 'src/core/lib/channel/http_client_filter.c',
613 'src/core/lib/channel/http_server_filter.c',
Mark D. Rothaf00d8b2016-08-23 12:48:16 -0700614 'src/core/lib/channel/message_size_filter.c',
David Garcia Quintasac094472016-05-18 20:25:57 -0700615 'src/core/lib/compression/compression.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700616 'src/core/lib/compression/message_compress.c',
617 'src/core/lib/debug/trace.c',
618 'src/core/lib/http/format_request.c',
619 'src/core/lib/http/httpcli.c',
620 'src/core/lib/http/parser.c',
621 'src/core/lib/iomgr/closure.c',
Craig Tiller57726ca2016-09-12 11:59:45 -0700622 'src/core/lib/iomgr/combiner.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700623 'src/core/lib/iomgr/endpoint.c',
624 'src/core/lib/iomgr/endpoint_pair_posix.c',
murgatroid99c36f6ea2016-10-03 09:24:09 -0700625 'src/core/lib/iomgr/endpoint_pair_uv.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700626 'src/core/lib/iomgr/endpoint_pair_windows.c',
Craig Tiller27f59af2016-04-28 14:19:48 -0700627 'src/core/lib/iomgr/error.c',
Sree Kuchibhotlaf448c342016-05-19 10:51:24 -0700628 'src/core/lib/iomgr/ev_epoll_linux.c',
Craig Tillerd9a60bb2016-03-28 23:13:19 -0700629 'src/core/lib/iomgr/ev_poll_posix.c',
Craig Tiller8a034482016-03-28 16:09:04 -0700630 'src/core/lib/iomgr/ev_posix.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700631 'src/core/lib/iomgr/exec_ctx.c',
632 'src/core/lib/iomgr/executor.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700633 'src/core/lib/iomgr/iocp_windows.c',
634 'src/core/lib/iomgr/iomgr.c',
635 'src/core/lib/iomgr/iomgr_posix.c',
murgatroid999030c812016-09-16 13:25:08 -0700636 'src/core/lib/iomgr/iomgr_uv.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700637 'src/core/lib/iomgr/iomgr_windows.c',
Craig Tiller85178862016-05-18 16:09:16 -0700638 'src/core/lib/iomgr/load_file.c',
Makarand Dharmapurikar0579cfc2016-06-20 15:45:24 -0700639 'src/core/lib/iomgr/network_status_tracker.c',
David Garcia Quintas2a50dfe2016-05-31 15:09:12 -0700640 'src/core/lib/iomgr/polling_entity.c',
murgatroid999030c812016-09-16 13:25:08 -0700641 'src/core/lib/iomgr/pollset_set_uv.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700642 'src/core/lib/iomgr/pollset_set_windows.c',
murgatroid999030c812016-09-16 13:25:08 -0700643 'src/core/lib/iomgr/pollset_uv.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700644 'src/core/lib/iomgr/pollset_windows.c',
645 'src/core/lib/iomgr/resolve_address_posix.c',
murgatroid999030c812016-09-16 13:25:08 -0700646 'src/core/lib/iomgr/resolve_address_uv.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700647 'src/core/lib/iomgr/resolve_address_windows.c',
Craig Tiller20afa3d2016-10-17 14:52:14 -0700648 'src/core/lib/iomgr/resource_quota.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700649 'src/core/lib/iomgr/sockaddr_utils.c',
Yuchen Zengde3daf52016-10-13 17:26:26 -0700650 'src/core/lib/iomgr/socket_mutator.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700651 'src/core/lib/iomgr/socket_utils_common_posix.c',
652 'src/core/lib/iomgr/socket_utils_linux.c',
653 'src/core/lib/iomgr/socket_utils_posix.c',
murgatroid999030c812016-09-16 13:25:08 -0700654 'src/core/lib/iomgr/socket_utils_uv.c',
murgatroid9979b32272016-08-08 13:38:30 -0700655 'src/core/lib/iomgr/socket_utils_windows.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700656 'src/core/lib/iomgr/socket_windows.c',
657 'src/core/lib/iomgr/tcp_client_posix.c',
murgatroid999030c812016-09-16 13:25:08 -0700658 'src/core/lib/iomgr/tcp_client_uv.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700659 'src/core/lib/iomgr/tcp_client_windows.c',
660 'src/core/lib/iomgr/tcp_posix.c',
661 'src/core/lib/iomgr/tcp_server_posix.c',
murgatroid999030c812016-09-16 13:25:08 -0700662 'src/core/lib/iomgr/tcp_server_uv.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700663 'src/core/lib/iomgr/tcp_server_windows.c',
murgatroid999030c812016-09-16 13:25:08 -0700664 'src/core/lib/iomgr/tcp_uv.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700665 'src/core/lib/iomgr/tcp_windows.c',
666 'src/core/lib/iomgr/time_averaged_stats.c',
murgatroid999030c812016-09-16 13:25:08 -0700667 'src/core/lib/iomgr/timer_generic.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700668 'src/core/lib/iomgr/timer_heap.c',
murgatroid999030c812016-09-16 13:25:08 -0700669 'src/core/lib/iomgr/timer_uv.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700670 'src/core/lib/iomgr/udp_server.c',
671 'src/core/lib/iomgr/unix_sockets_posix.c',
672 'src/core/lib/iomgr/unix_sockets_posix_noop.c',
Ken Payson31caabd2016-08-06 21:27:29 -0700673 'src/core/lib/iomgr/wakeup_fd_cv.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700674 'src/core/lib/iomgr/wakeup_fd_eventfd.c',
675 'src/core/lib/iomgr/wakeup_fd_nospecial.c',
676 'src/core/lib/iomgr/wakeup_fd_pipe.c',
677 'src/core/lib/iomgr/wakeup_fd_posix.c',
murgatroid999030c812016-09-16 13:25:08 -0700678 'src/core/lib/iomgr/workqueue_uv.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700679 'src/core/lib/iomgr/workqueue_windows.c',
680 'src/core/lib/json/json.c',
681 'src/core/lib/json/json_reader.c',
682 'src/core/lib/json/json_string.c',
683 'src/core/lib/json/json_writer.c',
Craig Tillerc3350542016-10-26 16:19:01 -0700684 'src/core/lib/slice/percent_encoding.c',
685 'src/core/lib/slice/slice.c',
686 'src/core/lib/slice/slice_buffer.c',
687 'src/core/lib/slice/slice_string_helpers.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700688 'src/core/lib/surface/alarm.c',
689 'src/core/lib/surface/api_trace.c',
690 'src/core/lib/surface/byte_buffer.c',
691 'src/core/lib/surface/byte_buffer_reader.c',
692 'src/core/lib/surface/call.c',
693 'src/core/lib/surface/call_details.c',
694 'src/core/lib/surface/call_log_batch.c',
695 'src/core/lib/surface/channel.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700696 'src/core/lib/surface/channel_init.c',
697 'src/core/lib/surface/channel_ping.c',
698 'src/core/lib/surface/channel_stack_type.c',
699 'src/core/lib/surface/completion_queue.c',
700 'src/core/lib/surface/event_string.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700701 'src/core/lib/surface/lame_client.c',
702 'src/core/lib/surface/metadata_array.c',
703 'src/core/lib/surface/server.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700704 'src/core/lib/surface/validate_metadata.c',
705 'src/core/lib/surface/version.c',
706 'src/core/lib/transport/byte_stream.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700707 'src/core/lib/transport/connectivity_state.c',
Craig Tiller5e01e2a2017-01-20 18:11:52 -0800708 'src/core/lib/transport/mdstr_hash_table.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700709 'src/core/lib/transport/metadata.c',
710 'src/core/lib/transport/metadata_batch.c',
Craig Tillerdd2fa642016-10-20 15:46:32 -0700711 'src/core/lib/transport/pid_controller.c',
Mark D. Rothea846a02016-11-03 11:32:54 -0700712 'src/core/lib/transport/service_config.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700713 'src/core/lib/transport/static_metadata.c',
Robbie Shade710d2422016-07-13 15:15:38 -0400714 'src/core/lib/transport/timeout_encoding.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700715 'src/core/lib/transport/transport.c',
716 'src/core/lib/transport/transport_op_string.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700717 'src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c',
Yuchen Zengd982bba2016-05-12 18:53:52 -0700718 'src/core/ext/transport/chttp2/transport/bin_decoder.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700719 'src/core/ext/transport/chttp2/transport/bin_encoder.c',
720 'src/core/ext/transport/chttp2/transport/chttp2_plugin.c',
721 'src/core/ext/transport/chttp2/transport/chttp2_transport.c',
722 'src/core/ext/transport/chttp2/transport/frame_data.c',
723 'src/core/ext/transport/chttp2/transport/frame_goaway.c',
724 'src/core/ext/transport/chttp2/transport/frame_ping.c',
725 'src/core/ext/transport/chttp2/transport/frame_rst_stream.c',
726 'src/core/ext/transport/chttp2/transport/frame_settings.c',
727 'src/core/ext/transport/chttp2/transport/frame_window_update.c',
728 'src/core/ext/transport/chttp2/transport/hpack_encoder.c',
729 'src/core/ext/transport/chttp2/transport/hpack_parser.c',
730 'src/core/ext/transport/chttp2/transport/hpack_table.c',
731 'src/core/ext/transport/chttp2/transport/huffsyms.c',
732 'src/core/ext/transport/chttp2/transport/incoming_metadata.c',
733 'src/core/ext/transport/chttp2/transport/parsing.c',
Craig Tiller5e01e2a2017-01-20 18:11:52 -0800734 'src/core/ext/transport/chttp2/transport/status_conversion.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700735 'src/core/ext/transport/chttp2/transport/stream_lists.c',
736 'src/core/ext/transport/chttp2/transport/stream_map.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700737 'src/core/ext/transport/chttp2/transport/varint.c',
738 'src/core/ext/transport/chttp2/transport/writing.c',
739 'src/core/ext/transport/chttp2/alpn/alpn.c',
740 'src/core/lib/http/httpcli_security_connector.c',
Julien Boeuf8ca294e2016-05-02 14:56:30 -0700741 'src/core/lib/security/context/security_context.c',
742 'src/core/lib/security/credentials/composite/composite_credentials.c',
743 'src/core/lib/security/credentials/credentials.c',
744 'src/core/lib/security/credentials/credentials_metadata.c',
745 'src/core/lib/security/credentials/fake/fake_credentials.c',
murgatroid997c205902016-08-09 10:07:42 -0700746 'src/core/lib/security/credentials/google_default/credentials_generic.c',
Julien Boeuf8ca294e2016-05-02 14:56:30 -0700747 'src/core/lib/security/credentials/google_default/google_default_credentials.c',
748 'src/core/lib/security/credentials/iam/iam_credentials.c',
749 'src/core/lib/security/credentials/jwt/json_token.c',
750 'src/core/lib/security/credentials/jwt/jwt_credentials.c',
751 'src/core/lib/security/credentials/jwt/jwt_verifier.c',
752 'src/core/lib/security/credentials/oauth2/oauth2_credentials.c',
753 'src/core/lib/security/credentials/plugin/plugin_credentials.c',
754 'src/core/lib/security/credentials/ssl/ssl_credentials.c',
755 'src/core/lib/security/transport/client_auth_filter.c',
Julien Boeuf8ca294e2016-05-02 14:56:30 -0700756 'src/core/lib/security/transport/secure_endpoint.c',
757 'src/core/lib/security/transport/security_connector.c',
Mark D. Roth071cacf2016-11-17 13:17:56 -0800758 'src/core/lib/security/transport/security_handshaker.c',
Julien Boeuf8ca294e2016-05-02 14:56:30 -0700759 'src/core/lib/security/transport/server_auth_filter.c',
Craig Tillerddad9782016-05-05 17:11:31 -0700760 'src/core/lib/security/transport/tsi_error.c',
Julien Boeuf8ca294e2016-05-02 14:56:30 -0700761 'src/core/lib/security/util/b64.c',
762 'src/core/lib/security/util/json_util.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700763 'src/core/lib/surface/init_secure.c',
Craig Tillerf23078c2016-03-25 17:07:29 -0700764 'src/core/lib/tsi/fake_transport_security.c',
765 'src/core/lib/tsi/ssl_transport_security.c',
766 'src/core/lib/tsi/transport_security.c',
Mark D. Roth71403822016-12-02 10:51:39 -0800767 'src/core/ext/transport/chttp2/server/chttp2_server.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700768 'src/core/ext/transport/chttp2/client/secure/secure_channel_create.c',
Mark D. Roth2137cd82016-09-14 09:04:00 -0700769 'src/core/ext/client_channel/channel_connectivity.c',
770 'src/core/ext/client_channel/client_channel.c',
771 'src/core/ext/client_channel/client_channel_factory.c',
772 'src/core/ext/client_channel/client_channel_plugin.c',
773 'src/core/ext/client_channel/connector.c',
774 'src/core/ext/client_channel/default_initial_connect_string.c',
Mark D. Roth15195742016-10-07 09:02:28 -0700775 'src/core/ext/client_channel/http_connect_handshaker.c',
Mark D. Roth2137cd82016-09-14 09:04:00 -0700776 'src/core/ext/client_channel/initial_connect_string.c',
777 'src/core/ext/client_channel/lb_policy.c',
778 'src/core/ext/client_channel/lb_policy_factory.c',
779 'src/core/ext/client_channel/lb_policy_registry.c',
780 'src/core/ext/client_channel/parse_address.c',
781 'src/core/ext/client_channel/resolver.c',
782 'src/core/ext/client_channel/resolver_factory.c',
783 'src/core/ext/client_channel/resolver_registry.c',
Mark D. Roth2137cd82016-09-14 09:04:00 -0700784 'src/core/ext/client_channel/subchannel.c',
785 'src/core/ext/client_channel/subchannel_index.c',
786 'src/core/ext/client_channel/uri_parser.c',
Mark D. Roth8686cab2016-11-17 13:12:17 -0800787 'src/core/ext/transport/chttp2/client/chttp2_connector.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700788 'src/core/ext/transport/chttp2/server/insecure/server_chttp2.c',
Adam Michalikbf10c822016-05-20 16:13:32 -0700789 'src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700790 'src/core/ext/transport/chttp2/client/insecure/channel_create.c',
Adam Michalik321b1fb2016-05-16 15:42:36 -0700791 'src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c',
David Garcia Quintas3fb8f732016-06-15 22:53:08 -0700792 'src/core/ext/lb_policy/grpclb/grpclb.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700793 'src/core/ext/lb_policy/grpclb/load_balancer_api.c',
David Garcia Quintas7f0793a2016-04-25 12:35:58 -0700794 'src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c',
Craig Tillereb841e22016-02-11 15:49:16 -0800795 'third_party/nanopb/pb_common.c',
796 'third_party/nanopb/pb_decode.c',
797 'third_party/nanopb/pb_encode.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700798 'src/core/ext/lb_policy/pick_first/pick_first.c',
799 'src/core/ext/lb_policy/round_robin/round_robin.c',
800 'src/core/ext/resolver/dns/native/dns_resolver.c',
801 'src/core/ext/resolver/sockaddr/sockaddr_resolver.c',
David Garcia Quintasb41363e2016-04-29 00:41:21 -0700802 'src/core/ext/load_reporting/load_reporting.c',
803 'src/core/ext/load_reporting/load_reporting_filter.c',
Alistair Veitch4aaba752016-06-02 17:11:46 -0700804 'src/core/ext/census/base_resources.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700805 'src/core/ext/census/context.c',
Alistair Veitch30fe6322016-05-23 10:11:28 -0700806 'src/core/ext/census/gen/census.pb.c',
Alistair Veitcha0c69f92016-08-31 12:01:27 -0700807 'src/core/ext/census/gen/trace_context.pb.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700808 'src/core/ext/census/grpc_context.c',
809 'src/core/ext/census/grpc_filter.c',
810 'src/core/ext/census/grpc_plugin.c',
811 'src/core/ext/census/initialize.c',
812 'src/core/ext/census/mlog.c',
813 'src/core/ext/census/operation.c',
814 'src/core/ext/census/placeholders.c',
Alistair Veitch4aaba752016-06-02 17:11:46 -0700815 'src/core/ext/census/resource.c',
Vizerai12d1fc62016-09-09 14:22:19 -0700816 'src/core/ext/census/trace_context.c',
Craig Tiller03915e52016-04-07 09:15:10 -0700817 'src/core/ext/census/tracing.c',
818 'src/core/plugin_registry/grpc_plugin_registry.c',
murgatroid99fd994f12015-10-09 14:02:28 -0700819 ],
murgatroid996ffdb942015-10-22 16:10:05 -0700820 "conditions": [
821 ['OS == "mac"', {
822 'xcode_settings': {
murgatroid9922c448b2015-10-23 10:25:30 -0700823 'MACOSX_DEPLOYMENT_TARGET': '10.9'
murgatroid996ffdb942015-10-22 16:10:05 -0700824 }
825 }]
murgatroid995c56c922016-01-25 13:32:52 -0800826 ]
murgatroid99fd994f12015-10-09 14:02:28 -0700827 },
murgatroid992af89e42015-10-01 11:54:00 -0700828 {
829 'include_dirs': [
830 "<!(node -e \"require('nan')\")"
831 ],
832 'cflags': [
murgatroid993abed312016-01-07 17:16:46 -0800833 '-std=c++11',
murgatroid992af89e42015-10-01 11:54:00 -0700834 '-Wall',
835 '-pthread',
836 '-g',
837 '-zdefs',
838 '-Werror',
839 '-Wno-error=deprecated-declarations'
840 ],
841 'ldflags': [
842 '-g'
843 ],
844 "conditions": [
murgatroid99dc230462016-10-25 14:12:42 -0700845 ['OS=="win" or runtime=="electron"', {
846 'dependencies': [
847 "boringssl",
848 ]
849 }],
murgatroid995c56c922016-01-25 13:32:52 -0800850 ['OS=="mac"', {
murgatroid992af89e42015-10-01 11:54:00 -0700851 'xcode_settings': {
852 'MACOSX_DEPLOYMENT_TARGET': '10.9',
853 'OTHER_CFLAGS': [
murgatroid99673f65b2016-02-01 11:19:07 -0800854 '-stdlib=libc++',
855 '-std=c++11'
murgatroid992af89e42015-10-01 11:54:00 -0700856 ]
857 }
murgatroid995c56c922016-01-25 13:32:52 -0800858 }],
859 ['OS=="win"', {
860 'dependencies': [
murgatroid995c56c922016-01-25 13:32:52 -0800861 "z",
862 ]
Craig Tiller4bef7ce2016-02-02 08:38:43 -0800863 }],
864 ['OS=="linux"', {
865 'ldflags': [
866 '-Wl,-wrap,memcpy'
867 ]
murgatroid992af89e42015-10-01 11:54:00 -0700868 }]
869 ],
870 "target_name": "grpc_node",
871 "sources": [
872 "src/node/ext/byte_buffer.cc",
873 "src/node/ext/call.cc",
murgatroid9947f519e2015-10-07 12:34:24 -0700874 "src/node/ext/call_credentials.cc",
murgatroid992af89e42015-10-01 11:54:00 -0700875 "src/node/ext/channel.cc",
murgatroid9947f519e2015-10-07 12:34:24 -0700876 "src/node/ext/channel_credentials.cc",
murgatroid99013d2032016-11-01 13:05:24 -0700877 "src/node/ext/completion_queue_threadpool.cc",
878 "src/node/ext/completion_queue_uv.cc",
murgatroid992af89e42015-10-01 11:54:00 -0700879 "src/node/ext/node_grpc.cc",
880 "src/node/ext/server.cc",
881 "src/node/ext/server_credentials.cc",
murgatroid99879bc4f2015-11-05 10:35:04 -0800882 "src/node/ext/timeval.cc",
murgatroid992af89e42015-10-01 11:54:00 -0700883 ],
884 "dependencies": [
murgatroid99879bc4f2015-11-05 10:35:04 -0800885 "grpc",
Craig Tillerda179ce2016-02-09 12:01:53 -0800886 "gpr",
murgatroid992af89e42015-10-01 11:54:00 -0700887 ]
murgatroid99879bc4f2015-11-05 10:35:04 -0800888 },
murgatroid99e190f352016-01-20 13:52:08 -0800889 {
890 "target_name": "action_after_build",
891 "type": "none",
892 "dependencies": [ "<(module_name)" ],
893 "copies": [
894 {
895 "files": [ "<(PRODUCT_DIR)/<(module_name).node"],
896 "destination": "<(module_path)"
897 }
898 ]
899 }
murgatroid992af89e42015-10-01 11:54:00 -0700900 ]
901}