mirror of
https://github.com/reactos/reactos.git
synced 2024-10-30 19:41:57 +00:00
23373acbb9
There is no need to compile our DLLs as shared libraries since we are managing symbols exports and imports through spec files. On my system, this reduces the configure-time by a factor of two.
25 lines
919 B
CMake
25 lines
919 B
CMake
|
|
spec2def(redirtest.dll redirtest.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE1
|
|
redirtest1.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/redirtest_stubs.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/redirtest.def)
|
|
|
|
list(APPEND SOURCE2
|
|
redirtest2.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/redirtest_stubs.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/redirtest.def)
|
|
|
|
add_library(redirtest1 MODULE ${SOURCE1})
|
|
set_module_type(redirtest1 win32dll)
|
|
add_importlibs(redirtest1 msvcrt kernel32 ntdll)
|
|
add_rostests_file(TARGET redirtest1 RENAME kernel32test_versioned.dll)
|
|
|
|
add_library(redirtest2 MODULE ${SOURCE2})
|
|
set_module_type(redirtest2 win32dll)
|
|
add_importlibs(redirtest2 msvcrt kernel32 ntdll)
|
|
add_rostests_file(TARGET redirtest2 SUBDIR testdata RENAME kernel32test_versioned.dll)
|
|
add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/redirtest2.manifest" SUBDIR testdata)
|
|
add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/redir2dep.manifest" SUBDIR testdata)
|