binding.gyp 886 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {
  2. 'target_defaults': {
  3. 'conditions': [
  4. ['OS=="win"', {
  5. 'msvs_disabled_warnings': [
  6. 4530, # C++ exception handler used, but unwind semantics are not enabled
  7. 4506, # no definition for inline function
  8. ],
  9. }],
  10. ],
  11. },
  12. 'targets': [
  13. {
  14. 'target_name': 'is_valid_window',
  15. 'sources': [
  16. 'src/impl.h',
  17. 'src/main.cc',
  18. ],
  19. 'conditions': [
  20. ['OS=="win"', {
  21. 'sources': [
  22. 'src/impl_win.cc',
  23. ],
  24. }],
  25. ['OS=="mac"', {
  26. 'sources': [
  27. 'src/impl_darwin.mm',
  28. ],
  29. 'libraries': [
  30. '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
  31. ],
  32. }],
  33. ['OS not in ["mac", "win"]', {
  34. 'sources': [
  35. 'src/impl_posix.cc',
  36. ],
  37. }],
  38. ],
  39. }
  40. ]
  41. }