[WINDOWSCODECS] Sync with Wine Staging 1.7.55. CORE-10536
[reactos.git] / reactos / dll / win32 / windowscodecs / CMakeLists.txt
1
2 add_definitions(
3 -D__WINESRC__
4 -DENTRY_PREFIX=WIC_
5 -DPROXY_DELEGATION
6 -DWINE_REGISTER_DLL)
7
8 remove_definitions(-D_WIN32_WINNT=0x502)
9 add_definitions(-D_WIN32_WINNT=0x600)
10
11 include_directories(
12 BEFORE ${REACTOS_SOURCE_DIR}/include/reactos/wine
13 ${REACTOS_SOURCE_DIR}/include/reactos/libs/libjpeg
14 ${REACTOS_SOURCE_DIR}/include/reactos/libs/zlib
15 ${REACTOS_SOURCE_DIR}/include/reactos/libs/libpng
16 ${REACTOS_SOURCE_DIR}/include/reactos/libs/libtiff)
17
18 if(MSVC)
19 add_compile_flags("/FItypeof.h")
20 endif()
21
22 spec2def(windowscodecs.dll windowscodecs.spec ADD_IMPORTLIB)
23 add_rpcproxy_files(windowscodecs_wincodec.idl)
24
25 list(APPEND SOURCE
26 bitmap.c
27 bmpdecode.c
28 bmpencode.c
29 clipper.c
30 clsfactory.c
31 colorcontext.c
32 colortransform.c
33 converter.c
34 fliprotate.c
35 gifformat.c
36 icnsformat.c
37 icoformat.c
38 imgfactory.c
39 info.c
40 jpegformat.c
41 main.c
42 metadatahandler.c
43 palette.c
44 pngformat.c
45 propertybag.c
46 proxy.c
47 regsvr.c
48 scaler.c
49 stream.c
50 tgaformat.c
51 tiffformat.c
52 ungif.c
53 wincodecs_private.h)
54
55 add_library(windowscodecs SHARED
56 ${SOURCE}
57 guid.c
58 version.rc
59 ${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c
60 ${CMAKE_CURRENT_BINARY_DIR}/windowscodecs_stubs.c
61 ${CMAKE_CURRENT_BINARY_DIR}/windowscodecs.def
62 ${CMAKE_CURRENT_BINARY_DIR}/windowscodecs_wincodec_p.c)
63
64 set_module_type(windowscodecs win32dll)
65 target_link_libraries(windowscodecs wine uuid ${PSEH_LIB})
66 add_importlibs(windowscodecs ole32 oleaut32 rpcrt4 shlwapi user32 gdi32 advapi32 advapi32_vista msvcrt kernel32 ntdll)
67 add_pch(windowscodecs wincodecs_private.h SOURCE)
68 add_cd_file(TARGET windowscodecs DESTINATION reactos/system32 FOR all)