binding.gyp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {
  2. "variables" : {
  3. 'config': '<!(echo $CONFIG)'
  4. },
  5. "targets" : [
  6. {
  7. 'include_dirs': [
  8. "<!(node -e \"require('nan')\")"
  9. ],
  10. 'cflags': [
  11. '-std=c++0x',
  12. '-Wall',
  13. '-pthread',
  14. '-g',
  15. '-zdefs',
  16. '-Werror',
  17. '-Wno-error=deprecated-declarations'
  18. ],
  19. 'ldflags': [
  20. '-g'
  21. ],
  22. "conditions": [
  23. ['OS != "win"', {
  24. 'conditions': [
  25. ['config=="gcov"', {
  26. 'cflags': [
  27. '-ftest-coverage',
  28. '-fprofile-arcs',
  29. '-O0'
  30. ],
  31. 'ldflags': [
  32. '-ftest-coverage',
  33. '-fprofile-arcs'
  34. ]
  35. }
  36. ]
  37. ]
  38. }],
  39. ['OS == "mac"', {
  40. 'xcode_settings': {
  41. 'MACOSX_DEPLOYMENT_TARGET': '10.9',
  42. 'OTHER_CFLAGS': [
  43. '-std=c++11',
  44. '-stdlib=libc++'
  45. ]
  46. }
  47. }]
  48. ],
  49. "target_name": "grpc_node",
  50. "sources": [
  51. "src/node/ext/byte_buffer.cc",
  52. "src/node/ext/call.cc",
  53. "src/node/ext/channel.cc",
  54. "src/node/ext/completion_queue_async_worker.cc",
  55. "src/node/ext/credentials.cc",
  56. "src/node/ext/node_grpc.cc",
  57. "src/node/ext/server.cc",
  58. "src/node/ext/server_credentials.cc",
  59. "src/node/ext/timeval.cc"
  60. ],
  61. "dependencies": [
  62. "grpc.gyp:grpc"
  63. ]
  64. }
  65. ]
  66. }