mirror of
https://github.com/reactos/reactos.git
synced 2024-08-18 17:37:02 +00:00
![Jérôme Gardou](/assets/img/avatar_default.png)
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.
23 lines
554 B
CMake
23 lines
554 B
CMake
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
|
add_definitions(-D__WINESRC__)
|
|
spec2def(sxs.dll sxs.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
cache.c
|
|
name.c
|
|
sxs.c
|
|
precomp.h
|
|
${CMAKE_CURRENT_BINARY_DIR}/sxs_stubs.c)
|
|
|
|
add_library(sxs MODULE
|
|
${SOURCE}
|
|
guid.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/sxs.def)
|
|
|
|
set_module_type(sxs win32dll)
|
|
target_link_libraries(sxs wine)
|
|
add_importlibs(sxs oleaut32 ole32 msvcrt kernel32 ntdll)
|
|
add_pch(sxs precomp.h SOURCE)
|
|
add_cd_file(TARGET sxs DESTINATION reactos/system32 FOR all)
|