[SHELL32_APITEST] Follow-up to #6796 (25e2f5f)
[reactos.git] / dll / win32 / gdiplus / CMakeLists.txt
1
2 add_definitions(
3 -D__WINESRC__
4 -D__ROS_LONG64__
5 -D_USE_MATH_DEFINES)
6
7 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
8 spec2def(gdiplus.dll gdiplus.spec ADD_IMPORTLIB)
9
10 list(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
26 list(APPEND PCH_SKIP_SOURCE
27 guid.c
28 ${CMAKE_CURRENT_BINARY_DIR}/gdiplus_stubs.c)
29
30 add_library(gdiplus MODULE
31 ${SOURCE}
32 ${PCH_SKIP_SOURCE}
33 gdiplus.rc
34 ${CMAKE_CURRENT_BINARY_DIR}/gdiplus.def)
35
36 if(MSVC)
37 # Disable warning C4146: unary minus operator applied to unsigned type, result still unsigned
38 # Disable warning C4305: '=': truncation from 'double' to 'REAL'
39 target_compile_options(gdiplus PRIVATE /wd4146 /wd4305)
40 endif()
41
42 set_module_type(gdiplus win32dll)
43 target_link_libraries(gdiplus wine)
44 add_delay_importlibs(gdiplus windowscodecs)
45 add_importlibs(gdiplus msvcrt shlwapi oleaut32 ole32 user32 gdi32 kernel32 ntdll)
46 add_pch(gdiplus precomp.h "${PCH_SKIP_SOURCE}")
47 add_cd_file(TARGET gdiplus DESTINATION reactos/system32 FOR all)
48
49 add_cd_file(TARGET gdiplus DESTINATION reactos/winsxs/${WINARCH}_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.23038_none_deadbeef FOR all)
50 add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/${WINARCH}_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.23038_none_deadbeef.manifest DESTINATION reactos/winsxs/manifests FOR all)
51
52 add_cd_file(TARGET gdiplus DESTINATION reactos/winsxs/${WINARCH}_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.14393.0_none_deadbeef FOR all)
53 add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/${WINARCH}_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.14393.0_none_deadbeef.manifest DESTINATION reactos/winsxs/manifests FOR all)