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
2 changes: 1 addition & 1 deletion .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ jobs:
run: |
Enter-VsDevShell ${{matrix.arch}}
$GitCommit = '${{ needs.preflight.outputs.detours-git-commit }}'
.\detours.ps1 -GitCommit $GitCommit
.\scripts\detours.ps1 -GitCommit $GitCommit

- name: Save Detours Cache (${{matrix.arch}})
if: steps.cache-detours.outputs.cache-hit != 'true'
Expand Down
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ bin/
obj/
.vscode/
.nupkg
dependencies/
package/
dependencies/*
!dependencies/detours/
dependencies/sources/
package/
packages.lock.json
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,11 @@ The trace log level is extremely verbose, so it should only be used when necessa

## Building from source

Using a [Visual Studio developer shell](https://www.powershellgallery.com/packages/VsDevShell), build the [Detours](https://github.com/Microsoft/Detours) library:

```powershell
Enter-VsDevShell x64
.\detours.ps1
```

Generate the Visual Studio project files for your target platform:

```powershell
mkdir build-x64 && cd build-x64
cmake -G "Visual Studio 17 2022" -A x64 ..
cmake -G "Visual Studio 18 2026" -A x64 ..
```

Open the Visual Studio solution or build it from the command-line:
Expand Down
21 changes: 21 additions & 0 deletions dependencies/detours/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Detours (prebuilt package)

This folder contains a **prebuilt** copy of the Microsoft Detours library, packaged in the layout expected by the top-level CMake build.

Expected layout:

- `include/` (Detours headers)
- `lib/<arch>/<config>/detours.lib`
- `<arch>`: `x86`, `x64`, `arm64`
- `<config>`: `Debug`, `Release`

## Regenerating / updating

If this folder is missing (or you need to update Detours), run from the repo root:

```powershell
# Builds & packages x86 + x64 + arm64 into dependencies/detours
pwsh -ExecutionPolicy Bypass -File .\scripts\detours-all.ps1
```

The Detours source is cloned into `dependencies/sources/detours`.
2 changes: 2 additions & 0 deletions dependencies/detours/git-commit.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
4b8c659f549b0ab21cf649377c7a84eb708f5e68

Loading