1 2add_definitions( 3 -D__WINESRC__ 4 -DUSE_WIN32_OPENGL) 5 6include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 7spec2def(d3d9.dll d3d9.spec ADD_IMPORTLIB) 8 9list(APPEND SOURCE 10 buffer.c 11 d3d9_main.c 12 device.c 13 directx.c 14 query.c 15 shader.c 16 stateblock.c 17 surface.c 18 swapchain.c 19 texture.c 20 vertexdeclaration.c 21 volume.c) 22 23list(APPEND PCH_SKIP_SOURCE 24 guid.c) 25 26add_library(d3d9 MODULE 27 ${SOURCE} 28 ${PCH_SKIP_SOURCE} 29 version.rc 30 ${CMAKE_CURRENT_BINARY_DIR}/d3d9_stubs.c 31 ${CMAKE_CURRENT_BINARY_DIR}/d3d9.def) 32 33set_module_type(d3d9 win32dll UNICODE) 34target_link_libraries(d3d9 wine) 35add_importlibs(d3d9 d3dwine user32 msvcrt kernel32 ntdll) 36add_pch(d3d9 precomp.h "${PCH_SKIP_SOURCE}") 37add_cd_file(TARGET d3d9 DESTINATION reactos/system32 FOR all) 38