2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-DWIN32
|
|
|
|
-DNDEBUG
|
|
|
|
-D_WINDOWS
|
2011-06-13 15:31:11 +00:00
|
|
|
-DPNG_BUILD_DLL)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
include_directories(
|
2016-04-20 12:36:25 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/libpng
|
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2014-02-11 11:12:10 +00:00
|
|
|
list(APPEND SOURCE
|
2011-05-16 13:12:07 +00:00
|
|
|
png.c
|
|
|
|
pngerror.c
|
|
|
|
pngget.c
|
|
|
|
pngmem.c
|
|
|
|
pngpread.c
|
|
|
|
pngread.c
|
|
|
|
pngrio.c
|
|
|
|
pngrtran.c
|
|
|
|
pngrutil.c
|
|
|
|
pngset.c
|
|
|
|
pngtrans.c
|
|
|
|
pngwio.c
|
|
|
|
pngwrite.c
|
|
|
|
pngwtran.c
|
2014-02-11 11:12:10 +00:00
|
|
|
pngwutil.c
|
|
|
|
pngpriv.h)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(libpng MODULE ${SOURCE})
|
2012-10-24 22:03:25 +00:00
|
|
|
set_module_type(libpng win32dll)
|
2011-05-23 18:27:16 +00:00
|
|
|
target_link_libraries(libpng zlib)
|
2012-07-21 13:09:28 +00:00
|
|
|
add_importlibs(libpng msvcrt kernel32 ntdll)
|
2014-02-11 11:12:10 +00:00
|
|
|
add_pch(libpng pngpriv.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET libpng DESTINATION reactos/system32 FOR all)
|