1 2list(APPEND SOURCE_STATIC 3 _snprintf.c 4 _snwprintf.c 5 _vscprintf.c 6 _vscwprintf.c 7 _vsnprintf.c 8 _vsnwprintf.c 9 atexit.c 10 mbstowcs.c 11 mbtowc.c 12 sprintf.c 13 strcpy.c 14 strlen.c 15 strtoul.c 16 wcstombs.c 17 wcstoul.c 18 wctomb.c 19) 20 21if(ARCH STREQUAL "i386") 22 list(APPEND SOURCE_STATIC 23 # To be filled 24 ) 25elseif(ARCH STREQUAL "amd64") 26 list(APPEND SOURCE_STATIC 27 # To be filled 28 ) 29elseif(ARCH STREQUAL "arm") 30 list(APPEND SOURCE_STATIC 31 __rt_div.c 32 __fto64.c 33 __64tof.c 34 ) 35endif() 36 37add_executable(static_crt_apitest EXCLUDE_FROM_ALL testlist.c ${SOURCE_STATIC}) 38target_compile_definitions(static_crt_apitest PRIVATE TEST_STATIC_CRT wine_dbgstr_an=wine_dbgstr_an_ wine_dbgstr_wn=wine_dbgstr_wn_) 39target_link_libraries(static_crt_apitest crt wine ${PSEH_LIB}) 40set_module_type(static_crt_apitest win32cui) 41add_importlibs(static_crt_apitest kernel32 ntdll) 42add_rostests_file(TARGET static_crt_apitest) 43