[D3D8][D3D9][DDRAW][WINED3D] Sync with Wine Staging 3.3. CORE-14434
[reactos.git] / dll / directx / wine / wined3d / CMakeLists.txt
1
2 add_definitions(
3 -D__WINESRC__
4 -D_USE_MATH_DEFINES
5 -DUSE_WIN32_OPENGL
6 -Dcopysignf=_copysignf)
7
8 include_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.
12 spec2def(d3dwine.dll wined3d.spec ADD_IMPORTLIB)
13
14 list(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
44 add_library(d3dwine SHARED
45 ${SOURCE}
46 version.rc
47 ${CMAKE_CURRENT_BINARY_DIR}/d3dwine.def)
48
49 set_module_type(d3dwine win32dll)
50 target_link_libraries(d3dwine wine)
51 add_importlibs(d3dwine user32 opengl32 gdi32 advapi32 msvcrt kernel32 ntdll)
52 add_pch(d3dwine precomp.h SOURCE)
53 add_cd_file(TARGET d3dwine DESTINATION reactos/system32 FOR all)