2010-12-07 09:27:10 +00:00
|
|
|
|
2016-04-20 12:39:37 +00:00
|
|
|
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
2011-09-04 17:33:34 +00:00
|
|
|
remove_definitions(-DWINVER=0x502 -D_WIN32_IE=0x600 -D_WIN32_WINNT=0x502)
|
2017-12-18 12:28:00 +00:00
|
|
|
add_definitions(-DWINVER=0x600 -D_WIN32_WINNT=0x601)
|
2011-09-04 17:33:34 +00:00
|
|
|
|
2024-05-21 16:33:42 +00:00
|
|
|
add_definitions(
|
|
|
|
-Dstrcasecmp=_stricmp
|
|
|
|
)
|
|
|
|
|
2010-12-07 09:27:10 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
actctx.c
|
|
|
|
atom.c
|
|
|
|
change.c
|
|
|
|
codepage.c
|
|
|
|
comm.c
|
|
|
|
console.c
|
|
|
|
debugger.c
|
|
|
|
directory.c
|
|
|
|
drive.c
|
|
|
|
environ.c
|
|
|
|
fiber.c
|
|
|
|
file.c
|
|
|
|
format_msg.c
|
2020-03-07 12:30:23 +00:00
|
|
|
generated.c
|
2010-12-07 09:27:10 +00:00
|
|
|
heap.c
|
|
|
|
loader.c
|
|
|
|
locale.c
|
|
|
|
mailslot.c
|
|
|
|
module.c
|
|
|
|
path.c
|
|
|
|
pipe.c
|
|
|
|
process.c
|
|
|
|
profile.c
|
|
|
|
resource.c
|
|
|
|
sync.c
|
|
|
|
thread.c
|
|
|
|
time.c
|
|
|
|
timer.c
|
|
|
|
toolhelp.c
|
|
|
|
version.c
|
|
|
|
virtual.c
|
2020-05-09 21:37:40 +00:00
|
|
|
volume.c)
|
|
|
|
|
|
|
|
list(APPEND PCH_SKIP_SOURCE
|
|
|
|
testlist.c)
|
2012-03-12 13:34:01 +00:00
|
|
|
|
2017-12-18 12:28:00 +00:00
|
|
|
add_executable(kernel32_winetest
|
|
|
|
${SOURCE}
|
2020-05-09 21:37:40 +00:00
|
|
|
${PCH_SKIP_SOURCE}
|
2017-12-18 12:28:00 +00:00
|
|
|
resource.rc)
|
2015-03-09 17:15:16 +00:00
|
|
|
|
2020-09-18 09:49:18 +00:00
|
|
|
if(MSVC)
|
|
|
|
# Disable warning C4477 (printf format warnings)
|
2021-03-03 01:54:37 +00:00
|
|
|
remove_target_compile_option(kernel32_winetest "/we4477")
|
2020-09-08 02:28:50 +00:00
|
|
|
|
|
|
|
if(ARCH STREQUAL "amd64")
|
|
|
|
# error C4101: 'is_wow64': unreferenced local variable
|
|
|
|
remove_target_compile_option(kernel32_winetest "/we4101")
|
|
|
|
target_compile_options(kernel32_winetest PRIVATE /wd4101)
|
|
|
|
endif()
|
2020-09-18 09:49:18 +00:00
|
|
|
endif()
|
|
|
|
|
2022-05-25 22:37:23 +00:00
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
2020-04-16 12:59:38 +00:00
|
|
|
target_compile_options(kernel32_winetest PRIVATE "-Wno-format")
|
2015-03-09 17:15:16 +00:00
|
|
|
endif()
|
|
|
|
|
2010-12-07 09:27:10 +00:00
|
|
|
set_module_type(kernel32_winetest win32cui)
|
2021-04-22 15:28:52 +00:00
|
|
|
target_link_libraries(kernel32_winetest pseh)
|
2010-12-07 09:27:10 +00:00
|
|
|
add_importlibs(kernel32_winetest user32 advapi32 msvcrt kernel32 ntdll)
|
2020-05-09 21:37:40 +00:00
|
|
|
add_pch(kernel32_winetest precomp.h "${PCH_SKIP_SOURCE}")
|
2017-01-13 09:24:15 +00:00
|
|
|
add_rostests_file(TARGET kernel32_winetest)
|