mirror of
https://github.com/reactos/reactos.git
synced 2024-09-11 21:34:09 +00:00
52 lines
896 B
CMake
52 lines
896 B
CMake
|
|
set_unicode()
|
|
|
|
add_definitions(
|
|
-D__WINESRC__
|
|
-DUSE_WIN32_OPENGL)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
set_rc_compiler()
|
|
|
|
spec2def(d3d9.dll d3d9.spec)
|
|
|
|
list(APPEND SOURCE
|
|
buffer.c
|
|
cubetexture.c
|
|
d3d9_main.c
|
|
device.c
|
|
directx.c
|
|
query.c
|
|
shader.c
|
|
stateblock.c
|
|
surface.c
|
|
swapchain.c
|
|
texture.c
|
|
vertexdeclaration.c
|
|
volume.c
|
|
volumetexture.c
|
|
version.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/d3d9_stubs.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/d3d9.def)
|
|
|
|
add_library(d3d9 SHARED ${SOURCE})
|
|
|
|
set_module_type(d3d9 win32dll)
|
|
|
|
target_link_libraries(d3d9 uuid wine)
|
|
|
|
add_importlibs(d3d9
|
|
user32
|
|
gdi32
|
|
advapi32
|
|
wined3d
|
|
msvcrt
|
|
kernel32
|
|
ntdll)
|
|
|
|
add_dependencies(d3d9 wineheaders)
|
|
add_pch(d3d9 d3d9_private.h)
|
|
add_cd_file(TARGET d3d9 DESTINATION reactos/system32 FOR all)
|
|
add_importlib_target(d3d9.spec)
|