reactos/dll/win32/regapi/CMakeLists.txt
Oleg Dubinskiy 90aff2947b
[REGAPI] Import regapi.dll from Wine Staging 5.7 CORE-16458 (#2723)
- Comment some other missing exports Windows regapi.dll has them, but Wine's one doesn't.

Required by MS winlogon with Win32SS replaced. I double-rechecked: now it doesn't fail due to missing regapi.dll in system32 or separate missing functions in this dll, exactly the same as with MS regapi. In pair with my profmap.dll (which was merged recently), now it fails due to InitializeUserProfile() stub in our userenv.dll (if to replace msgina too).
Also I compared the exports of MS regapi.dll and Wine's one. Win2k3 version has all exports that Wine version has and some others (which looks like were dropped in NT6). But those exports which already exist, are enough to allow MS winlogon no longer fail.

CORE-16458
2020-05-14 14:21:16 +02:00

16 lines
479 B
CMake

add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
spec2def(regapi.dll regapi.spec)
list(APPEND SOURCE
main.c
${CMAKE_CURRENT_BINARY_DIR}/regapi_stubs.c
${CMAKE_CURRENT_BINARY_DIR}/regapi.def)
add_library(regapi MODULE ${SOURCE})
set_module_type(regapi win32dll)
target_link_libraries(regapi wine)
add_importlibs(regapi advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET regapi DESTINATION reactos/system32 FOR all)