2 function(add_d3dx9_target __version)
3 set(module d3dx9_${__version})
5 spec2def(${module}.dll ${module}.spec ADD_IMPORTLIB)
8 ../d3dx9_36/animation.c
16 ../d3dx9_36/preshader.c
26 ../d3dx9_36/precomp.h)
28 add_library(${module} MODULE
32 ${CMAKE_CURRENT_BINARY_DIR}/${module}_stubs.c
33 ${CMAKE_CURRENT_BINARY_DIR}/${module}.def)
35 add_definitions(-D__ROS_LONG64__)
36 set_module_type(${module} win32dll)
37 add_dependencies(${module} d3d_idl_headers)
38 target_link_libraries(${module} dxguid wine)
39 add_importlibs(${module} d3dcompiler_43 d3dxof d3dwine user32 ole32 gdi32 msvcrt kernel32 ntdll)
40 add_delay_importlibs(${module} windowscodecs)
41 add_pch(${module} ../d3dx9_36/precomp.h SOURCE)
42 add_cd_file(TARGET ${module} DESTINATION reactos/system32 FOR all)
44 target_compile_definitions(${module} PRIVATE -DD3DX_SDK_VERSION=${__version} -D__WINESRC__ -Dcopysignf=_copysignf)
45 target_include_directories(${module} PRIVATE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)