[SETUPLIB] Add a setuplib_static library, used for the dll and the unit-tests.

Since the setuplib.dll isn't available after installing ReactOS, build
instead a static library that is then used for the dll, and linked into
the setuplib_unittest, so that it can be run in our test-suite.

Addendum to commit d7c1d220.
This commit is contained in:
Hermès Bélusca-Maïto 2025-04-20 18:15:22 +02:00
parent 2c2cdfddd3
commit f135cab83e
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
4 changed files with 58 additions and 31 deletions

View file

@ -11,7 +11,8 @@ list(APPEND SOURCE
precomp.h)
add_executable(setuplib_unittest ${SOURCE})
target_link_libraries(setuplib_unittest setuplib_static ${PSEH_LIB})
set_module_type(setuplib_unittest win32cui)
add_importlibs(setuplib_unittest setuplib msvcrt kernel32)
add_importlibs(setuplib_unittest msvcrt kernel32 ntdll)
#add_pch(setuplib_unittest precomp.h SOURCE)
add_rostests_file(TARGET setuplib_unittest)