node-is-valid-window/binding.gyp

42 строки
886 B
Plaintext
Исходник Обычный вид История

2018-12-11 06:13:57 +03:00
{
'target_defaults': {
'conditions': [
['OS=="win"', {
'msvs_disabled_warnings': [
4530, # C++ exception handler used, but unwind semantics are not enabled
4506, # no definition for inline function
],
}],
],
},
'targets': [
{
'target_name': 'is_valid_window',
'sources': [
'src/impl.h',
'src/main.cc',
],
'conditions': [
['OS=="win"', {
'sources': [
'src/impl_win.cc',
],
}],
['OS=="mac"', {
'sources': [
2018-12-11 07:46:11 +03:00
'src/impl_darwin.mm',
],
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
2018-12-11 06:13:57 +03:00
],
}],
['OS not in ["mac", "win"]', {
'sources': [
'src/impl_posix.cc',
],
}],
],
}
]
}