Fix Windows RC icon path and remove stray include in warden_module

Copy Wowee.ico into the build tree at configure time so llvm-rc can
resolve the relative assets\\wowee.ico path in wowee.rc. Also remove a
redundant #include <sys/mman.h> that was incorrectly placed inside a
function body.
This commit is contained in:
Kelsi 2026-02-18 19:05:47 -08:00
parent 9d44d672d2
commit 2e32312fb2
2 changed files with 6 additions and 1 deletions

View file

@ -309,6 +309,12 @@ set(WOWEE_HEADERS
set(WOWEE_PLATFORM_SOURCES)
if(WIN32)
# Copy icon into build tree so llvm-rc can find it via the relative path in wowee.rc
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/assets/Wowee.ico
${CMAKE_CURRENT_BINARY_DIR}/assets/wowee.ico
COPYONLY
)
list(APPEND WOWEE_PLATFORM_SOURCES resources/wowee.rc)
endif()