f32a2264058cfe7cb4361ded4753d462802ce5c8
[reactos.git] / reactos / dll / win32 / dbghelp / CMakeLists.txt
1
2 add_definitions(
3 -D__WINESRC__
4 -D_WINE
5 -DHAVE_REGEX_H
6 -DHAVE_ALLOCA_H
7 -D_IMAGEHLP_SOURCE_)
8
9 if(ARCH MATCHES amd64)
10 add_definitions(-DUNW_FLAG_NHANDLER=0 -DUNW_FLAG_EHANDLER=1 -DUNW_FLAG_UHANDLER=2 -DUNW_FLAG_CHAININFO=3)
11 endif()
12
13 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
14
15 set_rc_compiler()
16
17 spec2def(dbghelp.dll dbghelp.spec ADD_IMPORTLIB)
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_stubs.c
45 ${CMAKE_CURRENT_BINARY_DIR}/dbghelp.def)
46
47 add_library(dbghelp SHARED ${SOURCE})
48 allow_warnings(dbghelp)
49 set_module_type(dbghelp win32dll)
50 target_link_libraries(dbghelp wine ${PSEH_LIB} oldnames)
51 add_delay_importlibs(dbghelp version)
52 add_importlibs(dbghelp psapi msvcrt kernel32 ntdll)
53 add_pch(dbghelp dbghelp_private.h)
54
55 add_cd_file(TARGET dbghelp DESTINATION reactos/system32 FOR all)