@@ -24,7 +24,6 @@ Then use the resolved root in CMake:
2424 run : |
2525 cmake -S . -B build -G "${{ steps.wdk7.outputs.cmake-generator }}" ^
2626 -DCMAKE_TOOLCHAIN_FILE="${{ steps.wdk7.outputs.toolchain-file }}" ^
27- -DCMAKE_MODULE_PATH="${{ steps.wdk7.outputs.cmake-module-dir }}" ^
2827 -DWDK7_ARCH=${{ matrix.arch }}
2928` ` `
3029
@@ -38,7 +37,7 @@ standard CMake commands for exe, dll, and static library targets:
3837
3938` ` ` cmake
4039add_library(plugin SHARED plugin.c)
41- target_link_libraries(plugin PRIVATE DbgEng::DbgEng )
40+ target_link_libraries(plugin PRIVATE kernel32 )
4241` ` `
4342
4443The same model works with `FetchContent` without a WDK-specific wrapper :
@@ -62,13 +61,12 @@ sets kernel compiler defaults; the `.sys` suffix, entry point, and driver linker
6261flags are still expressed with ordinary `set_target_properties()` and
6362` target_link_options()` .
6463
65- The action also bundles `cmake/FindDbgEng.cmake`. For WinDbg extensions or
66- DbgEng programs, add the module directory to `CMAKE_MODULE_PATH` and use :
67-
68- ` ` ` cmake
69- find_package(DbgEng REQUIRED)
70- target_link_libraries(my_extension PRIVATE DbgEng::DbgEng)
71- ` ` `
64+ The action prepares the Debugging Tools SDK because many WDK7-era projects need
65+ DbgEng headers and libraries, but it does not bundle a `FindDbgEng.cmake`
66+ module. WinDbg extensions and DbgEng programs should keep their own find module
67+ or target definition in the project repository. The action exposes the prepared
68+ SDK through `WDK7_DBGENG_INCLUDE_DIR`, `WDK7_DBGENG_LIB_I386`, and
69+ ` WDK7_DBGENG_LIB_AMD64` .
7270
7371For legacy WDK build projects, the action also bundles `ddkbuild.cmd` and sets
7472`W7BASE` after WDK7 is resolved :
@@ -96,7 +94,6 @@ For legacy WDK build projects, the action also bundles `ddkbuild.cmd` and sets
9694- `cache-hit` : ` true` when an existing cached tree was reused.
9795- `cmake-module-dir` : absolute path to the bundled CMake module directory.
9896- `toolchain-file` : absolute path to the bundled CMake WDK7 toolchain file.
99- - `finddbgeng-module` : absolute path to the bundled `FindDbgEng.cmake` module.
10097- `ddkbuild-cmd` : absolute path to the bundled `ddkbuild.cmd` wrapper.
10198- `cmake-generator` : recommended generator, currently `NMake Makefiles`.
10299- `dbgeng-found` : ` true` when a usable DbgEng SDK was found or prepared.
@@ -187,8 +184,8 @@ the action bundle, prepares WDK7 through this action, then compiles the static
187184fixtures under `test/e2e` :
188185
189186- CMake plus `cmake/wdk7.cmake` : standard `add_executable()`/`add_library()`
190- user-mode exe, dll, static lib, a FetchContent static lib, and a DbgEng-linked
191- exe for i386 and amd64.
187+ user-mode exe, dll, static lib, a FetchContent static lib, and a Debugging
188+ Tools-linked exe for i386 and amd64.
192189- CMake plus `cmake/wdk7.cmake` : standard-command WDM sys for i386 and amd64.
193190- `ddkbuild.cmd` : WDM sys for i386 and amd64.
194191
@@ -200,7 +197,7 @@ Create the GitHub repository first, then push:
200197cd D:\c ode\s etup-wdk7
201198git init
202199git add .
203- git commit -m "Initial wdk7 action"
200+ git commit -m "Initial setup- wdk7 action"
204201git branch -M master
205202git remote add origin https://github.com/tinysec/setup-wdk7.git
206203git push -u origin master
0 commit comments