2010-12-07 11:40:10 +00:00
|
|
|
|
2017-12-09 12:58:55 +00:00
|
|
|
remove_definitions(-DWINVER=0x502 -D_WIN32_WINNT=0x502)
|
2019-12-01 18:40:48 +00:00
|
|
|
add_definitions(-DWINVER=0x602 -D_WIN32_WINNT=0x602)
|
2017-12-09 12:58:55 +00:00
|
|
|
|
2019-07-20 15:34:24 +00:00
|
|
|
if(MSVC)
|
|
|
|
# Disable warning C4477 (printf format warnings)
|
|
|
|
add_compile_flags("/wd4477")
|
2019-08-17 19:56:40 +00:00
|
|
|
elseif(GCC AND GCC_VERSION VERSION_GREATER 7)
|
|
|
|
add_compile_flags("-Wno-format-overflow")
|
2019-07-20 15:34:24 +00:00
|
|
|
endif()
|
|
|
|
|
2010-12-07 11:40:10 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
broadcast.c
|
|
|
|
class.c
|
|
|
|
clipboard.c
|
|
|
|
combo.c
|
|
|
|
cursoricon.c
|
|
|
|
dce.c
|
|
|
|
dde.c
|
|
|
|
dialog.c
|
2019-08-17 19:56:40 +00:00
|
|
|
edit.c
|
2016-10-20 21:44:12 +00:00
|
|
|
generated.c
|
2010-12-07 11:40:10 +00:00
|
|
|
input.c
|
|
|
|
listbox.c
|
|
|
|
menu.c
|
|
|
|
monitor.c
|
|
|
|
msg.c
|
2019-12-01 18:40:48 +00:00
|
|
|
rawinput.c
|
2010-12-07 11:40:10 +00:00
|
|
|
resource.c
|
|
|
|
scroll.c
|
|
|
|
static.c
|
|
|
|
sysparams.c
|
|
|
|
text.c
|
|
|
|
uitools.c
|
|
|
|
win.c
|
|
|
|
winstation.c
|
|
|
|
wsprintf.c
|
2017-12-09 12:58:55 +00:00
|
|
|
precomp.h)
|
|
|
|
|
|
|
|
add_executable(user32_winetest
|
|
|
|
${SOURCE}
|
|
|
|
testlist.c
|
|
|
|
resource.rc)
|
2012-03-12 13:34:01 +00:00
|
|
|
|
2017-12-09 12:58:55 +00:00
|
|
|
add_pch(user32_winetest precomp.h SOURCE)
|
2014-09-18 13:04:59 +00:00
|
|
|
# some tests need to be run from an app compiled as GUI
|
|
|
|
set_module_type(user32_winetest win32gui)
|
2013-10-05 10:20:53 +00:00
|
|
|
add_importlibs(user32_winetest user32 gdi32 advapi32 msvcrt kernel32)
|
2017-01-13 09:24:15 +00:00
|
|
|
add_rostests_file(TARGET user32_winetest)
|