xref: /reactos/dll/win32/comctl32/CMakeLists.txt (revision 51fd824e)
1
2add_definitions(
3    -D__WINESRC__
4    -D_WINE
5    -D_COMCTL32_)
6
7remove_definitions(-D_WIN32_WINNT=0x502 -DWINVER=0x502)
8add_definitions(-D_WIN32_WINNT=0x600 -DWINVER=0x600)
9
10include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
11spec2def(comctl32.dll comctl32.spec ADD_IMPORTLIB)
12
13list(APPEND SOURCE
14    animate.c
15    button.c
16    comboex.c
17    comctl32undoc.c
18    commctrl.c
19    datetime.c
20    dpa.c
21    draglist.c
22    dsa.c
23    flatsb.c
24    header.c
25    hotkey.c
26    imagelist.c
27    ipaddress.c
28    listview.c
29    monthcal.c
30    nativefont.c
31    pager.c
32    progress.c
33    propsheet.c
34    rebar.c
35    smoothscroll.c
36    status.c
37    string.c
38    syslink.c
39    tab.c
40    taskdialog.c
41    theme_button.c
42    theme_combo.c
43    theme_dialog.c
44    theme_edit.c
45    theme_listbox.c
46    theme_scrollbar.c
47    theming.c
48    toolbar.c
49    tooltips.c
50    trackbar.c
51    treeview.c
52    updown.c
53    comctl32.h)
54
55add_library(comctl32 SHARED
56    ${SOURCE}
57    stubs.c
58    rsrc.rc
59    ${CMAKE_CURRENT_BINARY_DIR}/comctl32.def)
60
61set_module_type(comctl32 win32dll UNICODE)
62target_link_libraries(comctl32 uuid wine ${PSEH_LIB})
63add_delay_importlibs(comctl32 winmm uxtheme)
64add_importlibs(comctl32 user32 gdi32 advapi32 msvcrt kernel32 ntdll)
65add_pch(comctl32 comctl32.h SOURCE)
66add_cd_file(TARGET comctl32 DESTINATION reactos/system32 FOR all)
67add_cd_file(TARGET comctl32 DESTINATION reactos/winsxs/x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.2600.2982_none_deadbeef FOR all)
68add_cd_file(TARGET comctl32 DESTINATION reactos/winsxs/x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.2600.2982_none_deadbeef FOR all)
69add_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)
70add_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)