Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions internal/etw/_fixtures/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ version: '3'

vars:
SYSWHISPERS3_REPO: https://github.com/klezVirus/SysWhispers3.git
VISUAL_STUDIO_EDITION: Enterprise
VISUAL_STUDIO_VERSION: 2022

tasks:
direct-syscall:
Expand All @@ -12,7 +10,7 @@ tasks:
cmds:
- git clone {{ .SYSWHISPERS3_REPO }}
- python SysWhispers3/syswhispers.py -a x64 -c msvc -p common -o syscalls
- cmd.exe /c 'C:\"Program Files"\"Microsoft Visual Studio"\{{ .VISUAL_STUDIO_VERSION }}\{{ .VISUAL_STUDIO_EDITION }}\VC\Auxiliary\Build\vcvars64.bat && nmake -f Makefile.msvc'
- cmd.exe /c "{{.ROOT_DIR}}\build.bat Makefile.msvc"
silent: true

indirect-syscall:
Expand All @@ -21,7 +19,7 @@ tasks:
cmds:
- git clone {{ .SYSWHISPERS3_REPO }}
- python SysWhispers3/syswhispers.py -a x64 -c msvc -p common -m jumper_randomized -o syscalls
- cmd.exe /c 'C:\"Program Files"\"Microsoft Visual Studio"\{{ .VISUAL_STUDIO_VERSION }}\{{ .VISUAL_STUDIO_EDITION }}\VC\Auxiliary\Build\vcvars64.bat && nmake -f Makefile.msvc'
- cmd.exe /c "{{.ROOT_DIR}}\build.bat Makefile.msvc"
silent: true

all:
Expand Down
12 changes: 12 additions & 0 deletions internal/etw/_fixtures/build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@echo off

for /f "usebackq delims=" %%i in (
`"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`
) do set "VSINSTALLDIR=%%i\"

echo [INFO] VS install path: %VSINSTALLDIR%

call "%VSINSTALLDIR%VC\Auxiliary\Build\vcvars64.bat"
if errorlevel 1 exit /b 1

nmake -f %1
Loading