2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-D__WINESRC__
|
|
|
|
-D_WINE
|
2020-03-26 13:40:39 +00:00
|
|
|
-D__ROS_LONG64__
|
2011-05-16 13:12:07 +00:00
|
|
|
-D_COMCTL32_)
|
|
|
|
|
2016-06-05 18:52:20 +00:00
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502 -DWINVER=0x502)
|
|
|
|
add_definitions(-D_WIN32_WINNT=0x600 -DWINVER=0x600)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
2012-03-07 21:21:27 +00:00
|
|
|
spec2def(comctl32.dll comctl32.spec ADD_IMPORTLIB)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2019-07-20 15:34:24 +00:00
|
|
|
if(MSVC)
|
2020-09-18 09:49:18 +00:00
|
|
|
|
2019-07-20 15:34:24 +00:00
|
|
|
endif()
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
animate.c
|
2017-02-21 21:03:04 +00:00
|
|
|
button.c
|
2018-04-04 13:39:21 +00:00
|
|
|
combo.c
|
2011-05-16 13:12:07 +00:00
|
|
|
comboex.c
|
|
|
|
comctl32undoc.c
|
|
|
|
commctrl.c
|
|
|
|
datetime.c
|
|
|
|
dpa.c
|
|
|
|
draglist.c
|
|
|
|
dsa.c
|
2018-04-04 13:39:21 +00:00
|
|
|
edit.c
|
2011-05-16 13:12:07 +00:00
|
|
|
flatsb.c
|
|
|
|
header.c
|
|
|
|
hotkey.c
|
|
|
|
imagelist.c
|
|
|
|
ipaddress.c
|
2018-04-04 13:39:21 +00:00
|
|
|
listbox.c
|
2011-05-16 13:12:07 +00:00
|
|
|
listview.c
|
|
|
|
monthcal.c
|
|
|
|
nativefont.c
|
|
|
|
pager.c
|
|
|
|
progress.c
|
|
|
|
propsheet.c
|
|
|
|
rebar.c
|
|
|
|
smoothscroll.c
|
2018-04-04 13:39:21 +00:00
|
|
|
static.c
|
2011-05-16 13:12:07 +00:00
|
|
|
status.c
|
|
|
|
string.c
|
|
|
|
syslink.c
|
|
|
|
tab.c
|
2017-06-04 12:53:17 +00:00
|
|
|
taskdialog.c
|
2015-03-19 12:07:32 +00:00
|
|
|
theme_scrollbar.c
|
2011-05-16 13:12:07 +00:00
|
|
|
theming.c
|
|
|
|
toolbar.c
|
|
|
|
tooltips.c
|
|
|
|
trackbar.c
|
|
|
|
treeview.c
|
2020-05-09 21:37:40 +00:00
|
|
|
updown.c)
|
|
|
|
|
|
|
|
list(APPEND PCH_SKIP_SOURCE
|
|
|
|
stubs.c)
|
2014-02-10 12:19:56 +00:00
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(comctl32 MODULE
|
2014-02-10 12:19:56 +00:00
|
|
|
${SOURCE}
|
2020-05-09 21:37:40 +00:00
|
|
|
${PCH_SKIP_SOURCE}
|
2014-02-10 12:19:56 +00:00
|
|
|
rsrc.rc
|
2011-05-16 13:12:07 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/comctl32.def)
|
|
|
|
|
2021-03-03 01:54:37 +00:00
|
|
|
if(MSVC)
|
2021-06-29 08:03:28 +00:00
|
|
|
# Disable warning C4146: unary minus operator applied to unsigned type, result still unsigned
|
|
|
|
# Disable warning C4267: '=': conversion from 'size_t' to 'WORD', possible loss of data
|
2020-09-21 10:16:02 +00:00
|
|
|
# Disable warning C4477 (printf format warnings)
|
2021-06-29 08:03:28 +00:00
|
|
|
target_compile_options(comctl32 PRIVATE /wd4146 /wd4267 /wd4477)
|
2020-09-21 10:16:02 +00:00
|
|
|
endif()
|
2020-09-18 09:49:18 +00:00
|
|
|
|
2011-09-03 19:11:44 +00:00
|
|
|
set_module_type(comctl32 win32dll UNICODE)
|
2012-01-27 18:25:24 +00:00
|
|
|
target_link_libraries(comctl32 uuid wine ${PSEH_LIB})
|
2011-09-04 00:52:28 +00:00
|
|
|
add_delay_importlibs(comctl32 winmm uxtheme)
|
2018-04-04 13:39:21 +00:00
|
|
|
add_importlibs(comctl32 user32 gdi32 advapi32 usp10 imm32 msvcrt kernel32 ntdll)
|
2020-05-09 21:37:40 +00:00
|
|
|
add_pch(comctl32 precomp.h "${PCH_SKIP_SOURCE}")
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET comctl32 DESTINATION reactos/system32 FOR all)
|
2020-12-16 22:09:35 +00:00
|
|
|
|
|
|
|
add_cd_file(TARGET comctl32 DESTINATION reactos/winsxs/${WINARCH}_microsoft.windows.common-controls_6595b64144ccf1df_5.82.2600.2982_none_deadbeef FOR all)
|
|
|
|
add_cd_file(TARGET comctl32 DESTINATION reactos/winsxs/${WINARCH}_microsoft.windows.common-controls_6595b64144ccf1df_6.0.2600.2982_none_deadbeef FOR all)
|
|
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/${WINARCH}_microsoft.windows.common-controls_6595b64144ccf1df_5.82.2600.2982_none_deadbeef.manifest DESTINATION reactos/winsxs/manifests FOR all)
|
|
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/${WINARCH}_microsoft.windows.common-controls_6595b64144ccf1df_6.0.2600.2982_none_deadbeef.manifest DESTINATION reactos/winsxs/manifests FOR all)
|