2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-D__WINESRC__
|
|
|
|
-D_WINE)
|
|
|
|
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
2011-05-16 13:12:07 +00:00
|
|
|
spec2def(mciwave.dll mciwave.spec)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
mciwave.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/mciwave.def)
|
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(mciwave MODULE ${SOURCE})
|
2013-02-23 16:45:48 +00:00
|
|
|
set_module_type(mciwave win32dll)
|
2011-05-16 13:12:07 +00:00
|
|
|
target_link_libraries(mciwave wine)
|
|
|
|
add_importlibs(mciwave user32 winmm msvcrt kernel32 ntdll)
|
|
|
|
add_cd_file(TARGET mciwave DESTINATION reactos/system32 FOR all)
|
2011-09-04 17:32:30 +00:00
|
|
|
|
2021-06-29 08:03:28 +00:00
|
|
|
if(MSVC)
|
|
|
|
# Disable warning C4305: '=': truncation from 'UINT' to 'WORD'
|
|
|
|
target_compile_options(mciwave PRIVATE /wd4305)
|
|
|
|
else()
|
2020-04-16 12:59:38 +00:00
|
|
|
target_compile_options(mciwave PRIVATE "-Wno-overflow")
|
2011-09-04 17:32:30 +00:00
|
|
|
endif()
|