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);