mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[master] Wrapped long lines in CMakeLists.txt
and introduced ${libpng_public_hdrs}
This commit is contained in:
1
ANNOUNCE
1
ANNOUNCE
@@ -36,6 +36,7 @@ version 1.4.5beta02 [October 5, 2010]
|
|||||||
that CCP writes to standard output by default (Martin Banky).
|
that CCP writes to standard output by default (Martin Banky).
|
||||||
|
|
||||||
version 1.4.5beta03 [October 5, 2010]
|
version 1.4.5beta03 [October 5, 2010]
|
||||||
|
Wrapped long lines in CMakeLists.txt and introduced ${libpng_public_hdrs}
|
||||||
|
|
||||||
Send comments/corrections/commendations to glennrp at users.sourceforge.net
|
Send comments/corrections/commendations to glennrp at users.sourceforge.net
|
||||||
or to png-mng-implement at lists.sf.net (subscription required; visit
|
or to png-mng-implement at lists.sf.net (subscription required; visit
|
||||||
|
|||||||
1
CHANGES
1
CHANGES
@@ -2690,6 +2690,7 @@ version 1.4.5beta02 [October 5, 2010]
|
|||||||
that CCP writes to standard output by default (Martin Banky).
|
that CCP writes to standard output by default (Martin Banky).
|
||||||
|
|
||||||
version 1.4.5beta03 [October 5, 2010]
|
version 1.4.5beta03 [October 5, 2010]
|
||||||
|
Wrapped long lines in CMakeLists.txt and introduced ${libpng_public_hdrs}
|
||||||
|
|
||||||
Send comments/corrections/commendations to glennrp at users.sourceforge.net
|
Send comments/corrections/commendations to glennrp at users.sourceforge.net
|
||||||
or to png-mng-implement at lists.sf.net (subscription required; visit
|
or to png-mng-implement at lists.sf.net (subscription required; visit
|
||||||
|
|||||||
@@ -4,7 +4,13 @@ set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
|
|||||||
if(UNIX AND NOT DEFINED CMAKE_BUILD_TYPE)
|
if(UNIX AND NOT DEFINED CMAKE_BUILD_TYPE)
|
||||||
if(CMAKE_MAJOR_VERSION EQUAL 2 AND CMAKE_MINOR_VERSION EQUAL 4)
|
if(CMAKE_MAJOR_VERSION EQUAL 2 AND CMAKE_MINOR_VERSION EQUAL 4)
|
||||||
# workaround CMake 2.4.x bug
|
# 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.")
|
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()
|
else()
|
||||||
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING
|
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING
|
||||||
"Choose the type of build, options are:
|
"Choose the type of build, options are:
|
||||||
@@ -101,11 +107,13 @@ set(PNG_LIB_NAME png${PNGLIB_MAJOR}${PNGLIB_MINOR})
|
|||||||
# to distinguish between debug and release lib
|
# to distinguish between debug and release lib
|
||||||
set(CMAKE_DEBUG_POSTFIX "d")
|
set(CMAKE_DEBUG_POSTFIX "d")
|
||||||
|
|
||||||
|
|
||||||
# OUR SOURCES
|
# OUR SOURCES
|
||||||
set(libpng_sources
|
set(libpng_public_hdrs
|
||||||
png.h
|
png.h
|
||||||
pngconf.h
|
pngconf.h
|
||||||
|
)
|
||||||
|
set(libpng_sources
|
||||||
|
${libpng_public_hdrs}
|
||||||
pngpriv.h
|
pngpriv.h
|
||||||
png.c
|
png.c
|
||||||
pngerror.c
|
pngerror.c
|
||||||
@@ -237,7 +245,8 @@ install(CODE ${PNG_PC_INSTALL_CODE})
|
|||||||
|
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libpng-config.in
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libpng-config.in
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/${PNGLIB_NAME}-config @ONLY)
|
${CMAKE_CURRENT_BINARY_DIR}/${PNGLIB_NAME}-config @ONLY)
|
||||||
_png_generate_symlink_code(PNG_CONFIG_INSTALL_CODE ${PNGLIB_NAME}-config libpng-config)
|
_png_generate_symlink_code(PNG_CONFIG_INSTALL_CODE ${PNGLIB_NAME}-config
|
||||||
|
libpng-config)
|
||||||
install(CODE ${PNG_CONFIG_INSTALL_CODE})
|
install(CODE ${PNG_CONFIG_INSTALL_CODE})
|
||||||
|
|
||||||
# SET UP LINKS
|
# SET UP LINKS
|
||||||
@@ -283,7 +292,9 @@ if(NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL )
|
|||||||
${PNGLIB_NAME}${CMAKE_IMPORT_LIBRARY_SUFFIX}
|
${PNGLIB_NAME}${CMAKE_IMPORT_LIBRARY_SUFFIX}
|
||||||
libpng${CMAKE_IMPORT_LIBRARY_SUFFIX})
|
libpng${CMAKE_IMPORT_LIBRARY_SUFFIX})
|
||||||
install(CODE ${PNG_SHARED_IMPLIB_INSTALL_CODE})
|
install(CODE ${PNG_SHARED_IMPLIB_INSTALL_CODE})
|
||||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libpng${CMAKE_IMPORT_LIBRARY_SUFFIX} DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
install(FILES
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/libpng${CMAKE_IMPORT_LIBRARY_SUFFIX}
|
||||||
|
DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT WIN32)
|
if(NOT WIN32)
|
||||||
@@ -291,7 +302,9 @@ if(NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL )
|
|||||||
${PNGLIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}
|
${PNGLIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}
|
||||||
libpng${CMAKE_SHARED_LIBRARY_SUFFIX})
|
libpng${CMAKE_SHARED_LIBRARY_SUFFIX})
|
||||||
install(CODE ${PNG_SHARED_INSTALL_CODE})
|
install(CODE ${PNG_SHARED_INSTALL_CODE})
|
||||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libpng${CMAKE_SHARED_LIBRARY_SUFFIX} DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
install(FILES
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/libpng${CMAKE_SHARED_LIBRARY_SUFFIX}
|
||||||
|
DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -305,14 +318,16 @@ if(NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL )
|
|||||||
${PNGLIB_NAME}${CMAKE_STATIC_LIBRARY_SUFFIX}
|
${PNGLIB_NAME}${CMAKE_STATIC_LIBRARY_SUFFIX}
|
||||||
libpng${CMAKE_STATIC_LIBRARY_SUFFIX})
|
libpng${CMAKE_STATIC_LIBRARY_SUFFIX})
|
||||||
install(CODE ${PNG_STATIC_INSTALL_CODE})
|
install(CODE ${PNG_STATIC_INSTALL_CODE})
|
||||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libpng${CMAKE_STATIC_LIBRARY_SUFFIX} DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
install(FILES
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/libpng${CMAKE_STATIC_LIBRARY_SUFFIX}
|
||||||
|
DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT SKIP_INSTALL_HEADERS AND NOT SKIP_INSTALL_ALL )
|
if(NOT SKIP_INSTALL_HEADERS AND NOT SKIP_INSTALL_ALL )
|
||||||
install(FILES png.h pngconf.h DESTINATION include)
|
install(FILES ${libpng_public_hdrs} DESTINATION include)
|
||||||
install(FILES png.h pngconf.h DESTINATION include/${PNGLIB_NAME})
|
install(FILES ${libpng_public_hdrs} DESTINATION include/${PNGLIB_NAME})
|
||||||
endif()
|
endif()
|
||||||
if(NOT SKIP_INSTALL_EXECUTABLES AND NOT SKIP_INSTALL_ALL )
|
if(NOT SKIP_INSTALL_EXECUTABLES AND NOT SKIP_INSTALL_ALL )
|
||||||
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/libpng-config DESTINATION bin)
|
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/libpng-config DESTINATION bin)
|
||||||
|
|||||||
Reference in New Issue
Block a user