2010-08-22 22:52:07 +00:00
|
|
|
|
2010-10-02 22:19:59 +00:00
|
|
|
add_definitions(
|
|
|
|
-D__WINESRC__
|
|
|
|
-D_DLL
|
|
|
|
-D__USE_CRTIMP
|
|
|
|
-D_WINE
|
|
|
|
-DHAVE_REGEX_H
|
|
|
|
-D_IMAGEHLP_SOURCE_)
|
2010-08-22 22:52:07 +00:00
|
|
|
|
|
|
|
if(ARCH MATCHES amd64)
|
|
|
|
add_definitions(-DUNW_FLAG_NHANDLER=0 -DUNW_FLAG_EHANDLER=1 -DUNW_FLAG_UHANDLER=2 -DUNW_FLAG_CHAININFO=3)
|
|
|
|
endif(ARCH MATCHES amd64)
|
|
|
|
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
|
|
|
|
spec2def(dbghelp ${CMAKE_CURRENT_SOURCE_DIR}/dbghelp.spec ${CMAKE_CURRENT_BINARY_DIR}/dbghelp.def)
|
|
|
|
|
|
|
|
add_library(dbghelp SHARED
|
|
|
|
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)
|
|
|
|
|
2010-10-02 22:19:59 +00:00
|
|
|
set_module_type(dbghelp win32dll)
|
2010-08-22 22:52:07 +00:00
|
|
|
|
|
|
|
target_link_libraries(dbghelp
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/dbghelp.def
|
|
|
|
wine
|
2010-10-08 19:10:33 +00:00
|
|
|
pseh
|
|
|
|
oldnames)
|
2010-08-22 22:52:07 +00:00
|
|
|
|
2010-10-08 19:10:33 +00:00
|
|
|
add_importlibs(dbghelp psapi version msvcrt kernel32 ntdll)
|
2010-10-02 22:19:59 +00:00
|
|
|
add_dependencies(dbghelp dbghelp_def)
|
2010-10-22 19:40:56 +00:00
|
|
|
add_livecd_target(dbghelp reactos/system32)
|