98e18863d0549c7539b92b3a6ced61791c7a0649
[reactos.git] / dll / win32 / gdiplus / CMakeLists.txt
1
2 add_definitions(
3 -D__WINESRC__
4 -D_USE_MATH_DEFINES
5 -D_DLL -D__USE_CRTIMP)
6
7 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
8
9 set_rc_compiler()
10
11 spec2def(gdiplus.dll gdiplus.spec)
12
13 list(APPEND SOURCE
14 brush.c
15 customlinecap.c
16 font.c
17 gdiplus.c
18 graphics.c
19 graphicspath.c
20 image.c
21 imageattributes.c
22 matrix.c
23 pathiterator.c
24 pen.c
25 region.c
26 stringformat.c
27 #${REACTOS_BINARY_DIR}/include/psdk/wincodec_i.c
28 ${CMAKE_CURRENT_BINARY_DIR}/gdiplus_stubs.c
29 ${CMAKE_CURRENT_BINARY_DIR}/gdiplus.def)
30
31 add_library(gdiplus SHARED ${SOURCE})
32
33 set_module_type(gdiplus win32dll)
34
35 target_link_libraries(gdiplus uuid wine)
36
37 add_importlibs(gdiplus
38 msvcrt
39 shlwapi
40 oleaut32
41 ole32
42 user32
43 gdi32
44 windowscodecs
45 kernel32
46 ntdll)
47
48 add_importlib_target(gdiplus.spec)
49
50 if(ARCH MATCHES amd64)
51 target_link_libraries(gdiplus crt)
52 endif(ARCH MATCHES amd64)
53
54 add_cd_file(TARGET gdiplus DESTINATION reactos/system32)