1 2add_definitions( 3 -D__WINESRC__ 4 -D_USE_MATH_DEFINES 5 -DUSE_WIN32_OPENGL 6 -D__ROS_LONG64__ 7 -Dcopysignf=_copysignf) 8 9include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 10 11# We name this d3dwine.dll, because the Virtualbox additions ship with a custom wined3d.dll 12# and it breaks everything if it is installed. 13spec2def(d3dwine.dll wined3d.spec ADD_IMPORTLIB) 14 15list(APPEND SOURCE 16 arb_program_shader.c 17 ati_fragment_shader.c 18 buffer.c 19 context.c 20 cs.c 21 device.c 22 directx.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 wined3d_main.c 43 precomp.h) 44 45add_library(d3dwine MODULE 46 ${SOURCE} 47 version.rc 48 ${CMAKE_CURRENT_BINARY_DIR}/d3dwine.def) 49 50set_module_type(d3dwine win32dll) 51target_link_libraries(d3dwine wine) 52add_importlibs(d3dwine user32 opengl32 gdi32 advapi32 msvcrt kernel32 ntdll) 53add_pch(d3dwine precomp.h SOURCE) 54add_cd_file(TARGET d3dwine DESTINATION reactos/system32 FOR all) 55