- Some work on the dlls. By Alexey Komarov.

svn path=/branches/cmake-bringup/; revision=49079
This commit is contained in:
Amine Khaldi 2010-10-09 19:15:45 +00:00
parent ae8c809c3b
commit 60a11ae666
14 changed files with 255 additions and 10 deletions

View file

@ -0,0 +1,23 @@
set_unicode()
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/msacm32.drv.def
COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/msacm32.drv.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/msacm32.drv.spec --filename msacm32.drv
DEPENDS native-winebuild)
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/msacm32.drv.def PROPERTIES GENERATED TRUE)
add_custom_target(msacm32.drv_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/msacm32.drv.def)
add_library(msacm32.drv SHARED wavemap.c wavemap.rc)
set_entrypoint(msacm32.drv 0)
set_target_properties(msacm32.drv PROPERTIES SUFFIX "")
target_link_libraries(msacm32.drv
${CMAKE_CURRENT_BINARY_DIR}/msacm32.drv.def
wine)
add_importlibs(msacm32.drv msacm32 user32 winmm advapi32 kernel32 ntdll)
add_dependencies(msacm32.drv msacm32.drv_def psdk buildno_header)