Create the AHCI branch for Aman's work
[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 drawprim.c
23 dxtn.c
24 gl_compat.c
25 glsl_shader.c
26 nvidia_texture_shader.c
27 palette.c
28 query.c
29 resource.c
30 sampler.c
31 shader.c
32 shader_sm1.c
33 shader_sm4.c
34 state.c
35 stateblock.c
36 surface.c
37 swapchain.c
38 texture.c
39 utils.c
40 vertexdeclaration.c
41 view.c
42 volume.c
43 wined3d_main.c
44 wined3d_private.h)
45
46 add_library(d3dwine SHARED
47 ${SOURCE}
48 version.rc
49 ${CMAKE_CURRENT_BINARY_DIR}/d3dwine.def)
50
51 set_module_type(d3dwine win32dll)
52 target_link_libraries(d3dwine wine)
53
54 if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
55 target_link_libraries(d3dwine mingwex)
56 endif()
57
58 add_importlibs(d3dwine user32 opengl32 gdi32 advapi32 msvcrt kernel32 ntdll)
59 add_pch(d3dwine wined3d_private.h SOURCE)
60 add_cd_file(TARGET d3dwine DESTINATION reactos/system32 FOR all)