mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 18:35:32 +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.
31 lines
715 B
CMake
31 lines
715 B
CMake
|
|
add_definitions(
|
|
-DCOM_NO_WINDOWS_H
|
|
-D__WINESRC__)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
|
spec2def(dplayx.dll dplayx.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
dpclassfactory.c
|
|
dplay.c
|
|
dplaysp.c
|
|
dplayx_global.c
|
|
dplayx_main.c
|
|
dplayx_messages.c
|
|
dplobby.c
|
|
lobbysp.c
|
|
name_server.c
|
|
precomp.h)
|
|
|
|
add_library(dplayx MODULE
|
|
${SOURCE}
|
|
version.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/dplayx.def)
|
|
|
|
set_module_type(dplayx win32dll)
|
|
target_link_libraries(dplayx dxguid uuid wine)
|
|
add_importlibs(dplayx winmm ole32 user32 advapi32 msvcrt kernel32 ntdll)
|
|
add_pch(dplayx precomp.h SOURCE)
|
|
add_cd_file(TARGET dplayx DESTINATION reactos/system32 FOR all)
|