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