2019-12-19 23:39:44 +00:00
|
|
|
|
|
|
|
function(add_d3dx9_target __version)
|
|
|
|
set(module d3dx9_${__version})
|
|
|
|
|
|
|
|
spec2def(${module}.dll ${module}.spec ADD_IMPORTLIB)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
../d3dx9_36/animation.c
|
|
|
|
../d3dx9_36/core.c
|
|
|
|
../d3dx9_36/effect.c
|
|
|
|
../d3dx9_36/font.c
|
|
|
|
../d3dx9_36/line.c
|
|
|
|
../d3dx9_36/main.c
|
|
|
|
../d3dx9_36/math.c
|
|
|
|
../d3dx9_36/mesh.c
|
|
|
|
../d3dx9_36/preshader.c
|
|
|
|
../d3dx9_36/render.c
|
|
|
|
../d3dx9_36/shader.c
|
|
|
|
../d3dx9_36/skin.c
|
|
|
|
../d3dx9_36/sprite.c
|
|
|
|
../d3dx9_36/surface.c
|
|
|
|
../d3dx9_36/texture.c
|
|
|
|
../d3dx9_36/util.c
|
|
|
|
../d3dx9_36/volume.c
|
2020-05-09 21:37:40 +00:00
|
|
|
../d3dx9_36/xfile.c)
|
|
|
|
|
|
|
|
list(APPEND PCH_SKIP_SOURCE
|
|
|
|
../d3dx9_36/guid.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/${module}_stubs.c)
|
2019-12-19 23:39:44 +00:00
|
|
|
|
|
|
|
add_library(${module} MODULE
|
|
|
|
${SOURCE}
|
2020-05-09 21:37:40 +00:00
|
|
|
${PCH_SKIP_SOURCE}
|
2019-12-19 23:39:44 +00:00
|
|
|
version.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/${module}.def)
|
2020-09-21 14:02:17 +00:00
|
|
|
|
2020-03-26 13:40:39 +00:00
|
|
|
add_definitions(-D__ROS_LONG64__)
|
2019-12-19 23:39:44 +00:00
|
|
|
set_module_type(${module} win32dll)
|
|
|
|
add_dependencies(${module} d3d_idl_headers)
|
|
|
|
target_link_libraries(${module} dxguid wine)
|
2020-09-21 14:02:17 +00:00
|
|
|
add_importlibs(${module} d3dcompiler_43 d3dxof user32 ole32 gdi32 msvcrt kernel32 ntdll)
|
2020-01-04 00:48:04 +00:00
|
|
|
add_delay_importlibs(${module} windowscodecs)
|
2020-05-09 21:37:40 +00:00
|
|
|
add_pch(${module} ../d3dx9_36/precomp.h "${PCH_SKIP_SOURCE}")
|
2019-12-19 23:39:44 +00:00
|
|
|
add_cd_file(TARGET ${module} DESTINATION reactos/system32 FOR all)
|
2020-09-21 14:02:17 +00:00
|
|
|
|
2019-12-19 23:39:44 +00:00
|
|
|
target_compile_definitions(${module} PRIVATE -DD3DX_SDK_VERSION=${__version} -D__WINESRC__ -Dcopysignf=_copysignf)
|
|
|
|
endfunction()
|