2011-05-16 13:12:07 +00:00
|
|
|
|
2012-12-11 21:17:47 +00:00
|
|
|
add_definitions(
|
|
|
|
-D__WINESRC__
|
2020-03-26 13:40:39 +00:00
|
|
|
-D__ROS_LONG64__
|
2012-12-11 21:17:47 +00:00
|
|
|
-DENTRY_PREFIX=WIC_
|
|
|
|
-DPROXY_DELEGATION
|
|
|
|
-DWINE_REGISTER_DLL)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
|
|
|
|
include_directories(
|
2016-04-20 12:36:25 +00:00
|
|
|
BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine
|
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/libjpeg
|
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib
|
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/libpng
|
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/libtiff)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2012-03-07 21:21:27 +00:00
|
|
|
spec2def(windowscodecs.dll windowscodecs.spec ADD_IMPORTLIB)
|
2012-12-11 21:17:47 +00:00
|
|
|
add_rpcproxy_files(windowscodecs_wincodec.idl)
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
bmpdecode.c
|
|
|
|
bmpencode.c
|
2013-09-19 14:54:10 +00:00
|
|
|
clipper.c
|
2011-05-16 13:12:07 +00:00
|
|
|
clsfactory.c
|
2012-12-11 21:17:47 +00:00
|
|
|
colorcontext.c
|
2013-05-23 16:39:54 +00:00
|
|
|
colortransform.c
|
2011-05-16 13:12:07 +00:00
|
|
|
converter.c
|
|
|
|
fliprotate.c
|
|
|
|
gifformat.c
|
2012-12-11 21:17:47 +00:00
|
|
|
icnsformat.c
|
2011-05-16 13:12:07 +00:00
|
|
|
icoformat.c
|
|
|
|
imgfactory.c
|
|
|
|
info.c
|
|
|
|
jpegformat.c
|
|
|
|
main.c
|
2012-12-11 21:17:47 +00:00
|
|
|
metadatahandler.c
|
2016-07-02 15:28:24 +00:00
|
|
|
metadataquery.c
|
2011-05-16 13:12:07 +00:00
|
|
|
palette.c
|
|
|
|
pngformat.c
|
|
|
|
propertybag.c
|
2012-12-11 21:17:47 +00:00
|
|
|
proxy.c
|
2011-05-16 13:12:07 +00:00
|
|
|
regsvr.c
|
2012-12-11 21:17:47 +00:00
|
|
|
scaler.c
|
2011-05-16 13:12:07 +00:00
|
|
|
stream.c
|
2012-12-11 21:17:47 +00:00
|
|
|
tgaformat.c
|
2011-05-16 13:12:07 +00:00
|
|
|
tiffformat.c
|
2020-05-09 21:37:40 +00:00
|
|
|
ungif.c)
|
2018-03-04 23:19:05 +00:00
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
if(ARCH STREQUAL "i386")
|
|
|
|
list(APPEND SOURCE msvc-thiscall.c)
|
|
|
|
endif()
|
2024-06-03 15:52:29 +00:00
|
|
|
set_source_files_properties(bitmap.c PROPERTIES COMPILE_OPTIONS "/FImsvc.h")
|
2020-05-09 21:37:40 +00:00
|
|
|
list(APPEND PCH_SKIP_SOURCE bitmap.c)
|
2018-03-04 23:19:05 +00:00
|
|
|
else()
|
|
|
|
list(APPEND SOURCE bitmap.c)
|
|
|
|
endif()
|
2014-02-10 12:19:56 +00:00
|
|
|
|
2020-05-09 21:37:40 +00:00
|
|
|
list(APPEND PCH_SKIP_SOURCE
|
2014-01-01 21:40:23 +00:00
|
|
|
guid.c
|
2012-12-11 21:17:47 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c
|
2011-05-16 13:12:07 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/windowscodecs_stubs.c
|
2012-12-11 21:17:47 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/windowscodecs_wincodec_p.c)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(windowscodecs MODULE
|
2016-07-02 15:28:24 +00:00
|
|
|
${SOURCE}
|
2020-05-09 21:37:40 +00:00
|
|
|
${PCH_SKIP_SOURCE}
|
|
|
|
version.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/windowscodecs.def)
|
2016-07-02 15:28:24 +00:00
|
|
|
|
2020-09-18 09:49:18 +00:00
|
|
|
if(MSVC)
|
2021-06-29 08:03:28 +00:00
|
|
|
# Disable warning C4133: 'function': incompatible types - from 'WICPixelFormatNumericRepresentation *' to 'DWORD *'
|
|
|
|
# Disable warning C4146: unary minus operator applied to unsigned type, result still unsigned
|
|
|
|
target_compile_options(windowscodecs PRIVATE /wd4133 /wd4146)
|
2020-11-05 23:17:33 +00:00
|
|
|
|
|
|
|
target_compile_options(windowscodecs PRIVATE /FItypeof.h)
|
2020-09-18 09:49:18 +00:00
|
|
|
endif()
|
|
|
|
|
2012-12-11 21:17:47 +00:00
|
|
|
set_module_type(windowscodecs win32dll)
|
|
|
|
target_link_libraries(windowscodecs wine uuid ${PSEH_LIB})
|
2017-06-04 01:48:14 +00:00
|
|
|
add_importlibs(windowscodecs ole32 oleaut32 rpcrt4 shlwapi user32 gdi32 advapi32 advapi32_vista propsys msvcrt kernel32 ntdll)
|
2020-05-09 21:37:40 +00:00
|
|
|
add_pch(windowscodecs precomp.h "${PCH_SKIP_SOURCE}")
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET windowscodecs DESTINATION reactos/system32 FOR all)
|