binding.gyp 596 B

123456789101112131415161718192021222324252627
  1. {
  2. 'targets': [
  3. {
  4. 'win_delay_load_hook': 'true',
  5. 'target_name': 'bson',
  6. 'sources': [ 'ext/bson.cc' ],
  7. 'cflags!': [ '-fno-exceptions' ],
  8. 'cflags_cc!': [ '-fno-exceptions' ],
  9. 'include_dirs': [ '<!(node -e "require(\'nan\')")' ],
  10. 'conditions': [
  11. ['OS=="mac"', {
  12. 'xcode_settings': {
  13. 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
  14. }
  15. }],
  16. ['OS=="win"', {
  17. 'msvs_settings': {
  18. 'VCCLCompilerTool': {
  19. 'ExceptionHandling': 1
  20. }
  21. }
  22. }]
  23. ]
  24. }
  25. ]
  26. }