xref: /reactos/dll/win32/gdiplus/CMakeLists.txt (revision da5f10af)
1
2add_definitions(
3    -D__WINESRC__
4    -D_USE_MATH_DEFINES)
5
6include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
7spec2def(gdiplus.dll gdiplus.spec ADD_IMPORTLIB)
8
9list(APPEND SOURCE
10    brush.c
11    customlinecap.c
12    font.c
13    gdiplus.c
14    graphics.c
15    graphicspath.c
16    image.c
17    imageattributes.c
18    matrix.c
19    metafile.c
20    pathiterator.c
21    pen.c
22    region.c
23    stringformat.c
24    gdiplus_private.h)
25
26add_library(gdiplus SHARED
27    ${SOURCE}
28    guid.c
29    gdiplus.rc
30    ${CMAKE_CURRENT_BINARY_DIR}/gdiplus_stubs.c
31    ${CMAKE_CURRENT_BINARY_DIR}/gdiplus.def)
32
33set_module_type(gdiplus win32dll)
34target_link_libraries(gdiplus wine)
35add_delay_importlibs(gdiplus windowscodecs)
36add_importlibs(gdiplus msvcrt shlwapi oleaut32 ole32 user32 gdi32 kernel32 ntdll)
37add_pch(gdiplus gdiplus_private.h SOURCE)
38add_cd_file(TARGET gdiplus DESTINATION reactos/system32 FOR all)
39add_cd_file(TARGET gdiplus DESTINATION reactos/winsxs/x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.23038_none_deadbeef FOR all)
40add_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)
41