blob: a289b9b9e8c42542584ba810ed21943f0984173c [file] [log] [blame]
murgatroid99e5061512015-01-12 18:14:35 -08001{
murgatroid9951fca2d2015-01-23 10:53:51 -08002 "variables" : {
3 'no_install': "<!(echo $GRPC_NO_INSTALL)",
4 'grpc_root': "<!(echo $GRPC_ROOT)",
5 'grpc_lib_subdir': "<!(echo $GRPC_LIB_SUBDIR)"
6 },
murgatroid99e5061512015-01-12 18:14:35 -08007 "targets" : [
8 {
9 'include_dirs': [
murgatroid9951fca2d2015-01-23 10:53:51 -080010 "<!(nodejs -e \"require('nan')\")"
murgatroid99e5061512015-01-12 18:14:35 -080011 ],
murgatroid99ff43c092015-02-09 11:41:23 -080012 'cflags': [
13 '-std=c++11',
murgatroid99e5061512015-01-12 18:14:35 -080014 '-Wall',
15 '-pthread',
16 '-pedantic',
17 '-g',
18 '-zdefs'
murgatroid99ff43c092015-02-09 11:41:23 -080019 '-Werror'
20 ],
murgatroid99e5061512015-01-12 18:14:35 -080021 'ldflags': [
murgatroid9951fca2d2015-01-23 10:53:51 -080022 '-g'
murgatroid99e5061512015-01-12 18:14:35 -080023 ],
24 'link_settings': {
25 'libraries': [
murgatroid99e5061512015-01-12 18:14:35 -080026 '-lrt',
murgatroid99e5061512015-01-12 18:14:35 -080027 '-lpthread'
28 ],
29 },
30 "target_name": "grpc",
31 "sources": [
murgatroid999df26932015-01-26 17:17:59 -080032 "ext/byte_buffer.cc",
33 "ext/call.cc",
34 "ext/channel.cc",
35 "ext/completion_queue_async_worker.cc",
36 "ext/credentials.cc",
37 "ext/event.cc",
38 "ext/node_grpc.cc",
39 "ext/server.cc",
40 "ext/server_credentials.cc",
41 "ext/tag.cc",
42 "ext/timeval.cc"
murgatroid9951fca2d2015-01-23 10:53:51 -080043 ],
44 'conditions' : [
45 ['no_install=="yes"', {
46 'include_dirs': [
47 "<(grpc_root)/include"
48 ],
49 'link_settings': {
50 'libraries': [
51 '<(grpc_root)/<(grpc_lib_subdir)/libgrpc.a',
52 '<(grpc_root)/<(grpc_lib_subdir)/libgpr.a'
53 ]
54 }
55 }],
56 ['no_install!="yes"', {
57 'link_settings': {
58 'libraries': [
59 '-lgrpc',
60 '-lgpr'
61 ]
62 }
63 }]
murgatroid99e5061512015-01-12 18:14:35 -080064 ]
65 }
66 ]
67}