From d9cbbfcb56450143def62e12a3b33d260609423b Mon Sep 17 00:00:00 2001 From: skulltrail Date: Mon, 7 Jun 2021 03:36:04 -0300 Subject: [PATCH] Emabling and solving tdh compilation --- wrappers/new-dlls/CMakeLists.txt | 2 +- wrappers/new-dlls/tdh/CMakeLists.txt | 18 ++++++++++++++++++ wrappers/new-dlls/tdh/tdh_main.c | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 wrappers/new-dlls/tdh/CMakeLists.txt diff --git a/wrappers/new-dlls/CMakeLists.txt b/wrappers/new-dlls/CMakeLists.txt index 5c7d38b83d..4cc61ea8f3 100644 --- a/wrappers/new-dlls/CMakeLists.txt +++ b/wrappers/new-dlls/CMakeLists.txt @@ -21,7 +21,7 @@ add_subdirectory(secbase) add_subdirectory(shcore) add_subdirectory(sspicli) add_subdirectory(taskschd) -#add_subdirectory(tdh) +add_subdirectory(tdh) add_subdirectory(uiautomationcore) #add_subdirectory(uiribbon) #add_subdirectory(vssapi) diff --git a/wrappers/new-dlls/tdh/CMakeLists.txt b/wrappers/new-dlls/tdh/CMakeLists.txt new file mode 100644 index 0000000000..f881a9b013 --- /dev/null +++ b/wrappers/new-dlls/tdh/CMakeLists.txt @@ -0,0 +1,18 @@ + +add_definitions(-D__WINESRC__) +include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) +include_directories(${REACTOS_SOURCE_DIR}/wrappers/includes) +include_directories(${REACTOS_BINARY_DIR}/sdk/include/reactos/wine) +spec2def(tdh.dll tdh.spec ADD_IMPORTLIB) + +list(APPEND SOURCE + tdh_main.c + version.rc + ${CMAKE_CURRENT_BINARY_DIR}/tdh_stubs.c + ${CMAKE_CURRENT_BINARY_DIR}/tdh.def) + +add_library(tdh SHARED ${SOURCE}) +set_module_type(tdh win32dll) +target_link_libraries(tdh wine) +add_importlibs(tdh ole32 combase msvcrt kernelbase ntdll) +add_cd_file(TARGET tdh DESTINATION reactos/system32 FOR all) diff --git a/wrappers/new-dlls/tdh/tdh_main.c b/wrappers/new-dlls/tdh/tdh_main.c index 60f32976b9..726a8a2768 100644 --- a/wrappers/new-dlls/tdh/tdh_main.c +++ b/wrappers/new-dlls/tdh/tdh_main.c @@ -22,7 +22,7 @@ #define WIN32_NO_STATUS #include "windef.h" #include "winbase.h" -#include "winternl.h" +#include "wine/winternl.h" #include "wine/debug.h" WINE_DEFAULT_DEBUG_CHANNEL(tdh);