2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_definitions(-D_WINE)
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
2012-03-07 21:21:27 +00:00
|
|
|
spec2def(winmm.dll winmm.spec ADD_IMPORTLIB)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2019-04-01 15:55:03 +00:00
|
|
|
if(MSVC)
|
|
|
|
# error C4312: 'type cast': conversion from 'DWORD' to 'HTASK' of greater size
|
|
|
|
replace_compile_flags("/we4312" " ")
|
|
|
|
endif()
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
driver.c
|
|
|
|
joystick.c
|
|
|
|
lolvldrv.c
|
|
|
|
mci.c
|
|
|
|
mmio.c
|
|
|
|
playsound.c
|
|
|
|
registry.c
|
|
|
|
time.c
|
|
|
|
winmm.c
|
2014-02-10 12:19:56 +00:00
|
|
|
winemm.h
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/winmm_stubs.c)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(winmm MODULE
|
2012-03-12 12:39:51 +00:00
|
|
|
${SOURCE}
|
2014-02-10 12:19:56 +00:00
|
|
|
winmm_res.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/winmm.def)
|
2012-03-12 12:39:51 +00:00
|
|
|
|
2015-11-04 18:06:16 +00:00
|
|
|
set_module_type(winmm win32dll)
|
2011-09-11 16:56:56 +00:00
|
|
|
target_link_libraries(winmm wine ${PSEH_LIB})
|
2011-05-16 13:12:07 +00:00
|
|
|
add_importlibs(winmm advapi32 user32 msvcrt kernel32 ntdll)
|
2014-02-10 12:19:56 +00:00
|
|
|
add_pch(winmm winemm.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET winmm DESTINATION reactos/system32 FOR all)
|
2014-05-31 16:58:03 +00:00
|
|
|
|
2017-10-27 21:18:01 +00:00
|
|
|
if(NOT MSVC)
|
2014-05-31 16:58:03 +00:00
|
|
|
add_target_compile_flags(winmm "-Wno-unused-but-set-variable")
|
|
|
|
endif()
|
2014-10-17 23:28:29 +00:00
|
|
|
|
|
|
|
add_subdirectory(midimap)
|