mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 10:00:16 +02:00
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:
1 parent
9bad09c45f
commit
ba33294225
3 files changed
+8
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
@@ -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.
Reference in new issue
Block a user