-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathmain.gyp
More file actions
100 lines (100 loc) · 2.87 KB
/
main.gyp
File metadata and controls
100 lines (100 loc) · 2.87 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
'target_defaults': {
'conditions': [
[ 'OS=="win"', {
'sources': [
'src/explorer_command.cc',
'src/explorer_command.def',
],
'include_dirs': [
'deps/wil/include',
],
'defines': [
'_WINDLL',
'WIN32_LEAN_AND_MEAN',
'_UNICODE',
'UNICODE',
'_CRT_SECURE_NO_DEPRECATE',
'_CRT_NONSTDC_NO_DEPRECATE',
],
'msvs_settings': {
'VCLinkerTool': {
'AdditionalOptions': [
'/guard:cf',
],
'OptimizeReferences': 2, # /OPT:REF
'EnableCOMDATFolding': 2, # /OPT:ICF
},
'VCCLCompilerTool': {
'AdditionalOptions': [
'/Zc:__cplusplus',
'-std:c++17',
'/Qspectre',
'/guard:cf',
],
'BufferSecurityCheck': 'true',
'ExceptionHandling': 1, # /EHsc
'EnableFunctionLevelLinking': 'true',
'Optimization': 3, # /Ox, full optimization
},
},
'libraries': [
'-ladvapi32.lib',
'-lruntimeobject.lib',
'-lshlwapi.lib',
'-lonecore.lib',
]
}],
],
},
'targets': [{
'target_name': 'code_explorer_command',
'type': 'shared_library',
'defines': [
'EXE_NAME="Code.exe"',
],
'conditions': [
[ 'OS=="win"', {
'conditions': [
['target_arch=="x64"', {
'TargetMachine' : 17, # /MACHINE:X64
'defines': [
'DLL_UUID="1C6DF0C0-192A-4451-BE36-6A59A86A692E"',
],
}],
['target_arch=="arm64"', {
'TargetMachine' : 18, # /MACHINE:ARM64 https://learn.microsoft.com/en-us/dotnet/api/microsoft.visualstudio.vcprojectengine.machinetypeoption?view=visualstudiosdk-2022
'defines': [
'DLL_UUID="F5EA5883-1DA8-4A05-864A-D5DE2D2B2854"',
],
}],
],
}],
],
}, {
'target_name': 'code_insider_explorer_command',
'type': 'shared_library',
'defines': [
'EXE_NAME="Code - Insiders.exe"',
'INSIDER=1',
],
'conditions': [
[ 'OS=="win"', {
'conditions': [
['target_arch=="x64"', {
'TargetMachine' : 17, # /MACHINE:X64
'defines': [
'DLL_UUID="799F4F7E-5934-4001-A74C-E207F44F05B8"',
],
}],
['target_arch=="arm64"', {
'TargetMachine' : 18, # /MACHINE:ARM64
'defines': [
'DLL_UUID="7D34756D-32DD-4EE6-B99F-2691C0DAD875"',
],
}],
],
}],
],
}],
}