[BROWSEUI] Fix infinite recursion in autocomplete control
[reactos.git] / dll / win32 / dbghelp / CMakeLists.txt
1
2 if(MSVC)
3 # Disable warning C4477 (printf format warnings)
4 add_compile_flags("/wd4477")
5 endif()
6
7 if(NOT CMAKE_CROSSCOMPILING)
8 add_definitions(-DDBGHELP_STATIC_LIB)
9
10 include_directories(
11 ${REACTOS_SOURCE_DIR}/tools
12 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib)
13
14 list(APPEND SOURCE
15 compat.c
16 dbghelp.c
17 dwarf.c
18 module.c
19 pe_module.c
20 source.c
21 stabs.c
22 storage.c
23 symbol.c
24 type.c)
25
26 if(ARCH STREQUAL "i386")
27 list(APPEND SOURCE cpu_i386.c)
28 endif()
29
30 add_library(dbghelphost ${SOURCE})
31 target_link_libraries(dbghelphost PRIVATE host_includes)
32 else()
33 add_definitions(
34 -D__WINESRC__
35 -D_WINE
36 -DHAVE_ALLOCA_H
37 -D_IMAGEHLP_SOURCE_)
38
39 if(ARCH STREQUAL "amd64")
40 add_definitions(-DUNW_FLAG_NHANDLER=0 -DUNW_FLAG_EHANDLER=1 -DUNW_FLAG_UHANDLER=2 -DUNW_FLAG_CHAININFO=3)
41 endif()
42
43 include_directories(
44 BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine
45 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib)
46
47 spec2def(dbghelp.dll dbghelp.spec ADD_IMPORTLIB)
48
49 list(APPEND SOURCE
50 coff.c
51 cpu_arm.c
52 cpu_arm64.c
53 cpu_i386.c
54 cpu_ppc.c
55 cpu_x86_64.c
56 crc32.c
57 dbghelp.c
58 dwarf.c
59 elf_module.c
60 image.c
61 macho_module.c
62 minidump.c
63 module.c
64 msc.c
65 path.c
66 pe_module.c
67 rosstubs.c
68 rsym.c
69 source.c
70 stabs.c
71 stack.c
72 storage.c
73 symbol.c
74 type.c
75 precomp.h)
76
77 add_library(dbghelp MODULE
78 ${SOURCE}
79 version.rc
80 ${CMAKE_CURRENT_BINARY_DIR}/dbghelp_stubs.c
81 ${CMAKE_CURRENT_BINARY_DIR}/dbghelp.def)
82
83 set_module_type(dbghelp win32dll)
84 target_link_libraries(dbghelp wine ${PSEH_LIB} oldnames zlib)
85 add_delay_importlibs(dbghelp version)
86 add_importlibs(dbghelp psapi msvcrt kernel32 ntdll)
87 add_pch(dbghelp precomp.h SOURCE)
88 add_cd_file(TARGET dbghelp DESTINATION reactos/system32 FOR all)
89
90 endif()