1
2add_definitions(
3    -D__WINESRC__
4    -D_USE_MATH_DEFINES
5    -DUSE_WIN32_OPENGL
6    -Dcopysignf=_copysignf)
7
8include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
9
10# We name this d3dwine.dll, because the Virtualbox additions ship with a custom wined3d.dll
11# and it breaks everything if it is installed.
12spec2def(d3dwine.dll wined3d.spec ADD_IMPORTLIB)
13
14list(APPEND SOURCE
15    arb_program_shader.c
16    ati_fragment_shader.c
17    buffer.c
18    context.c
19    cs.c
20    device.c
21    directx.c
22    dxtn.c
23    gl_compat.c
24    glsl_shader.c
25    nvidia_texture_shader.c
26    palette.c
27    query.c
28    resource.c
29    sampler.c
30    shader.c
31    shader_sm1.c
32    shader_sm4.c
33    state.c
34    stateblock.c
35    surface.c
36    swapchain.c
37    texture.c
38    utils.c
39    vertexdeclaration.c
40    view.c
41    wined3d_main.c
42    precomp.h)
43
44add_library(d3dwine SHARED
45    ${SOURCE}
46    version.rc
47    ${CMAKE_CURRENT_BINARY_DIR}/d3dwine.def)
48
49set_module_type(d3dwine win32dll)
50target_link_libraries(d3dwine wine)
51add_importlibs(d3dwine user32 opengl32 gdi32 advapi32 msvcrt kernel32 ntdll)
52add_pch(d3dwine precomp.h SOURCE)
53add_cd_file(TARGET d3dwine DESTINATION reactos/system32 FOR all)
54