mirror of
https://github.com/reactos/reactos.git
synced 2024-10-31 03:48:17 +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.
25 lines
573 B
CMake
25 lines
573 B
CMake
|
|
spec2def(mmsys.cpl mmsys.spec)
|
|
|
|
list(APPEND SOURCE
|
|
mmsys.c
|
|
sounds.c
|
|
speakervolume.c
|
|
volume.c
|
|
audio.c
|
|
voice.c
|
|
mmsys.h)
|
|
|
|
file(GLOB mmsys_rc_deps resources/*.*)
|
|
add_rc_deps(mmsys.rc ${mmsys_rc_deps})
|
|
|
|
add_library(mmsys MODULE
|
|
${SOURCE}
|
|
mmsys.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/mmsys.def)
|
|
|
|
set_module_type(mmsys cpl UNICODE)
|
|
add_importlibs(mmsys user32 comctl32 devmgr gdi32 winmm advapi32 shell32 setupapi shlwapi comdlg32 msvcrt kernel32 ntdll)
|
|
add_pch(mmsys mmsys.h SOURCE)
|
|
add_cd_file(TARGET mmsys DESTINATION reactos/system32 FOR all)
|