Skip to content

Commit

Permalink
Emabling and solving tdh compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Skulltrail192 committed Jun 7, 2021
1 parent 22623e2 commit d9cbbfc
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wrappers/new-dlls/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
18 changes: 18 additions & 0 deletions wrappers/new-dlls/tdh/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion wrappers/new-dlls/tdh/tdh_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d9cbbfc

Please sign in to comment.