https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c23ce9dfad8e4a3a104c9b95b993e9872e84e243

commit c23ce9dfad8e4a3a104c9b95b993e9872e84e243
Author:     Timo Kreuzer <[email protected]>
AuthorDate: Sun Jul 18 20:03:03 2021 +0200
Commit:     Timo Kreuzer <[email protected]>
CommitDate: Wed Aug 4 02:03:07 2021 +0200

    [CRT_APITEST] Add static_crt_apitest
---
 modules/rostests/apitests/crt/CMakeLists.txt       |  1 +
 .../rostests/apitests/crt/static_crt_apitest.cmake | 41 ++++++++++++++++++++++
 2 files changed, 42 insertions(+)

diff --git a/modules/rostests/apitests/crt/CMakeLists.txt 
b/modules/rostests/apitests/crt/CMakeLists.txt
index 3b71f777bc6..7af9e3a2463 100644
--- a/modules/rostests/apitests/crt/CMakeLists.txt
+++ b/modules/rostests/apitests/crt/CMakeLists.txt
@@ -5,6 +5,7 @@ endif()
 
 include(ntdll_crt_apitest.cmake)
 include(msvcrt_crt_apitest.cmake)
+include(static_crt_apitest.cmake)
 
 if(NOT ARCH STREQUAL "amd64" AND NOT ARCH STREQUAL "arm")
   include(crtdll_crt_apitest.cmake)
diff --git a/modules/rostests/apitests/crt/static_crt_apitest.cmake 
b/modules/rostests/apitests/crt/static_crt_apitest.cmake
new file mode 100644
index 00000000000..17ff8f8d733
--- /dev/null
+++ b/modules/rostests/apitests/crt/static_crt_apitest.cmake
@@ -0,0 +1,41 @@
+
+list(APPEND SOURCE_STATIC
+    _snprintf.c
+    _snwprintf.c
+    _vscprintf.c
+    _vscwprintf.c
+    _vsnprintf.c
+    _vsnwprintf.c
+    atexit.c
+    mbstowcs.c
+    mbtowc.c
+    sprintf.c
+    strcpy.c
+    strlen.c
+    strtoul.c
+    wcstombs.c
+    wcstoul.c
+    wctomb.c
+)
+
+if(ARCH STREQUAL "i386")
+    list(APPEND SOURCE_STATIC
+        # To be filled
+    )
+elseif(ARCH STREQUAL "amd64")
+    list(APPEND SOURCE_STATIC
+        # To be filled
+    )
+elseif(ARCH STREQUAL "arm")
+    list(APPEND SOURCE_STATIC
+        __rt_div.c
+        __fto64.c
+    )
+endif()
+
+add_executable(static_crt_apitest EXCLUDE_FROM_ALL testlist.c ${SOURCE_STATIC})
+target_compile_definitions(static_crt_apitest PRIVATE TEST_STATIC_CRT 
wine_dbgstr_an=wine_dbgstr_an_ wine_dbgstr_wn=wine_dbgstr_wn_)
+target_link_libraries(static_crt_apitest crt wine ${PSEH_LIB})
+set_module_type(static_crt_apitest win32cui)
+add_importlibs(static_crt_apitest kernel32 ntdll)
+add_rostests_file(TARGET static_crt_apitest)

Reply via email to