1 2add_definitions( 3 -D__WINESRC__ 4 -D__ROS_LONG64__ 5 -DUSE_WIN32_OPENGL) 6 7include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 8 9spec2def(ddraw.dll ddraw.spec ADD_IMPORTLIB) 10 11list(APPEND SOURCE 12 clipper.c 13 ddraw.c 14 device.c 15 executebuffer.c 16 light.c 17 main.c 18 material.c 19 palette.c 20 surface.c 21 utils.c 22 vertexbuffer.c 23 viewport.c 24 precomp.h 25 ${CMAKE_CURRENT_BINARY_DIR}/ddraw_stubs.c) 26 27if(MSVC) 28 # FIXME: http://www.cmake.org/Bug/view.php?id=12998 29 #target_compile_options(ddraw PRIVATE "/FIwine/typeof.h") 30 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_OPTIONS "/FIwine/typeof.h") 31endif() 32 33add_library(ddraw MODULE 34 ${SOURCE} 35 ddraw.rc 36 ${CMAKE_CURRENT_BINARY_DIR}/ddraw.def) 37 38set_module_type(ddraw win32dll) 39target_link_libraries(ddraw wine uuid dxguid ${PSEH_LIB}) 40add_importlibs(ddraw advapi32 gdi32 user32 d3dwine msvcrt kernel32 ntdll) 41add_dependencies(ddraw wineheaders) 42add_pch(ddraw precomp.h SOURCE) 43add_cd_file(TARGET ddraw DESTINATION reactos/system32 FOR all) 44