[CMAKE]
[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 spec2def(dbghelp.dll dbghelp.spec)
17
18 add_library(dbghelp SHARED
19 coff.c
20 cpu_i386.c
21 cpu_ppc.c
22 cpu_x86_64.c
23 crc32.c
24 dbghelp.c
25 dwarf.c
26 elf_module.c
27 image.c
28 macho_module.c
29 minidump.c
30 module.c
31 msc.c
32 path.c
33 pe_module.c
34 regex.c
35 rosstubs.c
36 source.c
37 stabs.c
38 stack.c
39 storage.c
40 symbol.c
41 type.c
42 version.rc
43 ${CMAKE_CURRENT_BINARY_DIR}/dbghelp.def)
44
45 set_module_type(dbghelp win32dll)
46
47 target_link_libraries(dbghelp
48 wine
49 pseh
50 oldnames)
51
52 add_importlibs(dbghelp psapi version msvcrt kernel32 ntdll)
53
54 add_cab_target(dbghelp 1)