mirror of
https://github.com/reactos/reactos.git
synced 2024-10-30 03:27:31 +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.
28 lines
828 B
CMake
28 lines
828 B
CMake
|
|
include_directories(
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/sound
|
|
${REACTOS_SOURCE_DIR}/drivers/wdm/audio/legacy/wdmaud
|
|
${REACTOS_SOURCE_DIR}/sdk/lib/drivers/sound/mmixer
|
|
${REACTOS_SOURCE_DIR}/sdk/lib/3rdparty/libsamplerate)
|
|
|
|
spec2def(wdmaud.drv wdmaud.spec)
|
|
|
|
list(APPEND SOURCE
|
|
wdmaud.c
|
|
mixer.c
|
|
mmixer.c
|
|
legacy.c
|
|
wdmaud.h)
|
|
|
|
add_library(wdmaud.drv MODULE
|
|
${SOURCE}
|
|
wdmaud.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/wdmaud.def)
|
|
|
|
set_module_type(wdmaud.drv win32dll UNICODE)
|
|
set_target_properties(wdmaud.drv PROPERTIES SUFFIX "")
|
|
target_link_libraries(wdmaud.drv mmebuddy libsamplerate mmixer)
|
|
add_importlibs(wdmaud.drv user32 winmm advapi32 msvcrt setupapi ksuser kernel32 ntdll)
|
|
add_pch(wdmaud.drv wdmaud.h SOURCE)
|
|
add_cd_file(TARGET wdmaud.drv DESTINATION reactos/system32 FOR all)
|