https://git.reactos.org/?p=reactos.git;a=commitdiff;h=86785b2c2a53a8b562db8238f887aed61e227d5f

commit 86785b2c2a53a8b562db8238f887aed61e227d5f
Author:     Adam Słaboń <asaillen456...@gmail.com>
AuthorDate: Fri Mar 6 19:09:28 2020 +0100
Commit:     GitHub <nore...@github.com>
CommitDate: Fri Mar 6 19:09:28 2020 +0100

    [DSOUND_NEW][DDRAW] CMake fixes (#2389)
    
    * Create export tables for native ddraw and dsound_new.
    * Include native ddraw version resource in build process.
    CORE-16228
---
 dll/directx/ddraw/CMakeLists.txt      | 6 +++++-
 dll/directx/dsound_new/CMakeLists.txt | 3 ++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/dll/directx/ddraw/CMakeLists.txt b/dll/directx/ddraw/CMakeLists.txt
index e86062f1673..598b9059259 100644
--- a/dll/directx/ddraw/CMakeLists.txt
+++ b/dll/directx/ddraw/CMakeLists.txt
@@ -39,7 +39,11 @@ list(APPEND SOURCE
     Vtable/DirectDrawSurface4_Vtable.c
     Vtable/DirectDrawSurface7_Vtable.c)
 
-add_library(ddraw MODULE ${SOURCE})
+add_library(ddraw MODULE 
+    ${SOURCE}
+    ddraw.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/ddraw.def)
+
 set_module_type(ddraw win32dll)
 target_link_libraries(ddraw uuid dxguid ${PSEH_LIB})
 add_importlibs(ddraw advapi32 gdi32 user32 msvcrt kernel32 ntdll)
diff --git a/dll/directx/dsound_new/CMakeLists.txt 
b/dll/directx/dsound_new/CMakeLists.txt
index a9445d14cac..eaff7964f1a 100644
--- a/dll/directx/dsound_new/CMakeLists.txt
+++ b/dll/directx/dsound_new/CMakeLists.txt
@@ -21,7 +21,8 @@ list(APPEND SOURCE
 
 add_library(dsound MODULE
     ${SOURCE}
-    version.rc)
+    version.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/dsound.def)
 
 set_module_type(dsound win32dll)
 target_link_libraries(dsound dxguid uuid)

Reply via email to