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