mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 01:48:11 +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.
21 lines
526 B
CMake
21 lines
526 B
CMake
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys)
|
|
spec2def(smdll.dll smdll.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
dllmain.c
|
|
query.c
|
|
precomp.h)
|
|
|
|
add_library(smdll MODULE
|
|
${SOURCE}
|
|
smdll.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/smdll.def)
|
|
|
|
target_link_libraries(smdll smlib)
|
|
set_module_type(smdll nativedll ENTRYPOINT DllMainCRTStartup 12)
|
|
add_importlibs(smdll ntdll)
|
|
add_pch(smdll precomp.h SOURCE)
|
|
add_dependencies(smdll psdk)
|
|
add_cd_file(TARGET smdll DESTINATION reactos/system32 FOR all)
|