2010-10-13 12:11:50 +00:00
|
|
|
|
2010-11-05 17:12:31 +00:00
|
|
|
add_definitions(
|
|
|
|
-DWIN32
|
|
|
|
-DNDEBUG
|
|
|
|
-D_WINDOWS
|
|
|
|
-DPNG_BUILD_DLL
|
|
|
|
-D_DLL -D__USE_CRTIMP)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${REACTOS_SOURCE_DIR}/include/reactos/libs/libpng
|
|
|
|
${REACTOS_SOURCE_DIR}/include/reactos/libs/zlib)
|
2010-10-13 12:11:50 +00:00
|
|
|
|
|
|
|
add_library(libpng SHARED
|
|
|
|
png.c
|
|
|
|
pngerror.c
|
|
|
|
pngget.c
|
|
|
|
pngmem.c
|
|
|
|
pngpread.c
|
|
|
|
pngread.c
|
|
|
|
pngrio.c
|
|
|
|
pngrtran.c
|
|
|
|
pngrutil.c
|
|
|
|
pngset.c
|
|
|
|
pngtest.c
|
|
|
|
pngtrans.c
|
|
|
|
pngwio.c
|
|
|
|
pngwrite.c
|
|
|
|
pngwtran.c
|
|
|
|
pngwutil.c)
|
|
|
|
|
|
|
|
set_entrypoint(libpng 0)
|
|
|
|
|
|
|
|
target_link_libraries(libpng mingw_common zlib)
|
|
|
|
|
|
|
|
add_importlibs(libpng msvcrt kernel32)
|
|
|
|
|
|
|
|
add_dependencies(libpng psdk buildno_header)
|
2010-11-01 00:04:46 +00:00
|
|
|
|
|
|
|
add_cab_target(libpng 1)
|