-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathpackage.json
More file actions
42 lines (42 loc) · 3.42 KB
/
package.json
File metadata and controls
42 lines (42 loc) · 3.42 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
{
"name": "mapistublibrary",
"version": "1.0.0",
"description": "MAPI Stub Library for 32 and 64 bit applications",
"scripts": {
"msbuild": "powershell -NoProfile -ExecutionPolicy Bypass -Command \"$pf86 = ${env:ProgramFiles(x86)}; $vswhere = Join-Path $pf86 'Microsoft Visual Studio\\Installer\\vswhere.exe'; if (-not (Test-Path $vswhere)) { Write-Error 'vswhere.exe not found. Install Visual Studio Build Tools or Visual Studio.'; exit 1 }; $vsPath = & $vswhere -latest -requires Microsoft.Component.MSBuild -property installationPath; if (-not $vsPath) { Write-Error 'MSBuild not found via vswhere.'; exit 1 }; $msbuild = Join-Path $vsPath 'MSBuild\\Current\\Bin\\amd64\\MSBuild.exe'; if (-not (Test-Path $msbuild)) { Write-Error ('MSBuild.exe not found at ' + $msbuild); exit 1 }; & $msbuild @args\"",
"build": "npm run build:debug:x64",
"build:debug": "npm run build:debug:x64",
"build:debug:x64": "npm run msbuild -- mapistub.sln /m /p:Configuration=Debug_Unicode /p:Platform=x64",
"build:debug:x86": "npm run msbuild -- mapistub.sln /m /p:Configuration=Debug_Unicode /p:Platform=Win32",
"build:release": "npm run build:release:x64",
"build:release:x64": "npm run msbuild -- mapistub.sln /m /p:Configuration=Release_Unicode /p:Platform=x64",
"build:release:x86": "npm run msbuild -- mapistub.sln /m /p:Configuration=Release_Unicode /p:Platform=Win32",
"build:debug:ansi": "npm run build:debug:ansi:x64",
"build:debug:ansi:x64": "npm run msbuild -- mapistub.sln /m /p:Configuration=Debug /p:Platform=x64",
"build:debug:ansi:x86": "npm run msbuild -- mapistub.sln /m /p:Configuration=Debug /p:Platform=Win32",
"build:release:ansi": "npm run build:release:ansi:x64",
"build:release:ansi:x64": "npm run msbuild -- mapistub.sln /m /p:Configuration=Release /p:Platform=x64",
"build:release:ansi:x86": "npm run msbuild -- mapistub.sln /m /p:Configuration=Release /p:Platform=Win32",
"build:all": "npm run build:all:x64 && npm run build:all:x86",
"build:all:x64": "npm run build:debug:x64 && npm run build:release:x64 && npm run build:debug:ansi:x64 && npm run build:release:ansi:x64",
"build:all:x86": "npm run build:debug:x86 && npm run build:release:x86 && npm run build:debug:ansi:x86 && npm run build:release:ansi:x86",
"build:debug:arm64": "npm run msbuild -- mapistub.sln /m /p:Configuration=Debug_Unicode /p:Platform=ARM64",
"build:release:arm64": "npm run msbuild -- mapistub.sln /m /p:Configuration=Release_Unicode /p:Platform=ARM64",
"build:all:arm64": "npm run build:debug:arm64 && npm run build:release:arm64",
"build:debug:arm64ec": "npm run msbuild -- mapistub.sln /m /p:Configuration=Debug_Unicode /p:Platform=ARM64EC",
"build:release:arm64ec": "npm run msbuild -- mapistub.sln /m /p:Configuration=Release_Unicode /p:Platform=ARM64EC",
"build:all:arm64ec": "npm run build:debug:arm64ec && npm run build:release:arm64ec",
"clean": "npm run msbuild -- mapistub.sln /t:Clean",
"clean:gyp": "npm run gyp:clean",
"clean:all": "npm run clean && npm run clean:gyp",
"gyp:build": "node-gyp rebuild",
"gyp:build:x64": "node-gyp configure --arch=x64 && node-gyp build --arch=x64",
"gyp:build:x86": "node-gyp configure --arch=ia32 && node-gyp build --arch=ia32",
"gyp:build:arm64": "node-gyp configure --arch=arm64 && node-gyp build --arch=arm64",
"gyp:clean": "node-gyp clean"
},
"devDependencies": {
"clang-format": "^1.8.0",
"node-gyp": "^12.2.0"
}
}