test: vendor node-is-valid-window (#39965)
This commit is contained in:
parent
fdf1ecec47
commit
18f517d8a6
13 changed files with 181 additions and 14 deletions
41
spec/is-valid-window/binding.gyp
Normal file
41
spec/is-valid-window/binding.gyp
Normal file
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
'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': [
|
||||
'src/impl_darwin.mm',
|
||||
],
|
||||
'libraries': [
|
||||
'$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
|
||||
],
|
||||
}],
|
||||
['OS not in ["mac", "win"]', {
|
||||
'sources': [
|
||||
'src/impl_posix.cc',
|
||||
],
|
||||
}],
|
||||
],
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue