2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-D__WINESRC__
|
|
|
|
-D_WINE
|
|
|
|
-DHAVE_REGEX_H
|
|
|
|
-DHAVE_ALLOCA_H
|
|
|
|
-D_IMAGEHLP_SOURCE_)
|
|
|
|
|
|
|
|
if(ARCH MATCHES amd64)
|
2011-06-13 15:31:11 +00:00
|
|
|
add_definitions(-DUNW_FLAG_NHANDLER=0 -DUNW_FLAG_EHANDLER=1 -DUNW_FLAG_UHANDLER=2 -DUNW_FLAG_CHAININFO=3)
|
|
|
|
endif()
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
|
|
|
|
set_rc_compiler()
|
|
|
|
|
2011-06-26 21:29:55 +00:00
|
|
|
spec2def(dbghelp.dll dbghelp.spec)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
coff.c
|
|
|
|
cpu_i386.c
|
|
|
|
cpu_ppc.c
|
|
|
|
cpu_x86_64.c
|
|
|
|
crc32.c
|
|
|
|
dbghelp.c
|
|
|
|
dwarf.c
|
|
|
|
elf_module.c
|
|
|
|
image.c
|
|
|
|
macho_module.c
|
|
|
|
minidump.c
|
|
|
|
module.c
|
|
|
|
msc.c
|
|
|
|
path.c
|
|
|
|
pe_module.c
|
|
|
|
regex.c
|
|
|
|
rosstubs.c
|
|
|
|
source.c
|
|
|
|
stabs.c
|
|
|
|
stack.c
|
|
|
|
storage.c
|
|
|
|
symbol.c
|
|
|
|
type.c
|
|
|
|
version.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/dbghelp_stubs.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/dbghelp.def)
|
|
|
|
|
|
|
|
add_library(dbghelp SHARED ${SOURCE})
|
|
|
|
|
|
|
|
set_module_type(dbghelp win32dll)
|
|
|
|
target_link_libraries(dbghelp
|
|
|
|
wine
|
|
|
|
${PSEH_LIB}
|
|
|
|
oldnames)
|
|
|
|
|
|
|
|
add_importlibs(dbghelp psapi version msvcrt kernel32 ntdll)
|
2011-08-11 15:16:48 +00:00
|
|
|
add_pch(dbghelp dbghelp_private.h)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_importlib_target(dbghelp.spec)
|
|
|
|
add_cd_file(TARGET dbghelp DESTINATION reactos/system32 FOR all)
|