xref: /reactos/dll/directx/wine/d3d8/CMakeLists.txt (revision 1734f297)
1
2add_definitions(
3    -D__WINESRC__
4    -D__ROS_LONG64__
5    -DUSE_WIN32_OPENGL)
6
7include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
8spec2def(d3d8.dll d3d8.spec)
9
10list(APPEND SOURCE
11    buffer.c
12    d3d8_main.c
13    device.c
14    directx.c
15    shader.c
16    surface.c
17    swapchain.c
18    texture.c
19    vertexdeclaration.c
20    volume.c)
21
22list(APPEND PCH_SKIP_SOURCE
23    guid.c)
24
25add_library(d3d8 MODULE
26    ${SOURCE}
27    ${PCH_SKIP_SOURCE}
28    version.rc
29    ${CMAKE_CURRENT_BINARY_DIR}/d3d8.def)
30
31set_module_type(d3d8 win32dll UNICODE)
32target_link_libraries(d3d8 uuid wine)
33add_importlibs(d3d8 d3dwine msvcrt kernel32 ntdll)
34add_pch(d3d8 precomp.h "${PCH_SKIP_SOURCE}")
35add_cd_file(TARGET d3d8 DESTINATION reactos/system32 FOR all)
36