mirror of
https://github.com/reactos/reactos.git
synced 2024-08-14 15:16:27 +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.
32 lines
797 B
CMake
32 lines
797 B
CMake
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys)
|
|
|
|
spec2def(basesrv.dll basesrv.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
appcompat.c
|
|
dosdev.c
|
|
init.c
|
|
proc.c
|
|
sndsntry.c
|
|
vdm.c
|
|
nls.c
|
|
basesrv.h)
|
|
|
|
add_library(basesrv MODULE
|
|
${SOURCE}
|
|
basesrv.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/basesrv.def)
|
|
|
|
set_module_type(basesrv win32dll UNICODE ENTRYPOINT DllMain 12)
|
|
#############################################
|
|
## HACK FOR MSVC COMPILATION WITH win32dll ##
|
|
set_subsystem(basesrv console)
|
|
################# END HACK #################
|
|
|
|
target_link_libraries(basesrv ${PSEH_LIB})
|
|
add_importlibs(basesrv csrsrv ntdll)
|
|
add_pch(basesrv basesrv.h SOURCE)
|
|
add_dependencies(basesrv bugcodes xdk)
|
|
add_cd_file(TARGET basesrv DESTINATION reactos/system32 FOR all)
|