binding.gyp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Test
  2. {
  3. 'variables': {
  4. },
  5. 'targets': [
  6. {
  7. 'target_name': 'node-opus',
  8. 'dependencies': [
  9. 'deps/binding.gyp:libopus'
  10. ],
  11. 'cflags': [
  12. '-pthread',
  13. '-fno-exceptions',
  14. '-fno-strict-aliasing',
  15. '-Wall',
  16. '-Wno-unused-parameter',
  17. '-Wno-missing-field-initializers',
  18. '-Wextra',
  19. '-pipe',
  20. '-fno-ident',
  21. '-fdata-sections',
  22. '-ffunction-sections',
  23. '-fPIC'
  24. ],
  25. 'defines': [
  26. 'LARGEFILE_SOURCE',
  27. '_FILE_OFFSET_BITS=64',
  28. 'WEBRTC_TARGET_PC',
  29. 'WEBRTC_LINUX',
  30. 'WEBRTC_THREAD_RR',
  31. 'EXPAT_RELATIVE_PATH',
  32. 'GTEST_RELATIVE_PATH',
  33. 'JSONCPP_RELATIVE_PATH',
  34. 'WEBRTC_RELATIVE_PATH',
  35. 'POSIX',
  36. '__STDC_FORMAT_MACROS',
  37. 'DYNAMIC_ANNOTATIONS_ENABLED=0'
  38. ],
  39. 'include_dirs': [
  40. "<!(node -e \"require('nan')\")"
  41. ],
  42. 'sources': [
  43. 'src/node-opus.cc',
  44. ],
  45. 'link_settings': {
  46. 'ldflags': [
  47. ],
  48. 'libraries': [
  49. ]
  50. }
  51. }
  52. ]
  53. }