mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 23:43:08 +00:00
[CMAKE]
- Some work on the dlls. By Alexey Komarov. svn path=/branches/cmake-bringup/; revision=49079
This commit is contained in:
parent
ae8c809c3b
commit
60a11ae666
14 changed files with 255 additions and 10 deletions
27
dll/win32/msacm32/CMakeLists.txt
Normal file
27
dll/win32/msacm32/CMakeLists.txt
Normal file
|
@ -0,0 +1,27 @@
|
|||
|
||||
set_unicode()
|
||||
|
||||
add_definitions(-D_DLL -D__USE_CRTIMP)
|
||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
||||
|
||||
spec2def(msacm32 ${CMAKE_CURRENT_SOURCE_DIR}/msacm32.spec ${CMAKE_CURRENT_BINARY_DIR}/msacm32.def)
|
||||
|
||||
add_library(msacm32 SHARED
|
||||
driver.c
|
||||
filter.c
|
||||
format.c
|
||||
internal.c
|
||||
msacm32_main.c
|
||||
pcmconverter.c
|
||||
stream.c)
|
||||
|
||||
set_module_type(msacm32 win32dll)
|
||||
|
||||
target_link_libraries(msacm32
|
||||
${CMAKE_CURRENT_BINARY_DIR}/msacm32.def
|
||||
wine)
|
||||
|
||||
add_importlibs(msacm32 msvcrt advapi32 user32 winmm kernel32 ntdll)
|
||||
add_dependencies(msacm32 msacm32_def)
|
||||
|
||||
add_subdirectory(msacm32.drv)
|
23
dll/win32/msacm32/msacm32.drv/CMakeLists.txt
Normal file
23
dll/win32/msacm32/msacm32.drv/CMakeLists.txt
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue