mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 04:46:37 +00:00
[CMAKE]
- rewrite spec2def macro because 1. cmake gracefully handles def files as source files 2. cmake gracefully handles autogenerated files as source 3. it did not take into account the fact that all shared libraries haven't the .dll extension svn path=/branches/cmake-bringup/; revision=49358
This commit is contained in:
parent
ddc4718357
commit
4ee1da42f1
365 changed files with 1420 additions and 1703 deletions
|
@ -4,7 +4,7 @@ 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)
|
||||
spec2def(msacm32.dll msacm32.spec)
|
||||
|
||||
add_library(msacm32 SHARED
|
||||
driver.c
|
||||
|
@ -13,16 +13,15 @@ add_library(msacm32 SHARED
|
|||
internal.c
|
||||
msacm32_main.c
|
||||
pcmconverter.c
|
||||
stream.c)
|
||||
stream.c
|
||||
${CMAKE_CURRENT_BINARY_DIR}/msacm32.def)
|
||||
|
||||
set_module_type(msacm32 win32dll)
|
||||
|
||||
target_link_libraries(msacm32
|
||||
${CMAKE_CURRENT_BINARY_DIR}/msacm32.def
|
||||
wine)
|
||||
target_link_libraries(msacm32 wine)
|
||||
|
||||
add_importlibs(msacm32 msvcrt advapi32 user32 winmm kernel32 ntdll)
|
||||
add_dependencies(msacm32 msacm32_def)
|
||||
|
||||
|
||||
add_subdirectory(msacm32.drv)
|
||||
add_cab_target(msacm32 1)
|
||||
|
|
|
@ -20,5 +20,5 @@ target_link_libraries(msacm32.drv
|
|||
wine)
|
||||
|
||||
add_importlibs(msacm32.drv msacm32 user32 winmm advapi32 kernel32 ntdll)
|
||||
add_dependencies(msacm32.drv msacm32.drv_def psdk buildno_header)
|
||||
add_dependencies(msacm32.drv psdk buildno_header)
|
||||
add_cab_target(msacm32.drv 1)
|
Loading…
Add table
Add a link
Reference in a new issue