1 2add_definitions(-D__WINESRC__ -Dcopysignf=_copysignf -DD3DX_SDK_VERSION=36 -D_D3DX9_VER=36) 3include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 4spec2def(d3dx9_36.dll d3dx9_36.spec ADD_IMPORTLIB) 5 6list(APPEND SOURCE 7 animation.c 8 core.c 9 effect.c 10 font.c 11 line.c 12 main.c 13 math.c 14 mesh.c 15 preshader.c 16 render.c 17 shader.c 18 skin.c 19 sprite.c 20 surface.c 21 texture.c 22 util.c 23 volume.c 24 xfile.c 25 precomp.h) 26 27add_library(d3dx9_36 MODULE 28 ${SOURCE} 29 guid.c 30 version.rc 31 ${CMAKE_CURRENT_BINARY_DIR}/d3dx9_36_stubs.c 32 ${CMAKE_CURRENT_BINARY_DIR}/d3dx9_36.def) 33 34set_module_type(d3dx9_36 win32dll) 35add_dependencies(d3dx9_36 d3d_idl_headers) 36target_link_libraries(d3dx9_36 dxguid wine) 37add_importlibs(d3dx9_36 d3dcompiler_43 d3dxof d3dwine user32 ole32 gdi32 msvcrt kernel32 ntdll) 38add_pch(d3dx9_36 precomp.h SOURCE) 39add_cd_file(TARGET d3dx9_36 DESTINATION reactos/system32 FOR all) 40