forked from microsoft/vscode-policy-watcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
71 lines (71 loc) · 2.34 KB
/
binding.gyp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"targets": [
{
"target_name": "vscode-policy-watcher",
"sources": [
"src/main.cc"
],
"dependencies": [
"<!(node -p \"require('node-addon-api').targets\"):node_addon_api_except"
],
"include_dirs": [
"<!(node -p \"require('node-addon-api').include_dir\")"
],
"defines": [ "NODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS" ],
'conditions': [
['OS=="mac"', {
"sources": [
"src/macos/PolicyWatcher.cc",
],
"defines": [
"MACOS",
]
}],
['OS=="mac" and target_arch=="arm64"', {
"xcode_settings": {
"ARCHS": ["arm64"]
}
}],
['OS=="linux"', {
"sources": [
"src/linux/PolicyWatcher.cc",
],
"defines": [
"LINUX",
]
}],
["OS=='win'", {
"sources": [
"src/windows/PolicyWatcher.cc",
"src/windows/StringPolicy.cc",
"src/windows/NumberPolicy.cc"
],
"defines": [
"WINDOWS"
],
"libraries": [
"userenv.lib"
],
"msvs_configuration_attributes": {
"SpectreMitigation": "Spectre"
},
"msvs_settings": {
"VCCLCompilerTool": {
'AdditionalOptions': [
'/guard:cf',
'/we4244',
'/we4267',
'/ZH:SHA_256'
],
},
'VCLinkerTool': {
'AdditionalOptions': [
'/guard:cf'
]
}
},
}],
],
}
]
}