7c7628d30ae7d117059d88cca74a6a9cde856b2d
[reactos.git] / dll / win32 / dbghelp / CMakeLists.txt
1
2 add_definitions(
3 -D__WINESRC__
4 -D_DLL
5 -D__USE_CRTIMP
6 -D_WINE
7 -DHAVE_REGEX_H
8 -D_IMAGEHLP_SOURCE_)
9
10 if(ARCH MATCHES amd64)
11 add_definitions(-DUNW_FLAG_NHANDLER=0 -DUNW_FLAG_EHANDLER=1 -DUNW_FLAG_UHANDLER=2 -DUNW_FLAG_CHAININFO=3)
12 endif(ARCH MATCHES amd64)
13
14 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
15
16 set_rc_compiler()
17 spec2def(dbghelp.dll dbghelp.spec)
18
19 list(APPEND SOURCE
20 coff.c
21 cpu_i386.c
22 cpu_ppc.c
23 cpu_x86_64.c
24 crc32.c
25 dbghelp.c
26 dwarf.c
27 elf_module.c
28 image.c
29 macho_module.c
30 minidump.c
31 module.c
32 msc.c
33 path.c
34 pe_module.c
35 regex.c
36 rosstubs.c
37 source.c
38 stabs.c
39 stack.c
40 storage.c
41 symbol.c
42 type.c
43 version.rc
44 ${CMAKE_CURRENT_BINARY_DIR}/dbghelp.def)
45
46 add_library(dbghelp SHARED ${SOURCE})
47
48 set_module_type(dbghelp win32dll)
49
50 target_link_libraries(dbghelp
51 wine
52 ${PSEH_LIB}
53 oldnames)
54
55 add_importlibs(dbghelp psapi version msvcrt kernel32 ntdll)
56
57 add_importlib_target(dbghelp.spec)
58
59 add_cab_target(dbghelp 1)