mirror of https://github.com/fltk/fltk.git
Browse Source
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9370 ea41ed52-d2ee-0310-a9c1-e6b18d33e121pull/49/head
29 changed files with 9170 additions and 4376 deletions
@ -1,35 +1,344 @@
@@ -1,35 +1,344 @@
|
||||
project(FLTKPNG) |
||||
include_regular_expression("^png.*[.][c|h]$") |
||||
# CMakeLists.txt |
||||
|
||||
include_directories(${FLTKZLIB_SOURCE_DIR}) |
||||
# Copyright (C) 2007-2011 Glenn Randers-Pehrson |
||||
|
||||
# This code is released under the libpng license. |
||||
# For conditions of distribution and use, see the disclaimer |
||||
# and license in png.h |
||||
|
||||
cmake_minimum_required(VERSION 2.4.4) |
||||
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) |
||||
|
||||
if(UNIX AND NOT DEFINED CMAKE_BUILD_TYPE) |
||||
if(CMAKE_MAJOR_VERSION EQUAL 2 AND CMAKE_MINOR_VERSION EQUAL 4) |
||||
# workaround CMake 2.4.x bug |
||||
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING |
||||
"Choose the type of build, options are: |
||||
None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) |
||||
Debug |
||||
Release |
||||
RelWithDebInfo |
||||
MinSizeRel.") |
||||
else() |
||||
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING |
||||
"Choose the type of build, options are: |
||||
None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) |
||||
Debug |
||||
Release |
||||
RelWithDebInfo |
||||
MinSizeRel.") |
||||
endif() |
||||
endif() |
||||
|
||||
project(libpng C) |
||||
enable_testing() |
||||
|
||||
set(PNGLIB_MAJOR 1) |
||||
set(PNGLIB_MINOR 5) |
||||
set(PNGLIB_RELEASE 10) |
||||
set(PNGLIB_NAME libpng${PNGLIB_MAJOR}${PNGLIB_MINOR}) |
||||
set(PNGLIB_VERSION ${PNGLIB_MAJOR}.${PNGLIB_MINOR}.${PNGLIB_RELEASE}) |
||||
|
||||
# needed packages |
||||
find_package(ZLIB REQUIRED) |
||||
include_directories(${ZLIB_INCLUDE_DIR}) |
||||
|
||||
include_directories(${FLTKPNG_SOURCE_DIR}) |
||||
include_directories(${FLTKPNG_BINARY_DIR}) |
||||
if(NOT WIN32) |
||||
find_library(M_LIBRARY |
||||
NAMES m |
||||
PATHS /usr/lib /usr/local/lib |
||||
) |
||||
if(NOT M_LIBRARY) |
||||
message(STATUS |
||||
"math library 'libm' not found - floating point support disabled") |
||||
endif() |
||||
else() |
||||
# not needed on windows |
||||
set(M_LIBRARY "") |
||||
endif() |
||||
|
||||
# COMMAND LINE OPTIONS |
||||
if(DEFINED PNG_SHARED) |
||||
option(PNG_SHARED "Build shared lib" ${PNG_SHARED}) |
||||
else() |
||||
option(PNG_SHARED "Build shared lib" ON) |
||||
endif() |
||||
if(DEFINED PNG_STATIC) |
||||
option(PNG_STATIC "Build static lib" ${PNG_STATIC}) |
||||
else() |
||||
option(PNG_STATIC "Build static lib" ON) |
||||
endif() |
||||
|
||||
# source files for png |
||||
set(PNG_SRCS |
||||
pngget.c pngrio.c pngwrite.c |
||||
png.c pngmem.c pngrtran.c pngtrans.c pngwtran.c |
||||
pngerror.c pngpread.c pngrutil.c pngwutil.c |
||||
pngread.c pngset.c pngwio.c |
||||
option(PNG_TESTS "Build libpng tests" YES) |
||||
|
||||
# Many more configuration options could be added here |
||||
option(PNG_DEBUG "Build with debug output" NO) |
||||
option(PNGARG "Disable ANSI-C prototypes" NO) |
||||
|
||||
# SET LIBNAME |
||||
set(PNG_LIB_NAME png${PNGLIB_MAJOR}${PNGLIB_MINOR}) |
||||
|
||||
# to distinguish between debug and release lib |
||||
set(CMAKE_DEBUG_POSTFIX "d") |
||||
|
||||
# Use the prebuilt pnglibconf.h file from the scripts folder |
||||
# TODO: fix this by building with awk; without this no cmake build can be |
||||
# configured directly (to do so indirectly use your local awk to build a |
||||
# pnglibconf.h in the build directory.) |
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/scripts/pnglibconf.h.prebuilt |
||||
${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.h) |
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR}) |
||||
|
||||
# OUR SOURCES |
||||
set(libpng_public_hdrs |
||||
png.h |
||||
pngconf.h |
||||
${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.h |
||||
) |
||||
set(libpng_sources |
||||
${libpng_public_hdrs} |
||||
pngdebug.h |
||||
pnginfo.h |
||||
pngpriv.h |
||||
pngstruct.h |
||||
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 |
||||
pngwutil.c |
||||
) |
||||
set(pngtest_sources |
||||
pngtest.c |
||||
) |
||||
set(pngvalid_sources |
||||
contrib/libtests/pngvalid.c |
||||
) |
||||
# SOME NEEDED DEFINITIONS |
||||
|
||||
####################################################################### |
||||
add_library(fltk_png ${PNG_SRCS}) |
||||
add_definitions(-DPNG_CONFIGURE_LIBPNG) |
||||
|
||||
if(MSVC) |
||||
set_target_properties(fltk_png PROPERTIES OUTPUT_NAME fltkpng) |
||||
if(OPTION_LARGE_FILE) |
||||
set_target_properties(fltk_png PROPERTIES LINK_FLAGS /LARGEADDRESSAWARE) |
||||
endif(OPTION_LARGE_FILE) |
||||
else() |
||||
set_target_properties(fltk_png PROPERTIES OUTPUT_NAME fltk_png) |
||||
add_definitions(-D_CRT_SECURE_NO_DEPRECATE) |
||||
endif(MSVC) |
||||
|
||||
target_link_libraries(fltk_png ${FLTK_ZLIB_LIBRARIES}) |
||||
if(PNG_DEBUG) |
||||
add_definitions(-DPNG_DEBUG) |
||||
endif() |
||||
|
||||
# NOW BUILD OUR TARGET |
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${ZLIB_INCLUDE_DIR}) |
||||
|
||||
if(PNG_SHARED) |
||||
add_library(${PNG_LIB_NAME} SHARED ${libpng_sources}) |
||||
if(MSVC) |
||||
# msvc does not append 'lib' - do it here to have consistent name |
||||
set_target_properties(${PNG_LIB_NAME} PROPERTIES PREFIX "lib") |
||||
set_target_properties(${PNG_LIB_NAME} PROPERTIES IMPORT_PREFIX "lib") |
||||
endif() |
||||
target_link_libraries(${PNG_LIB_NAME} ${ZLIB_LIBRARY} ${M_LIBRARY}) |
||||
endif() |
||||
|
||||
if(PNG_STATIC) |
||||
# does not work without changing name |
||||
set(PNG_LIB_NAME_STATIC ${PNG_LIB_NAME}_static) |
||||
add_library(${PNG_LIB_NAME_STATIC} STATIC ${libpng_sources}) |
||||
if(MSVC) |
||||
# msvc does not append 'lib' - do it here to have consistent name |
||||
set_target_properties(${PNG_LIB_NAME_STATIC} PROPERTIES PREFIX "lib") |
||||
endif() |
||||
target_link_libraries(${PNG_LIB_NAME_STATIC} ${ZLIB_LIBRARY} ${M_LIBRARY}) |
||||
endif() |
||||
|
||||
if(PNG_SHARED AND WIN32) |
||||
set_target_properties(${PNG_LIB_NAME} PROPERTIES DEFINE_SYMBOL PNG_BUILD_DLL) |
||||
endif() |
||||
|
||||
if(PNG_TESTS AND PNG_SHARED) |
||||
# does not work with msvc due to png_lib_ver issue |
||||
add_executable(pngtest ${pngtest_sources}) |
||||
target_link_libraries(pngtest ${PNG_LIB_NAME}) |
||||
add_test(pngtest ./pngtest ${CMAKE_CURRENT_SOURCE_DIR}/pngtest.png) |
||||
# |
||||
add_executable(pngvalid ${pngvalid_sources}) |
||||
target_link_libraries(pngvalid ${PNG_LIB_NAME}) |
||||
add_test(pngvalid ./pngvalid) |
||||
endif() |
||||
|
||||
# Ensure the CMAKE_LIBRARY_OUTPUT_DIRECTORY is set |
||||
IF(NOT CMAKE_LIBRARY_OUTPUT_DIRECTORY) |
||||
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY "lib") |
||||
ENDIF(NOT CMAKE_LIBRARY_OUTPUT_DIRECTORY) |
||||
|
||||
install(TARGETS fltk_png |
||||
EXPORT fltk-install |
||||
DESTINATION ${PREFIX_LIB} |
||||
# Set a variable with CMake code which: |
||||
# Creates a symlink from src to dest (if possible) or alternatively |
||||
# copies if different. |
||||
macro(CREATE_SYMLINK SRC_FILE DEST_FILE) |
||||
FILE(REMOVE ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE}) |
||||
if(WIN32 AND NOT CYGWIN AND NOT MINGW) |
||||
ADD_CUSTOM_COMMAND( |
||||
OUTPUT ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE} ${CMAKE_CURRENT_BINARY_DIR}/${DEST_FILE} |
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/${SRC_FILE} ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE} |
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/${SRC_FILE} ${CMAKE_CURRENT_BINARY_DIR}/${DEST_FILE} |
||||
DEPENDS ${PNG_LIB_NAME} ${PNG_LIB_NAME_STATIC} |
||||
) |
||||
ADD_CUSTOM_TARGET(${DEST_FILE}_COPY ALL DEPENDS ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE}) |
||||
else(WIN32 AND NOT CYGWIN AND NOT MINGW) |
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${SRC_FILE} ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${DEST_FILE} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) |
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${SRC_FILE} ${DEST_FILE} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) |
||||
endif(WIN32 AND NOT CYGWIN AND NOT MINGW) |
||||
endmacro() |
||||
|
||||
# libpng is a library so default to 'lib' |
||||
if(NOT DEFINED CMAKE_INSTALL_LIBDIR) |
||||
set(CMAKE_INSTALL_LIBDIR lib) |
||||
endif(NOT DEFINED CMAKE_INSTALL_LIBDIR) |
||||
|
||||
# CREATE PKGCONFIG FILES |
||||
# we use the same files like ./configure, so we have to set its vars |
||||
# Only do this on Windows for Cygwin - the files don't make much sense outside |
||||
# a UNIX look alike |
||||
if(NOT WIN32 OR CYGWIN OR MINGW) |
||||
set(prefix ${CMAKE_INSTALL_PREFIX}) |
||||
set(exec_prefix ${CMAKE_INSTALL_PREFIX}) |
||||
set(libdir ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}) |
||||
set(includedir ${CMAKE_INSTALL_PREFIX}/include) |
||||
set(LIBS "-lz -lm") |
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libpng.pc.in |
||||
${CMAKE_CURRENT_BINARY_DIR}/${PNGLIB_NAME}.pc @ONLY) |
||||
CREATE_SYMLINK(${PNGLIB_NAME}.pc libpng.pc) |
||||
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libpng-config.in |
||||
${CMAKE_CURRENT_BINARY_DIR}/${PNGLIB_NAME}-config @ONLY) |
||||
CREATE_SYMLINK(${PNGLIB_NAME}-config libpng-config) |
||||
endif(NOT WIN32 OR CYGWIN OR MINGW) |
||||
|
||||
# SET UP LINKS |
||||
if(PNG_SHARED) |
||||
set_target_properties(${PNG_LIB_NAME} PROPERTIES |
||||
# VERSION 15.${PNGLIB_RELEASE}.1.5.10 |
||||
VERSION 15.${PNGLIB_RELEASE}.0 |
||||
SOVERSION 15 |
||||
CLEAN_DIRECT_OUTPUT 1) |
||||
endif() |
||||
if(PNG_STATIC) |
||||
# MSVC doesn't use a different file extension for shared vs. static |
||||
# libs. We are able to change OUTPUT_NAME to remove the _static |
||||
# for all other platforms. |
||||
if(NOT MSVC) |
||||
set_target_properties(${PNG_LIB_NAME_STATIC} PROPERTIES |
||||
OUTPUT_NAME ${PNG_LIB_NAME} |
||||
CLEAN_DIRECT_OUTPUT 1) |
||||
endif() |
||||
endif() |
||||
|
||||
# If CMake > 2.4.x, we set a variable used below to export |
||||
# targets to an export file. |
||||
# TODO: Use VERSION_GREATER after our cmake_minimum_required >= 2.6.2 |
||||
if(CMAKE_MAJOR_VERSION GREATER 1 AND CMAKE_MINOR_VERSION GREATER 4) |
||||
set(PNG_EXPORT_RULE EXPORT libpng) |
||||
elseif(CMAKE_MAJOR_VERSION GREATER 2) # future proof |
||||
set(PNG_EXPORT_RULE EXPORT libpng) |
||||
endif() |
||||
|
||||
# INSTALL |
||||
if(NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL ) |
||||
if(PNG_SHARED) |
||||
install(TARGETS ${PNG_LIB_NAME} |
||||
${PNG_EXPORT_RULE} |
||||
RUNTIME DESTINATION bin |
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
||||
|
||||
# Create a symlink for libpng.dll.a => libpng15.dll.a on Cygwin |
||||
if(CYGWIN OR MINGW) |
||||
get_target_property(BUILD_TARGET_LOCATION ${PNG_LIB_NAME} LOCATION_${CMAKE_BUILD_TYPE}) |
||||
get_filename_component(BUILD_TARGET_FILE ${BUILD_TARGET_LOCATION} NAME) |
||||
CREATE_SYMLINK(${BUILD_TARGET_FILE} libpng${CMAKE_IMPORT_LIBRARY_SUFFIX}) |
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libpng${CMAKE_IMPORT_LIBRARY_SUFFIX} |
||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
||||
endif(CYGWIN OR MINGW) |
||||
|
||||
if(NOT WIN32) |
||||
get_target_property(BUILD_TARGET_LOCATION ${PNG_LIB_NAME} LOCATION_${CMAKE_BUILD_TYPE}) |
||||
get_filename_component(BUILD_TARGET_FILE ${BUILD_TARGET_LOCATION} NAME) |
||||
CREATE_SYMLINK(${BUILD_TARGET_FILE} libpng${CMAKE_SHARED_LIBRARY_SUFFIX}) |
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libpng${CMAKE_SHARED_LIBRARY_SUFFIX} |
||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
||||
endif(NOT WIN32) |
||||
endif(PNG_SHARED) |
||||
|
||||
if(PNG_STATIC) |
||||
install(TARGETS ${PNG_LIB_NAME_STATIC} |
||||
${PNG_EXPORT_RULE} |
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
||||
if(NOT WIN32 OR CYGWIN OR MINGW) |
||||
get_target_property(BUILD_TARGET_LOCATION ${PNG_LIB_NAME_STATIC} LOCATION_${CMAKE_BUILD_TYPE}) |
||||
get_filename_component(BUILD_TARGET_FILE ${BUILD_TARGET_LOCATION} NAME) |
||||
CREATE_SYMLINK(${BUILD_TARGET_FILE} libpng${CMAKE_STATIC_LIBRARY_SUFFIX}) |
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libpng${CMAKE_STATIC_LIBRARY_SUFFIX} |
||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
||||
endif(NOT WIN32 OR CYGWIN OR MINGW) |
||||
endif() |
||||
endif() |
||||
|
||||
if(NOT SKIP_INSTALL_HEADERS AND NOT SKIP_INSTALL_ALL ) |
||||
install(FILES ${libpng_public_hdrs} DESTINATION include) |
||||
install(FILES ${libpng_public_hdrs} DESTINATION include/${PNGLIB_NAME}) |
||||
endif() |
||||
if(NOT SKIP_INSTALL_EXECUTABLES AND NOT SKIP_INSTALL_ALL ) |
||||
if(NOT WIN32 OR CYGWIN OR MINGW) |
||||
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/libpng-config DESTINATION bin) |
||||
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${PNGLIB_NAME}-config |
||||
DESTINATION bin) |
||||
endif(NOT WIN32 OR CYGWIN OR MINGW) |
||||
endif() |
||||
|
||||
if(NOT SKIP_INSTALL_FILES AND NOT SKIP_INSTALL_ALL ) |
||||
# Install man pages |
||||
if(NOT PNG_MAN_DIR) |
||||
set(PNG_MAN_DIR "share/man") |
||||
endif() |
||||
install(FILES libpng.3 libpngpf.3 DESTINATION ${PNG_MAN_DIR}/man3) |
||||
install(FILES png.5 DESTINATION ${PNG_MAN_DIR}/man5) |
||||
# Install pkg-config files |
||||
if(NOT WIN32 OR CYGWIN OR MINGW) |
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libpng.pc |
||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) |
||||
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/libpng-config |
||||
DESTINATION bin) |
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PNGLIB_NAME}.pc |
||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) |
||||
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${PNGLIB_NAME}-config |
||||
DESTINATION bin) |
||||
endif(NOT WIN32 OR CYGWIN OR MINGW) |
||||
endif() |
||||
|
||||
# On versions of CMake that support it, create an export file CMake |
||||
# users can include() to import our targets |
||||
if(PNG_EXPORT_RULE AND NOT SKIP_INSTALL_EXPORT AND NOT SKIP_INSTALL_ALL ) |
||||
install(EXPORT libpng DESTINATION lib/libpng FILE lib${PNG_LIB_NAME}.cmake) |
||||
endif() |
||||
|
||||
# what's with libpng-$VER%.txt and all the extra files? |
||||
|
||||
# UNINSTALL |
||||
# do we need this? |
||||
|
||||
# DIST |
||||
# do we need this? |
||||
|
||||
# to create msvc import lib for mingw compiled shared lib |
||||
# pexports libpng.dll > libpng.def |
||||
# lib /def:libpng.def /machine:x86 |
||||
|
||||
|
@ -1,173 +1,186 @@
@@ -1,173 +1,186 @@
|
||||
|
||||
/* libpng STANDARD API DEFINITION */ |
||||
|
||||
/* pnglibconf.h - library build configuration */ |
||||
|
||||
/* libpng version 1.5.0 - January 6, 2011 */ |
||||
/* Libpng 1.5.10 - March 29, 2012 */ |
||||
|
||||
/* Copyright (c) 1998-2011 Glenn Randers-Pehrson */ |
||||
/* Copyright (c) 1998-2012 Glenn Randers-Pehrson */ |
||||
|
||||
/* This code is released under the libpng license. */ |
||||
/* For conditions of distribution and use, see the disclaimer */ |
||||
/* and license in png.h */ |
||||
|
||||
/* pnglibconf.h */ |
||||
/* Machine generated file: DO NOT EDIT */ |
||||
/* Derived from: scripts/pnglibconf.dfa */ |
||||
/* If you edit this file by hand you must obey the rules expressed in */ |
||||
/* pnglibconf.dfa with respect to the dependencies between the following */ |
||||
/* symbols. It is much better to generate a new file using */ |
||||
/* scripts/libpngconf.mak */ |
||||
|
||||
#ifndef PNGLCONF_H |
||||
#define PNGLCONF_H |
||||
/* settings */ |
||||
#define PNG_MAX_GAMMA_8 11 |
||||
#define PNG_CALLOC_SUPPORTED |
||||
#define PNG_QUANTIZE_RED_BITS 5 |
||||
#define PNG_USER_WIDTH_MAX 1000000L |
||||
#define PNG_QUANTIZE_GREEN_BITS 5 |
||||
#define PNG_API_RULE 0 |
||||
#define PNG_CALLOC_SUPPORTED |
||||
#define PNG_COST_SHIFT 3 |
||||
#define PNG_DEFAULT_READ_MACROS 1 |
||||
#define PNG_GAMMA_THRESHOLD_FIXED 5000 |
||||
#define PNG_MAX_GAMMA_8 11 |
||||
#define PNG_QUANTIZE_BLUE_BITS 5 |
||||
#define PNG_USER_CHUNK_CACHE_MAX 0 |
||||
#define PNG_USER_HEIGHT_MAX 1000000L |
||||
#define PNG_QUANTIZE_GREEN_BITS 5 |
||||
#define PNG_QUANTIZE_RED_BITS 5 |
||||
#define PNG_sCAL_PRECISION 5 |
||||
#define PNG_COST_SHIFT 3 |
||||
#define PNG_WEIGHT_SHIFT 8 |
||||
#define PNG_USER_CHUNK_MALLOC_MAX 0 |
||||
#define PNG_DEFAULT_READ_MACROS 1 |
||||
#define PNG_ZBUF_SIZE 8192 |
||||
#define PNG_GAMMA_THRESHOLD_FIXED 5000 |
||||
/* end of settings */ |
||||
/* options */ |
||||
#define PNG_INFO_IMAGE_SUPPORTED |
||||
#define PNG_HANDLE_AS_UNKNOWN_SUPPORTED |
||||
#define PNG_POINTER_INDEXING_SUPPORTED |
||||
#define PNG_WARNINGS_SUPPORTED |
||||
#define PNG_FLOATING_ARITHMETIC_SUPPORTED |
||||
#define PNG_WRITE_SUPPORTED |
||||
#define PNG_WRITE_INTERLACING_SUPPORTED |
||||
#define PNG_WRITE_16BIT_SUPPORTED |
||||
#define PNG_EASY_ACCESS_SUPPORTED |
||||
#define PNG_16BIT_SUPPORTED |
||||
#define PNG_ALIGN_MEMORY_SUPPORTED |
||||
#define PNG_WRITE_WEIGHTED_FILTER_SUPPORTED |
||||
#define PNG_WRITE_UNKNOWN_CHUNKS_SUPPORTED |
||||
#define PNG_USER_LIMITS_SUPPORTED |
||||
#define PNG_FIXED_POINT_SUPPORTED |
||||
#define PNG_BENIGN_ERRORS_SUPPORTED |
||||
#define PNG_bKGD_SUPPORTED |
||||
#define PNG_BUILD_GRAYSCALE_PALETTE_SUPPORTED |
||||
#define PNG_CHECK_cHRM_SUPPORTED |
||||
#define PNG_CHECK_FOR_INVALID_INDEX_SUPPORTED |
||||
#define PNG_cHRM_SUPPORTED |
||||
#define PNG_CONSOLE_IO_SUPPORTED |
||||
#define PNG_CONVERT_tIME_SUPPORTED |
||||
#define PNG_EASY_ACCESS_SUPPORTED |
||||
/*#undef PNG_ERROR_NUMBERS_SUPPORTED*/ |
||||
#define PNG_ERROR_TEXT_SUPPORTED |
||||
#define PNG_READ_SUPPORTED |
||||
/*#undef PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED*/ |
||||
#define PNG_BENIGN_ERRORS_SUPPORTED |
||||
#define PNG_SETJMP_SUPPORTED |
||||
#define PNG_WRITE_FLUSH_SUPPORTED |
||||
#define PNG_MNG_FEATURES_SUPPORTED |
||||
#define PNG_FIXED_POINT_SUPPORTED |
||||
#define PNG_FLOATING_ARITHMETIC_SUPPORTED |
||||
#define PNG_FLOATING_POINT_SUPPORTED |
||||
#define PNG_gAMA_SUPPORTED |
||||
#define PNG_HANDLE_AS_UNKNOWN_SUPPORTED |
||||
#define PNG_hIST_SUPPORTED |
||||
#define PNG_iCCP_SUPPORTED |
||||
#define PNG_INCH_CONVERSIONS_SUPPORTED |
||||
#define PNG_STDIO_SUPPORTED |
||||
#define PNG_READ_UNKNOWN_CHUNKS_SUPPORTED |
||||
#define PNG_USER_MEM_SUPPORTED |
||||
#define PNG_INFO_IMAGE_SUPPORTED |
||||
#define PNG_IO_STATE_SUPPORTED |
||||
#define PNG_SET_USER_LIMITS_SUPPORTED |
||||
#define PNG_iTXt_SUPPORTED |
||||
#define PNG_MNG_FEATURES_SUPPORTED |
||||
#define PNG_oFFs_SUPPORTED |
||||
#define PNG_pCAL_SUPPORTED |
||||
#define PNG_pHYs_SUPPORTED |
||||
#define PNG_POINTER_INDEXING_SUPPORTED |
||||
#define PNG_PROGRESSIVE_READ_SUPPORTED |
||||
#define PNG_READ_16BIT_SUPPORTED |
||||
#define PNG_READ_ALPHA_MODE_SUPPORTED |
||||
#define PNG_READ_ANCILLARY_CHUNKS_SUPPORTED |
||||
#define PNG_WRITE_INT_FUNCTIONS_SUPPORTED |
||||
#define PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED |
||||
#define PNG_WRITE_FILTER_SUPPORTED |
||||
#define PNG_SET_CHUNK_CACHE_LIMIT_SUPPORTED |
||||
#define PNG_WRITE_iCCP_SUPPORTED |
||||
#define PNG_READ_TRANSFORMS_SUPPORTED |
||||
#define PNG_READ_GAMMA_SUPPORTED |
||||
#define PNG_READ_BACKGROUND_SUPPORTED |
||||
#define PNG_READ_BGR_SUPPORTED |
||||
#define PNG_READ_bKGD_SUPPORTED |
||||
#define PNG_UNKNOWN_CHUNKS_SUPPORTED |
||||
#define PNG_READ_sCAL_SUPPORTED |
||||
#define PNG_WRITE_hIST_SUPPORTED |
||||
#define PNG_READ_OPT_PLTE_SUPPORTED |
||||
#define PNG_SET_CHUNK_MALLOC_LIMIT_SUPPORTED |
||||
#define PNG_WRITE_gAMA_SUPPORTED |
||||
#define PNG_READ_CHECK_FOR_INVALID_INDEX_SUPPORTED |
||||
#define PNG_READ_cHRM_SUPPORTED |
||||
#define PNG_READ_COMPOSITE_NODIV_SUPPORTED |
||||
#define PNG_READ_COMPRESSED_TEXT_SUPPORTED |
||||
#define PNG_READ_EXPAND_16_SUPPORTED |
||||
#define PNG_READ_EXPAND_SUPPORTED |
||||
#define PNG_READ_FILLER_SUPPORTED |
||||
#define PNG_READ_gAMA_SUPPORTED |
||||
#define PNG_READ_GAMMA_SUPPORTED |
||||
#define PNG_READ_GRAY_TO_RGB_SUPPORTED |
||||
#define PNG_WRITE_pCAL_SUPPORTED |
||||
#define PNG_READ_hIST_SUPPORTED |
||||
#define PNG_READ_iCCP_SUPPORTED |
||||
#define PNG_READ_INTERLACING_SUPPORTED |
||||
#define PNG_READ_INT_FUNCTIONS_SUPPORTED |
||||
#define PNG_READ_INVERT_ALPHA_SUPPORTED |
||||
#define PNG_WRITE_TRANSFORMS_SUPPORTED |
||||
#define PNG_READ_sBIT_SUPPORTED |
||||
#define PNG_READ_INVERT_SUPPORTED |
||||
#define PNG_READ_iTXt_SUPPORTED |
||||
#define PNG_READ_oFFs_SUPPORTED |
||||
#define PNG_READ_OPT_PLTE_SUPPORTED |
||||
#define PNG_READ_PACK_SUPPORTED |
||||
#define PNG_WRITE_SWAP_SUPPORTED |
||||
#define PNG_READ_cHRM_SUPPORTED |
||||
#define PNG_WRITE_tIME_SUPPORTED |
||||
#define PNG_READ_INTERLACING_SUPPORTED |
||||
#define PNG_READ_tRNS_SUPPORTED |
||||
#define PNG_WRITE_pHYs_SUPPORTED |
||||
#define PNG_WRITE_INVERT_SUPPORTED |
||||
#define PNG_READ_PACKSWAP_SUPPORTED |
||||
#define PNG_READ_pCAL_SUPPORTED |
||||
#define PNG_READ_pHYs_SUPPORTED |
||||
#define PNG_READ_QUANTIZE_SUPPORTED |
||||
#define PNG_READ_RGB_TO_GRAY_SUPPORTED |
||||
#define PNG_WRITE_sRGB_SUPPORTED |
||||
#define PNG_READ_oFFs_SUPPORTED |
||||
#define PNG_WRITE_FILLER_SUPPORTED |
||||
#define PNG_WRITE_TEXT_SUPPORTED |
||||
#define PNG_WRITE_SHIFT_SUPPORTED |
||||
#define PNG_PROGRESSIVE_READ_SUPPORTED |
||||
#define PNG_READ_sBIT_SUPPORTED |
||||
#define PNG_READ_SCALE_16_TO_8_SUPPORTED |
||||
#define PNG_READ_sCAL_SUPPORTED |
||||
#define PNG_READ_SHIFT_SUPPORTED |
||||
#define PNG_CONVERT_tIME_SUPPORTED |
||||
#define PNG_READ_USER_TRANSFORM_SUPPORTED |
||||
#define PNG_READ_INT_FUNCTIONS_SUPPORTED |
||||
#define PNG_READ_USER_CHUNKS_SUPPORTED |
||||
#define PNG_READ_hIST_SUPPORTED |
||||
#define PNG_READ_16BIT_SUPPORTED |
||||
#define PNG_READ_SWAP_ALPHA_SUPPORTED |
||||
#define PNG_READ_COMPOSITE_NODIV_SUPPORTED |
||||
#define PNG_SEQUENTIAL_READ_SUPPORTED |
||||
#define PNG_READ_BACKGROUND_SUPPORTED |
||||
#define PNG_READ_QUANTIZE_SUPPORTED |
||||
#define PNG_READ_iCCP_SUPPORTED |
||||
#define PNG_READ_STRIP_ALPHA_SUPPORTED |
||||
#define PNG_READ_PACKSWAP_SUPPORTED |
||||
#define PNG_READ_sPLT_SUPPORTED |
||||
#define PNG_READ_sRGB_SUPPORTED |
||||
#define PNG_WRITE_tEXt_SUPPORTED |
||||
#define PNG_READ_gAMA_SUPPORTED |
||||
#define PNG_READ_pCAL_SUPPORTED |
||||
#define PNG_READ_EXPAND_SUPPORTED |
||||
#define PNG_WRITE_sPLT_SUPPORTED |
||||
#define PNG_READ_STRIP_16_TO_8_SUPPORTED |
||||
#define PNG_READ_STRIP_ALPHA_SUPPORTED |
||||
#define PNG_READ_SUPPORTED |
||||
#define PNG_READ_SWAP_ALPHA_SUPPORTED |
||||
#define PNG_READ_SWAP_SUPPORTED |
||||
#define PNG_READ_tEXt_SUPPORTED |
||||
#define PNG_READ_TEXT_SUPPORTED |
||||
#define PNG_READ_tIME_SUPPORTED |
||||
#define PNG_READ_pHYs_SUPPORTED |
||||
#define PNG_WRITE_SWAP_ALPHA_SUPPORTED |
||||
#define PNG_READ_TRANSFORMS_SUPPORTED |
||||
#define PNG_READ_tRNS_SUPPORTED |
||||
#define PNG_READ_UNKNOWN_CHUNKS_SUPPORTED |
||||
#define PNG_READ_USER_CHUNKS_SUPPORTED |
||||
#define PNG_READ_USER_TRANSFORM_SUPPORTED |
||||
#define PNG_READ_zTXt_SUPPORTED |
||||
#define PNG_SAVE_INT_32_SUPPORTED |
||||
#define PNG_sBIT_SUPPORTED |
||||
#define PNG_sCAL_SUPPORTED |
||||
#define PNG_SEQUENTIAL_READ_SUPPORTED |
||||
#define PNG_SET_CHUNK_CACHE_LIMIT_SUPPORTED |
||||
#define PNG_SET_CHUNK_MALLOC_LIMIT_SUPPORTED |
||||
#define PNG_SETJMP_SUPPORTED |
||||
#define PNG_SET_USER_LIMITS_SUPPORTED |
||||
#define PNG_sPLT_SUPPORTED |
||||
#define PNG_sRGB_SUPPORTED |
||||
#define PNG_STDIO_SUPPORTED |
||||
#define PNG_tEXt_SUPPORTED |
||||
#define PNG_TEXT_SUPPORTED |
||||
#define PNG_TIME_RFC1123_SUPPORTED |
||||
#define PNG_READ_TEXT_SUPPORTED |
||||
#define PNG_WRITE_BGR_SUPPORTED |
||||
#define PNG_tIME_SUPPORTED |
||||
#define PNG_tRNS_SUPPORTED |
||||
#define PNG_UNKNOWN_CHUNKS_SUPPORTED |
||||
#define PNG_USER_CHUNKS_SUPPORTED |
||||
#define PNG_CONSOLE_IO_SUPPORTED |
||||
#define PNG_WRITE_PACK_SUPPORTED |
||||
#define PNG_READ_FILLER_SUPPORTED |
||||
#define PNG_USER_LIMITS_SUPPORTED |
||||
#define PNG_USER_MEM_SUPPORTED |
||||
#define PNG_USER_TRANSFORM_INFO_SUPPORTED |
||||
#define PNG_USER_TRANSFORM_PTR_SUPPORTED |
||||
#define PNG_WARNINGS_SUPPORTED |
||||
#define PNG_WRITE_16BIT_SUPPORTED |
||||
#define PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED |
||||
#define PNG_WRITE_BGR_SUPPORTED |
||||
#define PNG_WRITE_bKGD_SUPPORTED |
||||
#define PNG_WRITE_tRNS_SUPPORTED |
||||
#define PNG_READ_sPLT_SUPPORTED |
||||
#define PNG_WRITE_sCAL_SUPPORTED |
||||
#define PNG_WRITE_CHECK_FOR_INVALID_INDEX_SUPPORTED |
||||
#define PNG_WRITE_cHRM_SUPPORTED |
||||
#define PNG_WRITE_COMPRESSED_TEXT_SUPPORTED |
||||
#define PNG_WRITE_CUSTOMIZE_ZTXT_COMPRESSION_SUPPORTED |
||||
#define PNG_WRITE_FILLER_SUPPORTED |
||||
#define PNG_WRITE_FILTER_SUPPORTED |
||||
#define PNG_WRITE_FLUSH_SUPPORTED |
||||
#define PNG_WRITE_gAMA_SUPPORTED |
||||
#define PNG_WRITE_hIST_SUPPORTED |
||||
#define PNG_WRITE_iCCP_SUPPORTED |
||||
#define PNG_WRITE_INTERLACING_SUPPORTED |
||||
#define PNG_WRITE_INT_FUNCTIONS_SUPPORTED |
||||
#define PNG_WRITE_INVERT_ALPHA_SUPPORTED |
||||
#define PNG_WRITE_INVERT_SUPPORTED |
||||
#define PNG_WRITE_iTXt_SUPPORTED |
||||
#define PNG_WRITE_oFFs_SUPPORTED |
||||
#define PNG_READ_tEXt_SUPPORTED |
||||
#define PNG_WRITE_OPTIMIZE_CMF_SUPPORTED |
||||
#define PNG_WRITE_PACK_SUPPORTED |
||||
#define PNG_WRITE_PACKSWAP_SUPPORTED |
||||
#define PNG_WRITE_pCAL_SUPPORTED |
||||
#define PNG_WRITE_pHYs_SUPPORTED |
||||
#define PNG_WRITE_sBIT_SUPPORTED |
||||
#define PNG_READ_INVERT_SUPPORTED |
||||
#define PNG_READ_16_TO_8_SUPPORTED |
||||
#define PNG_WRITE_cHRM_SUPPORTED |
||||
#define PNG_16BIT_SUPPORTED |
||||
#define PNG_WRITE_sCAL_SUPPORTED |
||||
#define PNG_WRITE_SHIFT_SUPPORTED |
||||
#define PNG_WRITE_sPLT_SUPPORTED |
||||
#define PNG_WRITE_sRGB_SUPPORTED |
||||
#define PNG_WRITE_SUPPORTED |
||||
#define PNG_WRITE_SWAP_ALPHA_SUPPORTED |
||||
#define PNG_WRITE_SWAP_SUPPORTED |
||||
#define PNG_WRITE_tEXt_SUPPORTED |
||||
#define PNG_WRITE_TEXT_SUPPORTED |
||||
#define PNG_WRITE_tIME_SUPPORTED |
||||
#define PNG_WRITE_TRANSFORMS_SUPPORTED |
||||
#define PNG_WRITE_tRNS_SUPPORTED |
||||
#define PNG_WRITE_UNKNOWN_CHUNKS_SUPPORTED |
||||
#define PNG_WRITE_USER_TRANSFORM_SUPPORTED |
||||
#define PNG_READ_BGR_SUPPORTED |
||||
#define PNG_WRITE_PACKSWAP_SUPPORTED |
||||
#define PNG_WRITE_INVERT_ALPHA_SUPPORTED |
||||
#define PNG_sCAL_SUPPORTED |
||||
#define PNG_WRITE_WEIGHTED_FILTER_SUPPORTED |
||||
#define PNG_WRITE_zTXt_SUPPORTED |
||||
#define PNG_USER_TRANSFORM_INFO_SUPPORTED |
||||
#define PNG_sBIT_SUPPORTED |
||||
#define PNG_cHRM_SUPPORTED |
||||
#define PNG_bKGD_SUPPORTED |
||||
#define PNG_tRNS_SUPPORTED |
||||
#define PNG_WRITE_iTXt_SUPPORTED |
||||
#define PNG_oFFs_SUPPORTED |
||||
#define PNG_USER_TRANSFORM_PTR_SUPPORTED |
||||
#define PNG_hIST_SUPPORTED |
||||
#define PNG_iCCP_SUPPORTED |
||||
#define PNG_sRGB_SUPPORTED |
||||
#define PNG_READ_zTXt_SUPPORTED |
||||
#define PNG_gAMA_SUPPORTED |
||||
#define PNG_pCAL_SUPPORTED |
||||
#define PNG_CHECK_cHRM_SUPPORTED |
||||
#define PNG_tIME_SUPPORTED |
||||
#define PNG_pHYs_SUPPORTED |
||||
#define PNG_READ_iTXt_SUPPORTED |
||||
#define PNG_TEXT_SUPPORTED |
||||
#define PNG_SAVE_INT_32_SUPPORTED |
||||
#define PNG_sPLT_SUPPORTED |
||||
#define PNG_tEXt_SUPPORTED |
||||
#define PNG_zTXt_SUPPORTED |
||||
#define PNG_iTXt_SUPPORTED |
||||
/* end of options */ |
||||
#endif /* PNGLCONF_H */ |
||||
|
Loading…
Reference in new issue