1 2add_definitions( 3 -D__WINESRC__ 4 -D__ROS_LONG64__ 5 -D_USE_MATH_DEFINES) 6 7include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 8spec2def(gdiplus.dll gdiplus.spec ADD_IMPORTLIB) 9 10list(APPEND SOURCE 11 brush.c 12 customlinecap.c 13 font.c 14 gdiplus.c 15 graphics.c 16 graphicspath.c 17 image.c 18 imageattributes.c 19 matrix.c 20 metafile.c 21 pathiterator.c 22 pen.c 23 region.c 24 stringformat.c) 25 26list(APPEND PCH_SKIP_SOURCE 27 guid.c 28 ${CMAKE_CURRENT_BINARY_DIR}/gdiplus_stubs.c) 29 30add_library(gdiplus MODULE 31 ${SOURCE} 32 ${PCH_SKIP_SOURCE} 33 gdiplus.rc 34 ${CMAKE_CURRENT_BINARY_DIR}/gdiplus.def) 35 36set_module_type(gdiplus win32dll) 37target_link_libraries(gdiplus wine) 38add_delay_importlibs(gdiplus windowscodecs) 39add_importlibs(gdiplus msvcrt shlwapi oleaut32 ole32 user32 gdi32 kernel32 ntdll) 40add_pch(gdiplus precomp.h "${PCH_SKIP_SOURCE}") 41add_cd_file(TARGET gdiplus DESTINATION reactos/system32 FOR all) 42 43add_cd_file(TARGET gdiplus DESTINATION reactos/winsxs/x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.23038_none_deadbeef FOR all) 44add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.23038_none_deadbeef.manifest DESTINATION reactos/winsxs/manifests FOR all) 45 46add_cd_file(TARGET gdiplus DESTINATION reactos/winsxs/x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.14393.0_none_deadbeef FOR all) 47add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.14393.0_none_deadbeef.manifest DESTINATION reactos/winsxs/manifests FOR all) 48