xref: /reactos/dll/win32/comctl32/CMakeLists.txt (revision c8d07514)
1
2add_definitions(
3    -D__WINESRC__
4    -D_WINE
5    -D__ROS_LONG64__
6    -D_COMCTL32_)
7
8remove_definitions(-D_WIN32_WINNT=0x502 -DWINVER=0x502)
9add_definitions(-D_WIN32_WINNT=0x600 -DWINVER=0x600)
10
11include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
12spec2def(comctl32.dll comctl32.spec ADD_IMPORTLIB)
13
14if(MSVC)
15
16endif()
17
18list(APPEND SOURCE
19    animate.c
20    button.c
21    combo.c
22    comboex.c
23    comctl32undoc.c
24    commctrl.c
25    datetime.c
26    dpa.c
27    draglist.c
28    dsa.c
29    edit.c
30    flatsb.c
31    header.c
32    hotkey.c
33    imagelist.c
34    ipaddress.c
35    listbox.c
36    listview.c
37    monthcal.c
38    nativefont.c
39    pager.c
40    progress.c
41    propsheet.c
42    rebar.c
43    smoothscroll.c
44    static.c
45    status.c
46    string.c
47    syslink.c
48    tab.c
49    taskdialog.c
50    theme_scrollbar.c
51    theming.c
52    toolbar.c
53    tooltips.c
54    trackbar.c
55    treeview.c
56    updown.c)
57
58list(APPEND PCH_SKIP_SOURCE
59    stubs.c)
60
61add_library(comctl32 MODULE
62    ${SOURCE}
63    ${PCH_SKIP_SOURCE}
64    rsrc.rc
65    ${CMAKE_CURRENT_BINARY_DIR}/comctl32.def)
66
67if (MSVC)
68    # Disable warning C4477 (printf format warnings)
69    target_compile_options(comctl32 PRIVATE /wd4477)
70endif()
71
72set_module_type(comctl32 win32dll UNICODE)
73target_link_libraries(comctl32 uuid wine ${PSEH_LIB})
74add_delay_importlibs(comctl32 winmm uxtheme)
75add_importlibs(comctl32 user32 gdi32 advapi32 usp10 imm32 msvcrt kernel32 ntdll)
76add_pch(comctl32 precomp.h "${PCH_SKIP_SOURCE}")
77add_cd_file(TARGET comctl32 DESTINATION reactos/system32 FOR all)
78add_cd_file(TARGET comctl32 DESTINATION reactos/winsxs/x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.2600.2982_none_deadbeef FOR all)
79add_cd_file(TARGET comctl32 DESTINATION reactos/winsxs/x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.2600.2982_none_deadbeef FOR all)
80add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.2600.2982_none_deadbeef.manifest DESTINATION reactos/winsxs/manifests FOR all)
81add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.2600.2982_none_deadbeef.manifest DESTINATION reactos/winsxs/manifests FOR all)
82