[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
This commit is contained in:
Adam Słaboń 2020-03-06 19:09:28 +01:00 committed by GitHub
parent 92aabb07fb
commit 86785b2c2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -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)

View file

@ -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)