WOW64: Mark the FEX dll as a wine builtin

Allows it to be automatically picked up by wine during prefix setup,
without a manual dll override.

Thanks to AndreRH for pointing me to this.
This commit is contained in:
Billy Laws committed 2024-07-06 19:19:36 +00:00
1 parent 9bad09c45f
commit ba33294225
3 files changed
+8

No files matched your search

+7
View File
@@ -12,6 +12,13 @@ function(build_implib name)
add_dependencies(${name_ex} ${name_ex}lib)
endfunction()
function(patch_library_wine target)
add_custom_command(
TARGET ${target} POST_BUILD
COMMAND dd bs=32 count=1 seek=2 conv=notrunc if=${CMAKE_SOURCE_DIR}/Source/Windows/wine_builtin.bin of=$<TARGET_FILE:${target}>
)
endfunction()
build_implib(ntdll)
build_implib(wow64)
+1
View File
@@ -2,6 +2,7 @@ add_library(wow64fex SHARED
Module.cpp
libwow64fex.def
)
patch_library_wine(wow64fex)
target_include_directories(wow64fex PRIVATE
"${CMAKE_SOURCE_DIR}/Source/Windows/include/"
Binary file not shown.