murgatroid99 | e506151 | 2015-01-12 18:14:35 -0800 | [diff] [blame] | 1 | { |
murgatroid99 | 51fca2d | 2015-01-23 10:53:51 -0800 | [diff] [blame] | 2 | "variables" : { |
| 3 | 'no_install': "<!(echo $GRPC_NO_INSTALL)", |
| 4 | 'grpc_root': "<!(echo $GRPC_ROOT)", |
| 5 | 'grpc_lib_subdir': "<!(echo $GRPC_LIB_SUBDIR)" |
| 6 | }, |
murgatroid99 | e506151 | 2015-01-12 18:14:35 -0800 | [diff] [blame] | 7 | "targets" : [ |
| 8 | { |
| 9 | 'include_dirs': [ |
murgatroid99 | 51fca2d | 2015-01-23 10:53:51 -0800 | [diff] [blame] | 10 | "<!(nodejs -e \"require('nan')\")" |
murgatroid99 | e506151 | 2015-01-12 18:14:35 -0800 | [diff] [blame] | 11 | ], |
murgatroid99 | ff43c09 | 2015-02-09 11:41:23 -0800 | [diff] [blame^] | 12 | 'cflags': [ |
| 13 | '-std=c++11', |
murgatroid99 | e506151 | 2015-01-12 18:14:35 -0800 | [diff] [blame] | 14 | '-Wall', |
| 15 | '-pthread', |
| 16 | '-pedantic', |
| 17 | '-g', |
| 18 | '-zdefs' |
murgatroid99 | ff43c09 | 2015-02-09 11:41:23 -0800 | [diff] [blame^] | 19 | '-Werror' |
| 20 | ], |
murgatroid99 | e506151 | 2015-01-12 18:14:35 -0800 | [diff] [blame] | 21 | 'ldflags': [ |
murgatroid99 | 51fca2d | 2015-01-23 10:53:51 -0800 | [diff] [blame] | 22 | '-g' |
murgatroid99 | e506151 | 2015-01-12 18:14:35 -0800 | [diff] [blame] | 23 | ], |
| 24 | 'link_settings': { |
| 25 | 'libraries': [ |
murgatroid99 | e506151 | 2015-01-12 18:14:35 -0800 | [diff] [blame] | 26 | '-lrt', |
murgatroid99 | e506151 | 2015-01-12 18:14:35 -0800 | [diff] [blame] | 27 | '-lpthread' |
| 28 | ], |
| 29 | }, |
| 30 | "target_name": "grpc", |
| 31 | "sources": [ |
murgatroid99 | 9df2693 | 2015-01-26 17:17:59 -0800 | [diff] [blame] | 32 | "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" |
murgatroid99 | 51fca2d | 2015-01-23 10:53:51 -0800 | [diff] [blame] | 43 | ], |
| 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 | }] |
murgatroid99 | e506151 | 2015-01-12 18:14:35 -0800 | [diff] [blame] | 64 | ] |
| 65 | } |
| 66 | ] |
| 67 | } |