mirror of
https://github.com/reactos/reactos.git
synced 2024-08-18 09:28:36 +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.
28 lines
605 B
CMake
28 lines
605 B
CMake
|
|
spec2def(userenv.dll userenv.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
desktop.c
|
|
directory.c
|
|
environment.c
|
|
gpolicy.c
|
|
misc.c
|
|
profile.c
|
|
registry.c
|
|
setup.c
|
|
sid.c
|
|
userenv.c
|
|
precomp.h)
|
|
|
|
add_library(userenv MODULE
|
|
${SOURCE}
|
|
userenv.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/userenv_stubs.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/userenv.def)
|
|
|
|
set_module_type(userenv win32dll)
|
|
target_link_libraries(userenv uuid)
|
|
add_importlibs(userenv advapi32 user32 msvcrt kernel32 ntdll)
|
|
add_pch(userenv precomp.h SOURCE)
|
|
add_cd_file(TARGET userenv DESTINATION reactos/system32 FOR all)
|