Skip to content

Commit 63d91b4

Browse files
Prebuild Detours and add scripts
1 parent da020e1 commit 63d91b4

21 files changed

Lines changed: 1398 additions & 6 deletions

File tree

.github/workflows/build-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ jobs:
136136
run: |
137137
Enter-VsDevShell ${{matrix.arch}}
138138
$GitCommit = '${{ needs.preflight.outputs.detours-git-commit }}'
139-
.\detours.ps1 -GitCommit $GitCommit
139+
.\scripts\detours.ps1 -GitCommit $GitCommit
140140
141141
- name: Save Detours Cache (${{matrix.arch}})
142142
if: steps.cache-detours.outputs.cache-hit != 'true'

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ bin/
33
obj/
44
.vscode/
55
.nupkg
6-
dependencies/
7-
package/
6+
dependencies/*
7+
!dependencies/detours/
8+
dependencies/sources/
9+
package/
10+
packages.lock.json

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Using a [Visual Studio developer shell](https://www.powershellgallery.com/packag
6161

6262
```powershell
6363
Enter-VsDevShell x64
64-
.\detours.ps1
64+
.\scripts\detours.ps1
6565
```
6666

6767
Generate the Visual Studio project files for your target platform:

dependencies/detours/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Detours (prebuilt package)
2+
3+
This folder contains a **prebuilt** copy of the Microsoft Detours library, packaged in the layout expected by the top-level CMake build.
4+
5+
Expected layout:
6+
7+
- `include/` (Detours headers)
8+
- `lib/<arch>/<config>/detours.lib`
9+
- `<arch>`: `x86`, `x64`, `arm64`
10+
- `<config>`: `Debug`, `Release`
11+
12+
## Regenerating / updating
13+
14+
If this folder is missing (or you need to update Detours), run from the repo root:
15+
16+
```powershell
17+
# Builds & packages x86 + x64 + arm64 into dependencies/detours
18+
pwsh -ExecutionPolicy Bypass -File .\scripts\detours-all.ps1
19+
```
20+
21+
The Detours source is cloned into `dependencies/sources/detours`.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
4b8c659f549b0ab21cf649377c7a84eb708f5e68
2+

0 commit comments

Comments
 (0)