- Update to r53061
[reactos.git] / 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)
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
49 set_module_type(dbghelp win32dll)
50 target_link_libraries(dbghelp
51 wine
52 ${PSEH_LIB}
53 oldnames)
54
55 add_pch(dbghelp dbghelp_private.h)
56 add_importlibs(dbghelp psapi version msvcrt kernel32 ntdll)
57 add_importlib_target(dbghelp.spec)
58 add_cd_file(TARGET dbghelp DESTINATION reactos/system32 FOR all)