Skip to content

Commit

Permalink
Add WINKERNEL to CMakeLists
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaivel committed May 29, 2024
1 parent e93675a commit b3a9e66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ ELSEIF(WIN32)
ENDIF(UNIX)

# windows driver
IF(WIN32)
IF(WIN32 AND WINKERNEL)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/kernel/windows/findwdk/")
find_package(WDK REQUIRED)

file(GLOB GLOBBED_KERNEL_SOURCES CONFIGURE_DEPENDS "kernel/windows/*.c")
wdk_add_driver(ksgldrv KMDF 1.15 ${GLOBBED_KERNEL_SOURCES})
ENDIF(WIN32)
ENDIF(WIN32 AND WINKERNEL)
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ There are two possible drivers one may use:
:: cd sharedgl
mkdir build
cd build
cmake -DCMAKE_GENERATOR_PLATFORM=x64 ..
cmake -DCMAKE_GENERATOR_PLATFORM=x64 -DWINKERNEL=ON ..
cmake --build . --target ksgldrv --config Release
cd ..
xcopy .\scripts\kcertify.bat .\build\Release\kcertify.bat
Expand All @@ -167,6 +167,7 @@ There are two ways to install the library on windows:
:: cd sharedgl
mkdir build
cd build
:: if you get errors regarding wdk, also use -DWINKERNEL=OFF
cmake -DCMAKE_GENERATOR_PLATFORM=x64 ..
cmake --build . --target sharedgl-core --config Release
cmake -DCMAKE_GENERATOR_PLATFORM=Win32 ..
Expand Down

0 comments on commit b3a9e66

Please sign in to comment.