mirror of
https://github.com/reactos/reactos.git
synced 2024-11-04 05:43:30 +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.
22 lines
549 B
CMake
22 lines
549 B
CMake
|
|
spec2def(msports.dll msports.spec)
|
|
|
|
list(APPEND SOURCE
|
|
classinst.c
|
|
comdb.c
|
|
msports.c
|
|
parallel.c
|
|
serial.c
|
|
precomp.h
|
|
${CMAKE_CURRENT_BINARY_DIR}/msports_stubs.c)
|
|
|
|
add_library(msports MODULE
|
|
${SOURCE}
|
|
msports.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/msports.def)
|
|
|
|
set_module_type(msports win32dll UNICODE)
|
|
target_link_libraries(msports wine)
|
|
add_importlibs(msports setupapi comctl32 user32 advapi32 msvcrt kernel32 ntdll)
|
|
add_pch(msports precomp.h SOURCE)
|
|
add_cd_file(TARGET msports DESTINATION reactos/system32 FOR all)
|