2010-12-07 11:40:10 +00:00
|
|
|
|
2014-04-20 13:14:11 +00:00
|
|
|
add_definitions(
|
2017-10-19 11:22:20 +00:00
|
|
|
-DWINETEST_USE_DBGSTR_LONGLONG
|
2014-04-20 13:14:11 +00:00
|
|
|
-D_CRT_NONSTDC_NO_DEPRECATE
|
|
|
|
-D__msvcrt_ulong=ULONG)
|
2010-12-07 11:40:10 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
cpp.c
|
|
|
|
data.c
|
|
|
|
dir.c
|
|
|
|
environ.c
|
|
|
|
file.c
|
|
|
|
headers.c
|
|
|
|
heap.c
|
|
|
|
locale.c
|
|
|
|
misc.c
|
|
|
|
printf.c
|
|
|
|
scanf.c
|
|
|
|
signal.c
|
|
|
|
string.c
|
|
|
|
testlist.c
|
|
|
|
time.c)
|
|
|
|
|
|
|
|
add_executable(msvcrt_winetest ${SOURCE})
|
2014-04-20 13:10:24 +00:00
|
|
|
set_module_type(msvcrt_winetest win32cui)
|
|
|
|
add_importlibs(msvcrt_winetest msvcrt kernel32)
|
|
|
|
|
2011-06-18 22:02:28 +00:00
|
|
|
if(MSVC)
|
|
|
|
target_link_libraries(msvcrt_winetest oldnames)
|
2014-04-20 13:10:24 +00:00
|
|
|
add_importlibs(msvcrt_winetest ntdll)
|
2011-09-04 17:33:34 +00:00
|
|
|
else()
|
2011-10-02 22:16:18 +00:00
|
|
|
add_target_compile_flags(msvcrt_winetest "-Wno-format")
|
2011-06-18 22:02:28 +00:00
|
|
|
endif()
|
|
|
|
|
2017-01-13 09:24:15 +00:00
|
|
|
add_rostests_file(TARGET msvcrt_winetest)
|