Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit af121719c9
)
r14.1.x
parent
2a7760d9b6
commit
f378f80d41
@ -0,0 +1,159 @@
|
||||
############################################
|
||||
#
|
||||
# (C) 2023 Michele Calgaro
|
||||
# Michele (DOT) Calgaro (AT) yahoo.it
|
||||
#
|
||||
# Improvements and feedback are welcome
|
||||
#
|
||||
# This file is released under GPL >= 2
|
||||
#
|
||||
############################################
|
||||
|
||||
|
||||
cmake_minimum_required( VERSION 3.1 )
|
||||
|
||||
|
||||
#### general package setup
|
||||
|
||||
project( libksquirrel )
|
||||
|
||||
set(LIBKSQUIRREL_VERSION_MAJOR 0)
|
||||
set(LIBKSQUIRREL_VERSION_MINOR 8)
|
||||
set(LIBKSQUIRREL_VERSION_PATCH 0)
|
||||
set(LIBKSQUIRREL_VERSION_STRING
|
||||
"${LIBKSQUIRREL_VERSION_MAJOR}.${LIBKSQUIRREL_VERSION_MINOR}.${LIBKSQUIRREL_VERSION_PATCH}")
|
||||
|
||||
|
||||
#### include essential cmake modules
|
||||
|
||||
include( FindPkgConfig )
|
||||
include( CheckFunctionExists )
|
||||
include( CheckSymbolExists )
|
||||
include( CheckIncludeFile )
|
||||
include( CheckLibraryExists )
|
||||
include( CheckCSourceCompiles )
|
||||
include( CheckCXXSourceCompiles )
|
||||
|
||||
|
||||
#### include our cmake modules
|
||||
|
||||
include( TDEMacros )
|
||||
|
||||
|
||||
##### set version number
|
||||
|
||||
tde_set_project_version( )
|
||||
|
||||
|
||||
##### setup install paths
|
||||
|
||||
include( TDESetupPaths )
|
||||
tde_setup_paths( )
|
||||
|
||||
|
||||
##### optional stuff
|
||||
|
||||
option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
|
||||
option( WITH_JPEG "Build camera code with jpeg support" ${WITH_ALL_OPTIONS} )
|
||||
option( WITH_LCMS "Build codecs with lcms support" ${WITH_ALL_OPTIONS} )
|
||||
|
||||
option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
|
||||
|
||||
|
||||
##### user requested modules
|
||||
|
||||
option( BUILD_ALL "Build all" ON )
|
||||
option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
|
||||
|
||||
option( BUILD_AVS "Build avs codec" ${BUILD_ALL} )
|
||||
option( BUILD_BMP "Build bmp codec" ${BUILD_ALL} )
|
||||
option( BUILD_CAMERA "Build camera codec" ${BUILD_ALL} )
|
||||
option( BUILD_CUT "Build cut codec" ${BUILD_ALL} )
|
||||
option( BUILD_DDS "Build dds codec" ${BUILD_ALL} )
|
||||
option( BUILD_DICOM "Build dicom codec" ${BUILD_ALL} )
|
||||
option( BUILD_DJVU "Build djvu codec" ${BUILD_ALL} )
|
||||
option( BUILD_DXF "Build dxf codec" OFF )
|
||||
option( BUILD_EPS "Build eps codec" ${BUILD_ALL} )
|
||||
option( BUILD_FIG "Build fig codec" ${BUILD_ALL} )
|
||||
option( BUILD_FLI "Build fli codec" ${BUILD_ALL} )
|
||||
option( BUILD_GIF "Build gif codec" ${BUILD_ALL} )
|
||||
option( BUILD_HDR "Build hdr codec" ${BUILD_ALL} )
|
||||
option( BUILD_ICO "Build ico codec" ${BUILD_ALL} )
|
||||
option( BUILD_IFF "Build iff codec" ${BUILD_ALL} )
|
||||
option( BUILD_JBIG "Build jbig codec" ${BUILD_ALL} )
|
||||
option( BUILD_JPEG2000 "Build jpeg2000 codec" ${BUILD_ALL} )
|
||||
option( BUILD_JPEG "Build jpeg codec" ${BUILD_ALL} )
|
||||
option( BUILD_KOALA "Build koala codec" ${BUILD_ALL} )
|
||||
option( BUILD_LEAF "Build leaf codec" ${BUILD_ALL} )
|
||||
option( BUILD_LIF "Build lif codec" ${BUILD_ALL} )
|
||||
option( BUILD_LJPEG "Build ljpeg codec" ${BUILD_ALL} )
|
||||
option( BUILD_MAC "Build mac codec" ${BUILD_ALL} )
|
||||
option( BUILD_MDL "Build mdl codec" ${BUILD_ALL} )
|
||||
option( BUILD_MNG "Build mng codec" ${BUILD_ALL} )
|
||||
option( BUILD_MSP "Build msp codecs" ${BUILD_ALL} )
|
||||
option( BUILD_MTV "Build mtv codec" ${BUILD_ALL} )
|
||||
option( BUILD_NEO "Build neo codec" ${BUILD_ALL} )
|
||||
option( BUILD_OPENEXR "Build openexr codec" ${BUILD_ALL} )
|
||||
option( BUILD_PCX "Build pcx codec" ${BUILD_ALL} )
|
||||
option( BUILD_PI1 "Build pi1 codec" ${BUILD_ALL} )
|
||||
option( BUILD_PI3 "Build pi3 codec" ${BUILD_ALL} )
|
||||
option( BUILD_PICT "Build pict codec" ${BUILD_ALL} )
|
||||
option( BUILD_PIX "Build pix codec" ${BUILD_ALL} )
|
||||
option( BUILD_PNG "Build png codec" ${BUILD_ALL} )
|
||||
option( BUILD_PNM "Build pnm codec" ${BUILD_ALL} )
|
||||
option( BUILD_PSD "Build psd codec" ${BUILD_ALL} )
|
||||
option( BUILD_PSP "Build psp codec" ${BUILD_ALL} )
|
||||
option( BUILD_PXR "Build pxr codec" ${BUILD_ALL} )
|
||||
option( BUILD_RAS "Build ras codec" ${BUILD_ALL} )
|
||||
option( BUILD_RAWRGB "Build rawrgb codec" ${BUILD_ALL} )
|
||||
option( BUILD_SCT "Build sct codec" ${BUILD_ALL} )
|
||||
option( BUILD_SGI "Build sgi codec" ${BUILD_ALL} )
|
||||
option( BUILD_SUN "Build sun codec" ${BUILD_ALL} )
|
||||
option( BUILD_SVG "Build svg codec" ${BUILD_ALL} )
|
||||
option( BUILD_TGA "Build tga codec" ${BUILD_ALL} )
|
||||
option( BUILD_TIFF "Build tiff codec" ${BUILD_ALL} )
|
||||
option( BUILD_TTF "Build ttf codec" ${BUILD_ALL} )
|
||||
option( BUILD_UTAH "Build utah codec" ${BUILD_ALL} )
|
||||
option( BUILD_WAL "Build wal codec" ${BUILD_ALL} )
|
||||
option( BUILD_WBMP "Build wbmp codec" ${BUILD_ALL} )
|
||||
option( BUILD_WMF "Build wmf codec" ${BUILD_ALL} )
|
||||
option( BUILD_XBM "Build xbm codec" ${BUILD_ALL} )
|
||||
option( BUILD_XCF "Build xcf codec" ${BUILD_ALL} )
|
||||
option( BUILD_XCUR "Build xcur codec" ${BUILD_ALL} )
|
||||
option( BUILD_XIM "Build xim codec" ${BUILD_ALL} )
|
||||
option( BUILD_XPM "Build xpm codec" ${BUILD_ALL} )
|
||||
option( BUILD_XWD "Build xwd codec" ${BUILD_ALL} )
|
||||
|
||||
|
||||
##### configure checks
|
||||
|
||||
include( ConfigureChecks.cmake )
|
||||
|
||||
|
||||
##### global compiler settings
|
||||
|
||||
add_definitions( -DHAVE_CONFIG_H )
|
||||
|
||||
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
|
||||
set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
|
||||
|
||||
|
||||
##### write pkgconfig file
|
||||
|
||||
string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_EXEC_PREFIX ${EXEC_INSTALL_PREFIX} )
|
||||
string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_INCLUDE_DIR ${INCLUDE_INSTALL_DIR} )
|
||||
string( REGEX REPLACE "^${CMAKE_INSTALL_PREFIX}" "\${prefix}" PC_LIB_DIR ${LIB_INSTALL_DIR} )
|
||||
|
||||
configure_file( ksquirrellibs.pc.cmake ksquirrellibs.pc @ONLY )
|
||||
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/ksquirrellibs.pc DESTINATION ${PKGCONFIG_INSTALL_DIR} )
|
||||
|
||||
|
||||
##### source directories
|
||||
|
||||
add_subdirectory( kernel )
|
||||
tde_conditional_add_subdirectory( BUILD_DOC doc )
|
||||
|
||||
|
||||
##### write configure files
|
||||
|
||||
configure_file( config.h.cmake config.h @ONLY )
|
@ -0,0 +1,363 @@
|
||||
###########################################
|
||||
# #
|
||||
# Improvements and feedback are welcome #
|
||||
# #
|
||||
# This file is released under GPL >= 3 #
|
||||
# #
|
||||
###########################################
|
||||
|
||||
|
||||
# required stuff
|
||||
find_package( TQt )
|
||||
find_package( TDE )
|
||||
|
||||
tde_setup_architecture_flags( )
|
||||
|
||||
include(TestBigEndian)
|
||||
test_big_endian(WORDS_BIGENDIAN)
|
||||
|
||||
tde_setup_largefiles( )
|
||||
|
||||
|
||||
##### check for gcc visibility support
|
||||
|
||||
if( WITH_GCC_VISIBILITY )
|
||||
tde_setup_gcc_visibility( )
|
||||
endif( WITH_GCC_VISIBILITY )
|
||||
|
||||
|
||||
##### check for lcms #####
|
||||
|
||||
if( WITH_LCMS )
|
||||
pkg_search_module( LCMS lcms )
|
||||
if( NOT LCMS_FOUND )
|
||||
tde_message_fatal( "lcms was requested but was not found on your system" )
|
||||
endif()
|
||||
endif( )
|
||||
|
||||
|
||||
##### check for math libc #####
|
||||
|
||||
find_library( MATH_LIBC m )
|
||||
if( NOT MATH_LIBC )
|
||||
tde_message_fatal( "libm is required but not found on your system" )
|
||||
endif( )
|
||||
|
||||
|
||||
##### check for zlib #####
|
||||
|
||||
pkg_search_module( ZLIB zlib )
|
||||
if( NOT ZLIB_FOUND )
|
||||
tde_message_fatal( "zlib is required but not found on your system" )
|
||||
endif( )
|
||||
|
||||
|
||||
##### checks for dicom codec #####
|
||||
|
||||
if( BUILD_DICOM )
|
||||
## check for medcon
|
||||
find_program( DICOM_COMMAND NAMES medcon )
|
||||
if( NOT DICOM_COMMAND )
|
||||
tde_message_fatal( "dicom codec was requested but medcon not found on your system" )
|
||||
endif( )
|
||||
endif( )
|
||||
|
||||
|
||||
##### checks for djvu codec #####
|
||||
|
||||
if( BUILD_DJVU )
|
||||
## check for ddjvu
|
||||
find_program( DJVU_COMMAND NAMES ddjvu )
|
||||
if( NOT DJVU_COMMAND )
|
||||
tde_message_fatal( "djvu codec was requested but ddjvu not found on your system" )
|
||||
endif( )
|
||||
endif( )
|
||||
|
||||
|
||||
##### checks for dxf codec #####
|
||||
|
||||
if( BUILD_DXF )
|
||||
## check for vec2web
|
||||
find_program( DXF_COMMAND NAMES vec2web )
|
||||
if( NOT DXF_COMMAND )
|
||||
tde_message_fatal( "dxf codec was requested but vec2web not found on your system" )
|
||||
endif( )
|
||||
endif( )
|
||||
|
||||
|
||||
##### checks for eps codec #####
|
||||
|
||||
if( BUILD_EPS )
|
||||
find_program( EPS_COMMAND NAMES gs )
|
||||
if( NOT EPS_COMMAND )
|
||||
tde_message_fatal( "eps codec was requested but gs not found on your system" )
|
||||
endif( )
|
||||
endif( )
|
||||
|
||||
|
||||
##### checks for fig codec #####
|
||||
|
||||
if( BUILD_FIG )
|
||||
## check for fig2dev
|
||||
find_program( FIG2DEV_COMMAND NAMES fig2dev )
|
||||
if( NOT FIG2DEV_COMMAND )
|
||||
tde_message_fatal( "fig codec was requested but fig2dev not found on your system" )
|
||||
endif( )
|
||||
endif( )
|
||||
|
||||
|
||||
##### checks for gif codec #####
|
||||
|
||||
if( BUILD_GIF )
|
||||
find_package( GIF )
|
||||
if( NOT GIF_FOUND )
|
||||
tde_message_fatal( "libgif was requested but not found on your system." )
|
||||
endif( )
|
||||
endif( )
|
||||
|
||||
|
||||
##### checks for iff codec #####
|
||||
|
||||
if( BUILD_IFF )
|
||||
find_program( IFFTOPPM_COMMAND NAMES ilbmtoppm)
|
||||
if( NOT IFFTOPPM_COMMAND )
|
||||
tde_message_fatal( "iff codec was requested but ilbmtoppm not found on your system." )
|
||||
endif( )
|
||||
endif( )
|
||||
|
||||
|
||||
##### check for jpeg codec #####
|
||||
|
||||
if( BUILD_JPEG OR WITH_JPEG )
|
||||
find_package( JPEG )
|
||||
if( NOT JPEG_FOUND )
|
||||
tde_message_fatal( "libjpeg was requested but not found on your system" )
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
##### checks for jpeg2000 codec #####
|
||||
|
||||
if( BUILD_JPEG2000 )
|
||||
find_package( Jasper )
|
||||
if( NOT JASPER_FOUND )
|
||||
tde_message_fatal( "libjasper was requested but not found on your system." )
|
||||
endif( )
|
||||
check_include_file( stdint.h HAVE_STDINT_H )
|
||||
endif( )
|
||||
|
||||
|
||||
##### check for leaf codec #####
|
||||
|
||||
if( BUILD_LEAF )
|
||||
find_program( LEAFTOPPM_COMMAND NAMES leaftoppm )
|
||||
if( NOT LEAFTOPPM_COMMAND )
|
||||
tde_message_fatal( "leaf codec was requested but leaftoppm not found on your system." )
|
||||
endif( )
|
||||
endif( )
|
||||
|
||||
|
||||
##### check for mac codec #####
|
||||
|
||||
if ( BUILD_MAC )
|
||||
find_program( MACPTOPPM_COMMAND NAMES macptopbm )
|
||||
if( NOT MACPTOPPM_COMMAND )
|
||||
tde_message_fatal( "mac codec was requested but macptopbm not found on your system." )
|
||||
endif( )
|
||||
endif( )
|
||||
|
||||
|
||||
##### checks for mng codec #####
|
||||
|
||||
if( BUILD_MNG )
|
||||
find_file( HAVE_LIBMNG_H "libmng.h" )
|
||||
if( NOT HAVE_LIBMNG_H )
|
||||
tde_message_fatal( "libmng was requested but not found on your system." )
|
||||
endif( )
|
||||
set( MNG_LIBRARY mng )
|
||||
endif( )
|
||||
|
||||
|
||||
##### check for neotoppm codec #####
|
||||
|
||||
if( BUILD_NEO )
|
||||
find_program( NEOTOPPM_COMMAND NAMES neotoppm )
|
||||
if( NOT NEOTOPPM_COMMAND )
|
||||
tde_message_fatal( "neo codec was requested but neotoppm not found on your system." )
|
||||
endif( )
|
||||
endif( )
|
||||
|
||||
|
||||
##### checks for openexr codec #####
|
||||
|
||||
if( BUILD_OPENEXR )
|
||||
pkg_search_module( OPENEXR OpenEXR )
|
||||
if( NOT OPENEXR_FOUND )
|
||||
tde_message_fatal( "libopenexr was requested but not found on your system." )
|
||||
endif( )
|
||||
endif( )
|
||||
|
||||
|
||||
##### check for pi1toppm codec #####
|
||||
|
||||
if( BUILD_PI1 )
|
||||
find_program( PI1TOPPM_COMMAND NAMES pi1toppm )
|
||||
if( NOT PI1TOPPM_COMMAND )
|
||||
tde_message_fatal( "pi1 codec was requested but pi1toppm not found on your system." )
|
||||
endif( )
|
||||
endif( )
|
||||
|
||||
|
||||
##### check for pi3toppm codec #####
|
||||
|
||||
if( BUILD_PI3 )
|
||||
find_program( PI3TOPPM_COMMAND NAMES pi3topbm )
|
||||
if( NOT PI3TOPPM_COMMAND )
|
||||
tde_message_fatal( "pi3 codec was requested but pi3topbm not found on your system." )
|
||||
endif( )
|
||||
endif( )
|
||||
|
||||
|
||||
##### check for picttoppm codec #####
|
||||
|
||||
if( BUILD_PICT )
|
||||
find_program( PICTTOPPM_COMMAND NAMES picttoppm )
|
||||
if( NOT PICTTOPPM_COMMAND )
|
||||
tde_message_fatal( "pict codec was requested but picttoppm not found on your system." )
|
||||
endif( )
|
||||
endif( )
|
||||
|
||||
|
||||
##### checks for svg codec #####
|
||||
|
||||
if( BUILD_SVG )
|
||||
find_program( RSVG_COMMAND NAMES "rsvg-convert" )
|
||||
if( NOT RSVG_COMMAND )
|
||||
tde_message_fatal( "svg codec was requested but rsvg-convert not found on your system" )
|
||||
endif( )
|
||||
endif( )
|
||||
|
||||
|
||||
##### checks for tiff codec #####
|
||||
|
||||
if( BUILD_TIFF )
|
||||
find_package( TIFF )
|
||||
if( NOT TIFF_FOUND )
|
||||
tde_message_fatal( "libtiff was requested but not found on your system" )
|
||||
endif( )
|
||||
endif( )
|
||||
|
||||
|
||||
##### checks for ttf codec #####
|
||||
|
||||
if( BUILD_TTF )
|
||||
pkg_search_module( FREETYPE freetype2 )
|
||||
if( NOT FREETYPE_FOUND )
|
||||
tde_message_fatal( "ttf codec was requested but freetype2 not found on your system." )
|
||||
endif( )
|
||||
endif( )
|
||||
|
||||
|
||||
##### check for utah codec #####
|
||||
|
||||
if( BUILD_UTAH )
|
||||
find_program( UTAHTOPPM_COMMAND NAMES rletopnm)
|
||||
if( NOT UTAHTOPPM_COMMAND )
|
||||
tde_message_fatal( "utah codec was requested but rletopnm not found on your system." )
|
||||
endif( )
|
||||
endif( )
|
||||
|
||||
|
||||
##### checks for wmf codec #####
|
||||
|
||||
if( BUILD_WMF )
|
||||
pkg_search_module( WMF libwmf )
|
||||
if( NOT WMF_FOUND )
|
||||
find_program( WMF_CONFIG_EXECUTABLE NAMES "libwmf-config" )
|
||||
|
||||
if( WMF_CONFIG_EXECUTABLE )
|
||||
execute_process(
|
||||
COMMAND ${WMF_CONFIG_EXECUTABLE} --libs
|
||||
OUTPUT_VARIABLE WMF_LDFLAGS
|
||||
ERROR_VARIABLE WMF_LDFLAGS
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
ERROR_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
set( WMF_LIBRARIES "" )
|
||||
set( WMF_LIBRARY_DIRS "" )
|
||||
string( REPLACE " " ";" WMF_LDFLAGS ${WMF_LDFLAGS} )
|
||||
foreach( _ldflag IN LISTS WMF_LDFLAGS )
|
||||
if( _ldflag MATCHES "^-L" )
|
||||
string( REGEX REPLACE "^-L" "" _libdir "${_ldflag}" )
|
||||
list( APPEND WMF_LIBRARY_DIRS ${_libdir} )
|
||||
endif()
|
||||
if( _ldflag MATCHES "^-l" )
|
||||
string( REGEX REPLACE "^-l" "" _lib "${_ldflag}" )
|
||||
list( APPEND WMF_LIBRARIES ${_lib} )
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
execute_process(
|
||||
COMMAND ${WMF_CONFIG_EXECUTABLE} --cflags
|
||||
OUTPUT_VARIABLE WMF_CFLAGS
|
||||
ERROR_VARIABLE WMF_CFLAGS
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
ERROR_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
set( WMF_INCLUDE_DIRS "" )
|
||||
string( REPLACE " " ";" WMF_CFLAGS ${WMF_CFLAGS} )
|
||||
foreach( _cflag IN LISTS WMF_CFLAGS )
|
||||
if( _cflag MATCHES "^-I" )
|
||||
string( REGEX REPLACE "^-I" "" _incdir "${_cflag}" )
|
||||
list( APPEND WMF_INCLUDE_DIRS ${_incdir} )
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
set( WMF_FOUND 1 CACHE BOOL "WMF library found" FORCE )
|
||||
set( WMF_LIBRARIES "${WMF_LIBRARIES}" CACHE INTERNAL "WMF link libraries" )
|
||||
set( WMF_INCLUDE_DIRS "${WMF_INCLUDE_DIRS}" CACHE INTERNAL "WMF include directories" )
|
||||
endif( )
|
||||
endif( )
|
||||
if( NOT WMF_FOUND )
|
||||
tde_message_fatal( "libwmf was requested but not found on your system." )
|
||||
endif( )
|
||||
endif( )
|
||||
|
||||
|
||||
##### checks for xcf codec #####
|
||||
|
||||
if( BUILD_XCF )
|
||||
check_include_file( "inttypes.h" HAVE_INTTYPES_H )
|
||||
check_include_file( "netinet/in.h" HAVE_NETINET_IN_H )
|
||||
check_include_file( "arpa/inet.h" HAVE_ARPA_INET_H )
|
||||
check_include_file( "getopt.h" HAVE_GETOPT_H )
|
||||
check_function_exists( "getopt_long" HAVE_GETOPT_LONG )
|
||||
check_function_exists( "mmap" HAVE_MMAP )
|
||||
check_function_exists( "strcasecmp" HAVE_STRCASECMP )
|
||||
|
||||
check_include_file( "iconv.h" HAVE_ICONV_H )
|
||||
if( NOT HAVE_ICONV_H )
|
||||
tde_message_fatal( "xcf codec was requested but libiconv not found on your system" )
|
||||
endif( )
|
||||
set( HAVE_ICONV 1 )
|
||||
endif( )
|
||||
|
||||
|
||||
##### check for xim codec #####
|
||||
|
||||
if( BUILD_XIM )
|
||||
find_program( XIMTOPPM_COMMAND NAMES ximtoppm )
|
||||
if( NOT XIMTOPPM_COMMAND )
|
||||
tde_message_fatal( "xim codec was requested but ximtoppm not found on your system." )
|
||||
endif( )
|
||||
endif( )
|
||||
|
||||
|
||||
##### checks for xwd codec #####
|
||||
|
||||
if( BUILD_XWD )
|
||||
find_file( HAVE_XWDFILE_H "XWDFile.h" )
|
||||
if( NOT HAVE_XWDFILE_H )
|
||||
tde_message_fatal( "xwd codec was requested but xwdfile.h not found on your system" )
|
||||
endif( )
|
||||
endif( )
|
@ -1,22 +1,16 @@
|
||||
How to install 'ksquirrel-libs' package:
|
||||
Basic Installation
|
||||
==================
|
||||
|
||||
a) from sources
|
||||
# tar jxfv ksquirrel-libs-0.8.0.tar.bz2
|
||||
# cd ksquirrel-libs-0.8.0/
|
||||
* # su -c './required-etch'
|
||||
# ./configure.gnu (not ./configure !)
|
||||
# make
|
||||
# su -c 'make install'
|
||||
libksquirrel relies on cmake to build.
|
||||
|
||||
* For Debian Etch and Ubuntu Feisty only.
|
||||
This will install all required packages with aptitude.
|
||||
Here are suggested default options:
|
||||
|
||||
b) from binary packages
|
||||
RPM # rpm -ihv ksquirrel-libs-0.8.0.rpm
|
||||
TGZ # installpkg ksquirrel-libs-0.8.0.tgz
|
||||
DEB # dpkg -i ksquirrel-libs-0.8.0.deb
|
||||
|
||||
--------------------------------------------------------------
|
||||
|
||||
Note: You can pass all regular 'configure' parameters to configure.gnu.
|
||||
Note: Your automake version should be 1.8 or higher.
|
||||
-DCMAKE_INSTALL_PREFIX="/opt/trinity" \
|
||||
-DCONFIG_INSTALL_DIR="/etc/trinity" \
|
||||
-DSYSCONF_INSTALL_DIR="/etc/trinity" \
|
||||
-DXDG_MENU_INSTALL_DIR="/etc/xdg/menus" \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_VERBOSE_MAKEFILE="ON" \
|
||||
-DCMAKE_SKIP_RPATH="OFF" \
|
||||
-DBUILD_ALL="ON" \
|
||||
-DWITH_ALL_OPTIONS="ON"
|
||||
|
@ -0,0 +1,38 @@
|
||||
#define VERSION "@VERSION@"
|
||||
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */
|
||||
#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
|
||||
|
||||
// package name and string
|
||||
#define PACKAGE_NAME "ksquirrel-libs"
|
||||
#define PACKAGE_STRING "ksquirrel-libs @LIBKSQUIRREL_VERSION_STRING@"
|
||||
#define PACKAGE_VERSION "@LIBKSQUIRREL_VERSION_STRING@"
|
||||
|
||||
// Defined if you have "inttypes.h" header file
|
||||
#cmakedefine HAVE_INTTYPES_H @HAVE_INTTYPES_H@
|
||||
|
||||
// Defined if you have "stdint.h" header file
|
||||
#cmakedefine HAVE_STDINT_H @HAVE_STDINT_H@
|
||||
|
||||
// Defined if you have "netinet/in.h" header file
|
||||
#cmakedefine HAVE_NETINET_IN_H @HAVE_NETINET_IN_H@
|
||||
|
||||
// Defined if you have "arpa/inet.h" header file
|
||||
#cmakedefine HAVE_ARPA_INET_H @HAVE_ARPA_INET_H@
|
||||
|
||||
// Defined if you have "getopt.h" header file
|
||||
#cmakedefine HAVE_GETOPT_H @HAVE_GETOPT_H@
|
||||
|
||||
// Defined if you have "getopt_long" support
|
||||
#cmakedefine HAVE_GETOPT_LONG @HAVE_GETOPT_LONG@
|
||||
|
||||
// Defined if you have "mmap" support
|
||||
#cmakedefine HAVE_MMAP @HAVE_MMAP@
|
||||
|
||||
// Defined if you have "strcasecmp" support
|
||||
#cmakedefine HAVE_STRCASECMP @HAVE_STRCASECMP@
|
||||
|
||||
// Defined if you have "libiconv" support
|
||||
#cmakedefine HAVE_ICONV @HAVE_ICONV@
|
||||
|
@ -0,0 +1,17 @@
|
||||
install(
|
||||
DIRECTORY html/
|
||||
DESTINATION ${SHARE_INSTALL_PREFIX}/doc/ksquirrel-libs/${LIBKSQUIRREL_VERSION_STRING}
|
||||
PATTERN "Makefile.am" EXCLUDE
|
||||
)
|
||||
|
||||
install(
|
||||
DIRECTORY man/
|
||||
DESTINATION ${MAN_INSTALL_DIR}/man1
|
||||
PATTERN "Makefile.am" EXCLUDE
|
||||
)
|
||||
|
||||
install(
|
||||
DIRECTORY sources/
|
||||
DESTINATION ${SHARE_INSTALL_PREFIX}/doc/ksquirrel-libs/${LIBKSQUIRREL_VERSION_STRING}/sources
|
||||
PATTERN "sources/Makefile.am" EXCLUDE
|
||||
)
|
@ -0,0 +1,106 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### install files
|
||||
|
||||
install(
|
||||
DIRECTORY include/ksquirrel-libs/
|
||||
DESTINATION ${INCLUDE_INSTALL_DIR}/ksquirrel-libs/
|
||||
)
|
||||
|
||||
|
||||
##### main ksquirrel-lib
|
||||
file( GLOB _lib_cpp_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/ksquirrel-libs/*.cpp )
|
||||
tde_add_library( ksquirrel-libs SHARED AUTOMOC
|
||||
SOURCES ${_lib_cpp_files}
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### common codecs
|
||||
|
||||
function( conditional_build_codec _cond _codec )
|
||||
if( ${_cond} )
|
||||
file( GLOB _codec_cpp_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${_codec}/*.cpp )
|
||||
tde_add_library( ${_codec} SHARED AUTOMOC
|
||||
SOURCES ${_codec_cpp_files}
|
||||
LINK ksquirrel-libs-shared
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
||||
endif( )
|
||||
endfunction( )
|
||||
|
||||
conditional_build_codec( BUILD_AVS kls_avs )
|
||||
conditional_build_codec( BUILD_BMP kls_bmp )
|
||||
conditional_build_codec( BUILD_CUT kls_cut )
|
||||
conditional_build_codec( BUILD_DDS kls_dds )
|
||||
conditional_build_codec( BUILD_FLI kls_fli )
|
||||
conditional_build_codec( BUILD_HDR kls_hdr )
|
||||
conditional_build_codec( BUILD_ICO kls_ico )
|
||||
conditional_build_codec( BUILD_KOALA kls_koala )
|
||||
conditional_build_codec( BUILD_LIF kls_lif )
|
||||
conditional_build_codec( BUILD_MDL kls_mdl )
|
||||
conditional_build_codec( BUILD_MTV kls_mtv )
|
||||
conditional_build_codec( BUILD_PCX kls_pcx )
|
||||
conditional_build_codec( BUILD_PIX kls_pix )
|
||||
conditional_build_codec( BUILD_PNM kls_pnm )
|
||||
conditional_build_codec( BUILD_PSD kls_psd )
|
||||
conditional_build_codec( BUILD_PSP kls_psp )
|
||||
conditional_build_codec( BUILD_PXR kls_pxr )
|
||||
conditional_build_codec( BUILD_RAS kls_ras )
|
||||
conditional_build_codec( BUILD_RAWRGB kls_rawrgb )
|
||||
conditional_build_codec( BUILD_SCT kls_sct )
|
||||
conditional_build_codec( BUILD_SGI kls_sgi )
|
||||
conditional_build_codec( BUILD_SUN kls_sun )
|
||||
conditional_build_codec( BUILD_TGA kls_tga )
|
||||
conditional_build_codec( BUILD_WAL kls_xbm )
|
||||
conditional_build_codec( BUILD_WBMP kls_wbmp )
|
||||
conditional_build_codec( BUILD_XBM kls_wal )
|
||||
conditional_build_codec( BUILD_XCUR kls_xcur )
|
||||
|
||||
|
||||
# other codecs
|
||||
|
||||
if( BUILD_DICOM OR BUILD_PNG OR BUILD_SVG )
|
||||
add_subdirectory( ksquirrel-libs-png )
|
||||
endif( )
|
||||
|
||||
tde_conditional_add_subdirectory( BUILD_CAMERA kls_camera )
|
||||
tde_conditional_add_subdirectory( BUILD_DICOM kls_dicom )
|
||||
tde_conditional_add_subdirectory( BUILD_DJVU kls_djvu )
|
||||
tde_conditional_add_subdirectory( BUILD_DXF kls_dxf )
|
||||
tde_conditional_add_subdirectory( BUILD_EPS kls_eps )
|
||||
tde_conditional_add_subdirectory( BUILD_FIG kls_fig )
|
||||
tde_conditional_add_subdirectory( BUILD_GIF kls_gif )
|
||||
tde_conditional_add_subdirectory( BUILD_IFF kls_iff )
|
||||
tde_conditional_add_subdirectory( BUILD_JBIG kls_jbig )
|
||||
tde_conditional_add_subdirectory( BUILD_JPEG2000 kls_jpeg2000 )
|
||||
tde_conditional_add_subdirectory( BUILD_JPEG kls_jpeg )
|
||||
tde_conditional_add_subdirectory( BUILD_LEAF kls_leaf )
|
||||
tde_conditional_add_subdirectory( BUILD_LJPEG kls_ljpeg )
|
||||
tde_conditional_add_subdirectory( BUILD_MAC kls_mac )
|
||||
tde_conditional_add_subdirectory( BUILD_MNG kls_mng )
|
||||
tde_conditional_add_subdirectory( BUILD_MSP kls_msp )
|
||||
tde_conditional_add_subdirectory( BUILD_NEO kls_neo )
|
||||
tde_conditional_add_subdirectory( BUILD_OPENEXR kls_openexr )
|
||||
tde_conditional_add_subdirectory( BUILD_PI1 kls_pi1 )
|
||||
tde_conditional_add_subdirectory( BUILD_PI3 kls_pi3 )
|
||||
tde_conditional_add_subdirectory( BUILD_PICT kls_pict )
|
||||
tde_conditional_add_subdirectory( BUILD_PNG kls_png )
|
||||
tde_conditional_add_subdirectory( BUILD_SVG kls_svg )
|
||||
tde_conditional_add_subdirectory( BUILD_TIFF kls_tiff )
|
||||
tde_conditional_add_subdirectory( BUILD_TTF kls_ttf )
|
||||
tde_conditional_add_subdirectory( BUILD_UTAH kls_utah )
|
||||
tde_conditional_add_subdirectory( BUILD_WMF kls_wmf )
|
||||
tde_conditional_add_subdirectory( BUILD_XCF kls_xcf )
|
||||
tde_conditional_add_subdirectory( BUILD_XIM kls_xim )
|
||||
tde_conditional_add_subdirectory( BUILD_XPM kls_xpm )
|
||||
tde_conditional_add_subdirectory( BUILD_XWD kls_xwd )
|
||||
|
@ -0,0 +1,33 @@
|
||||
/* This file is part of ksquirrel-libs (http://ksquirrel.sf.net)
|
||||
|
||||
Copyright (c) 2005 Dmitry Baryshev <ksquirrel@tut.by>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation;
|
||||
either version 2 of the License, or (at your option) any later
|
||||
version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this library; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef KSQUIRREL_LIBS_EXPORT_H
|
||||
#define KSQUIRREL_LIBS_EXPORT_H
|
||||
|
||||
#include <kdemacros.h>
|
||||
|
||||
#ifdef __KDE_HAVE_GCC_VISIBILITY
|
||||
#define LIBKSQUIRREL_EXPORT __attribute__ ((visibility("default")))
|
||||
#else
|
||||
#define LIBKSQUIRREL_EXPORT
|
||||
#endif
|
||||
|
||||
#endif
|
@ -0,0 +1,52 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
add_definitions(
|
||||
-DCAMERA_UI="${SHARE_INSTALL_PREFIX}/ksquirrel-libs/libkls_camera.so.ui"
|
||||
-DCODEC_CAMERA
|
||||
-DCODEC_ANOTHER
|
||||
-DKLDCRAW_S="${BIN_INSTALL_DIR}/ksquirrel-libs-camera2ppm"
|
||||
-DKLDCRAW="${BIN_INSTALL_DIR}/ksquirrel-libs-dcraw"
|
||||
)
|
||||
|
||||
|
||||
if( NOT WITH_JPEG )
|
||||
add_definitions( -DNO_JPEG )
|
||||
endif( )
|
||||
|
||||
if( NOT WITH_LCMS )
|
||||
add_definitions( -DNO_LCMS )
|
||||
endif( )
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_camera SHARED AUTOMOC
|
||||
SOURCES fmt_codec_pnm.cpp
|
||||
LINK ksquirrel-libs-shared ${LCMS_LIBRARIES}
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
||||
|
||||
tde_add_executable( ksquirrel-libs-dcraw
|
||||
SOURCES dcraw.c
|
||||
LINK ${JPEG_LIBRARY} ${LCMS_LIBRARIES} ${MATH_LIBC}
|
||||
DESTINATION ${BIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
install(
|
||||
FILES libkls_camera.so.ui
|
||||
DESTINATION ${SHARE_INSTALL_PREFIX}/ksquirrel-libs
|
||||
)
|
||||
|
||||
install(
|
||||
PROGRAMS ksquirrel-libs-camera2ppm
|
||||
DESTINATION ${BIN_INSTALL_DIR}
|
||||
)
|
@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
kls_camera_i=""
|
||||
kls_camera_o=""
|
||||
kls_camera_bin=""
|
||||
kls_camera_params=""
|
||||
|
||||
while [ "$1" ] ; do
|
||||
|
||||
case "$1" in
|
||||
"--input") kls_camera_i="$2" shift ;;
|
||||
"--output") kls_camera_o="$2" shift ;;
|
||||
"--binary") kls_camera_bin="$2" shift ;;
|
||||
*) kls_camera_params="$kls_camera_params $1" ;;
|
||||
esac
|
||||
|
||||
shift
|
||||
done
|
||||
|
||||
$kls_camera_bin $kls_camera_params "$kls_camera_i" > "$kls_camera_o"
|
@ -0,0 +1,31 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
add_definitions(
|
||||
-DCODEC_DICOM
|
||||
-DDICOM="${BIN_INSTALL_DIR}/ksquirrel-libs-dicom2png"
|
||||
)
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_dicom SHARED AUTOMOC
|
||||
SOURCES fmt_codec_png.cpp
|
||||
LINK ksquirrel-libs-shared ksquirrel-libs-png-shared
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
configure_file( ksquirrel-libs-dicom2png.cmake ksquirrel-libs-dicom2png @ONLY )
|
||||
INSTALL(
|
||||
PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/ksquirrel-libs-dicom2png
|
||||
DESTINATION ${BIN_INSTALL_DIR}
|
||||
)
|
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
@DICOM_COMMAND@ --without-prefix -f "$1" -e 0:0 -c - png > "$2"
|
@ -0,0 +1,35 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
add_definitions(
|
||||
-DDJVU_UI="${SHARE_INSTALL_PREFIX}/ksquirrel-libs/libkls_djvu.so.ui"
|
||||
-DCODEC_DJVU
|
||||
-DCODEC_ANOTHER
|
||||
-DDJVU="${DJVU_COMMAND}"
|
||||
)
|
||||
|
||||
if( NOT WITH_LCMS )
|
||||
add_definitions( -DNO_LCMS )
|
||||
endif( )
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_djvu SHARED AUTOMOC
|
||||
SOURCES fmt_codec_pnm.cpp
|
||||
LINK ksquirrel-libs-shared
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
install(
|
||||
FILES libkls_djvu.so.ui
|
||||
DESTINATION ${SHARE_INSTALL_PREFIX}/ksquirrel-libs
|
||||
)
|
@ -0,0 +1,35 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
add_definitions(
|
||||
-DDXF_UI="${SHARE_INSTALL_PREFIX}/ksquirrel-libs/libkls_dxf.so.ui"
|
||||
-DCODEC_DXF
|
||||
-DCODEC_ANOTHER
|
||||
-DVEC2WEB="${DXF_COMMAND}"
|
||||
)
|
||||
|
||||
if( NOT WITH_LCMS )
|
||||
add_definitions( -DNO_LCMS )
|
||||
endif( )
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_dxf SHARED AUTOMOC
|
||||
SOURCES fmt_codec_pnm.cpp
|
||||
LINK ksquirrel-libs-shared
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
install(
|
||||
FILES libkls_dxf.so.ui
|
||||
DESTINATION ${SHARE_INSTALL_PREFIX}/ksquirrel-libs
|
||||
)
|
@ -0,0 +1,20 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
add_definitions(
|
||||
-DCODEC_EPS
|
||||
-DEPS2PPM="${EPS_COMMAND}"
|
||||
)
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_eps SHARED AUTOMOC
|
||||
SOURCES fmt_codec_pnm.cpp
|
||||
LINK ksquirrel-libs-shared ${MATH_LIBC}
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
@ -0,0 +1,34 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
add_definitions(
|
||||
-DCODEC_FIG
|
||||
-DXFIG_S="${BIN_INSTALL_DIR}/ksquirrel-libs-fig2ppm"
|
||||
)
|
||||
|
||||
if( NOT WITH_LCMS )
|
||||
add_definitions( -DNO_LCMS )
|
||||
endif( )
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_fig SHARED AUTOMOC
|
||||
SOURCES fmt_codec_pnm.cpp
|
||||
LINK ksquirrel-libs-shared
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
configure_file( ksquirrel-libs-fig2ppm.cmake ksquirrel-libs-fig2ppm @ONLY )
|
||||
INSTALL(
|
||||
PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/ksquirrel-libs-fig2ppm
|
||||
DESTINATION ${BIN_INSTALL_DIR}
|
||||
)
|
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
@FIG2DEV_COMMAND@ -L ppm "$1" > "$2"
|
@ -0,0 +1,15 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_gif SHARED AUTOMOC
|
||||
SOURCES fmt_codec_gif.cpp
|
||||
LINK ksquirrel-libs-shared ${GIF_LIBRARIES}
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
@ -0,0 +1,34 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
add_definitions(
|
||||
-DCODEC_NETPBM
|
||||
-DCODEC_IFF
|
||||
-DNETPBM_S="${BIN_INSTALL_DIR}/ksquirrel-libs-iff2ppm"
|
||||
)
|
||||
|
||||
if( NOT WITH_LCMS )
|
||||
add_definitions( -DNO_LCMS )
|
||||
endif( )
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_iff SHARED AUTOMOC
|
||||
SOURCES fmt_codec_pnm.cpp
|
||||
LINK ksquirrel-libs-shared
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
configure_file( ksquirrel-libs-iff2ppm.cmake ksquirrel-libs-iff2ppm @ONLY )
|
||||
INSTALL(
|
||||
PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/ksquirrel-libs-iff2ppm
|
||||
DESTINATION ${BIN_INSTALL_DIR}
|
||||
)
|
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
@IFFTOPPM_COMMAND@ "$1" > "$2"
|
@ -0,0 +1,19 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/libjbig
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
add_subdirectory( libjbig )
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_jbig SHARED AUTOMOC
|
||||
SOURCES fmt_codec_jbig.cpp jbig2mem.cpp
|
||||
LINK ksquirrel-libs-shared jbig-static
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
@ -0,0 +1,12 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
)
|
||||
|
||||
|
||||
##### executable
|
||||
|
||||
file( GLOB _bin_c_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.c )
|
||||
tde_add_library( jbig STATIC_PIC AUTOMOC
|
||||
SOURCES ${_bin_c_files}
|
||||
)
|
@ -0,0 +1,15 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_jpeg SHARED AUTOMOC
|
||||
SOURCES fmt_codec_jpeg.cpp
|
||||
LINK ksquirrel-libs-shared ${JPEG_LIBRARY}
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
@ -0,0 +1,15 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_jpeg2000 SHARED AUTOMOC
|
||||
SOURCES fmt_codec_jpeg2000.cpp
|
||||
LINK ksquirrel-libs-shared ${JASPER_LIBRARY}
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
@ -0,0 +1,35 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
add_definitions(
|
||||
-DCODEC_NETPBM
|
||||
-DCODEC_LEAF
|
||||
-DNETPBM_S="${BIN_INSTALL_DIR}/ksquirrel-libs-leaf2ppm"
|
||||
)
|
||||
|
||||
if( NOT WITH_LCMS )
|
||||
add_definitions( -DNO_LCMS )
|
||||
endif( )
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_leaf SHARED AUTOMOC
|
||||
SOURCES fmt_codec_pnm.cpp
|
||||
LINK ksquirrel-libs-shared
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
configure_file( ksquirrel-libs-leaf2ppm.cmake ksquirrel-libs-leaf2ppm @ONLY )
|
||||
INSTALL(
|
||||
PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/ksquirrel-libs-leaf2ppm
|
||||
DESTINATION ${BIN_INSTALL_DIR}
|
||||
)
|
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
@LEAFTOPPM_COMMAND@ "$1" > "$2"
|
@ -0,0 +1,36 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
add_subdirectory( ljpeg2ppm )
|
||||
|
||||
add_definitions(
|
||||
-DCODEC_LJPEG
|
||||
-DLJPEG2PPM_S="${BIN_INSTALL_DIR}/ksquirrel-libs-ljpeg2ppm-s"
|
||||
-DLJPEG2PPM="${BIN_INSTALL_DIR}/ksquirrel-libs-ljpeg2ppm"
|
||||
)
|
||||
|
||||
if( NOT WITH_LCMS )
|
||||
add_definitions( -DNO_LCMS )
|
||||
endif( )
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_ljpeg SHARED AUTOMOC
|
||||
SOURCES fmt_codec_pnm.cpp
|
||||
LINK ksquirrel-libs-shared
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
install(
|
||||
PROGRAMS ksquirrel-libs-ljpeg2ppm-s
|
||||
DESTINATION ${BIN_INSTALL_DIR}
|
||||
)
|
@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
kls_ljpeg_i=""
|
||||
kls_ljpeg_o=""
|
||||
kls_ljpeg_bin=""
|
||||
|
||||
while [ "$1" ] ; do
|
||||
|
||||
case "$1" in
|
||||
"--input") kls_ljpeg_i="$2" shift ;;
|
||||
"--output") kls_ljpeg_o="$2" shift ;;
|
||||
"--binary") kls_ljpeg_bin="$2" shift ;;
|
||||
esac
|
||||
|
||||
shift
|
||||
done
|
||||
|
||||
$kls_ljpeg_bin "$kls_ljpeg_i" > "$kls_ljpeg_o"
|
@ -0,0 +1,14 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### executable
|
||||
|
||||
file( GLOB _bin_c_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.c )
|
||||
tde_add_executable( ksquirrel-libs-ljpeg2ppm
|
||||
SOURCES ${_bin_c_files}
|
||||
DESTINATION ${BIN_INSTALL_DIR}
|
||||
)
|
@ -0,0 +1,35 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
add_definitions(
|
||||
-DCODEC_NETPBM
|
||||
-DCODEC_MAC
|
||||
-DNETPBM_S="${BIN_INSTALL_DIR}/ksquirrel-libs-mac2ppm"
|
||||
)
|
||||
|
||||
if( NOT WITH_LCMS )
|
||||
add_definitions( -DNO_LCMS )
|
||||
endif( )
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_mac SHARED AUTOMOC
|
||||
SOURCES fmt_codec_pnm.cpp
|
||||
LINK ksquirrel-libs-shared
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
configure_file( ksquirrel-libs-mac2ppm.cmake ksquirrel-libs-mac2ppm @ONLY )
|
||||
INSTALL(
|
||||
PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/ksquirrel-libs-mac2ppm
|
||||
DESTINATION ${BIN_INSTALL_DIR}
|
||||
)
|
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
@MACPTOPPM_COMMAND@ "$1" > "$2"
|
@ -0,0 +1,15 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_mng SHARED AUTOMOC
|
||||
SOURCES fmt_codec_mng.cpp
|
||||
LINK ksquirrel-libs-shared ${MNG_LIBRARY}
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
@ -0,0 +1,15 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_msp SHARED AUTOMOC
|
||||
SOURCES fmt_codec_msp.cpp
|
||||
LINK ksquirrel-libs-shared
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
@ -0,0 +1,35 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
add_definitions(
|
||||
-DCODEC_NETPBM
|
||||
-DCODEC_NEO
|
||||
-DNETPBM_S="${BIN_INSTALL_DIR}/ksquirrel-libs-neo2ppm"
|
||||
)
|
||||
|
||||
if( NOT WITH_LCMS )
|
||||
add_definitions( -DNO_LCMS )
|
||||
endif( )
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_neo SHARED AUTOMOC
|
||||
SOURCES fmt_codec_pnm.cpp
|
||||
LINK ksquirrel-libs-shared
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
configure_file( ksquirrel-libs-neo2ppm.cmake ksquirrel-libs-neo2ppm @ONLY )
|
||||
INSTALL(
|
||||
PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/ksquirrel-libs-neo2ppm
|
||||
DESTINATION ${BIN_INSTALL_DIR}
|
||||
)
|
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
@NEOTOPPM_COMMAND@ "$1" > "$2"
|
@ -0,0 +1,16 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
${OPENEXR_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_openexr SHARED AUTOMOC
|
||||
SOURCES fmt_codec_openexr.cpp
|
||||
LINK ksquirrel-libs-shared ${OPENEXR_LIBRARIES}
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
@ -0,0 +1,35 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
add_definitions(
|
||||
-DCODEC_NETPBM
|
||||
-DCODEC_PI1
|
||||
-DNETPBM_S="${BIN_INSTALL_DIR}/ksquirrel-libs-pi12ppm"
|
||||
)
|
||||
|
||||
if( NOT WITH_LCMS )
|
||||
add_definitions( -DNO_LCMS )
|
||||
endif( )
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_pi1 SHARED AUTOMOC
|
||||
SOURCES fmt_codec_pnm.cpp
|
||||
LINK ksquirrel-libs-shared
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
configure_file( ksquirrel-libs-pi12ppm.cmake ksquirrel-libs-pi12ppm @ONLY )
|
||||
INSTALL(
|
||||
PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/ksquirrel-libs-pi12ppm
|
||||
DESTINATION ${BIN_INSTALL_DIR}
|
||||
)
|
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
@PI1TOPPM_COMMAND@ "$1" > "$2"
|
@ -0,0 +1,35 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
add_definitions(
|
||||
-DCODEC_NETPBM
|
||||
-DCODEC_PI3
|
||||
-DNETPBM_S="${BIN_INSTALL_DIR}/ksquirrel-libs-pi32ppm"
|
||||
)
|
||||
|
||||
if( NOT WITH_LCMS )
|
||||
add_definitions( -DNO_LCMS )
|
||||
endif( )
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_pi3 SHARED AUTOMOC
|
||||
SOURCES fmt_codec_pnm.cpp
|
||||
LINK ksquirrel-libs-shared
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
configure_file( ksquirrel-libs-pi32ppm.cmake ksquirrel-libs-pi32ppm @ONLY )
|
||||
INSTALL(
|
||||
PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/ksquirrel-libs-pi32ppm
|
||||
DESTINATION ${BIN_INSTALL_DIR}
|
||||
)
|
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
@PI3TOPPM_COMMAND@ "$1" > "$2"
|
@ -0,0 +1,35 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
add_definitions(
|
||||
-DCODEC_NETPBM
|
||||
-DCODEC_PICT
|
||||
-DNETPBM_S="${BIN_INSTALL_DIR}/ksquirrel-libs-pict2ppm"
|
||||
)
|
||||
|
||||
if( NOT WITH_LCMS )
|
||||
add_definitions( -DNO_LCMS )
|
||||
endif( )
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_pict SHARED AUTOMOC
|
||||
SOURCES fmt_codec_pnm.cpp
|
||||
LINK ksquirrel-libs-shared
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
configure_file( ksquirrel-libs-pict2ppm.cmake ksquirrel-libs-pict2ppm @ONLY )
|
||||
INSTALL(
|
||||
PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/ksquirrel-libs-pict2ppm
|
||||
DESTINATION ${BIN_INSTALL_DIR}
|
||||
)
|
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
@PICTTOPPM_COMMAND@ "$1" > "$2"
|
@ -0,0 +1,21 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
add_definitions(
|
||||
-DCODEC_PNG
|
||||
)
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_png SHARED AUTOMOC
|
||||
SOURCES fmt_codec_png.cpp
|
||||
LINK ksquirrel-libs-shared ksquirrel-libs-png-shared
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
@ -0,0 +1,38 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
add_definitions(
|
||||
-DSVG_UI="${SHARE_INSTALL_PREFIX}/ksquirrel-libs/libkls_svg.so.ui"
|
||||
-DCODEC_SVG
|
||||
-DCODEC_ANOTHER
|
||||
-DRSVG="${RSVG_COMMAND}"
|
||||
-DSVG2PNG="${BIN_INSTALL_DIR}/ksquirrel-libs-svg2png"
|
||||
)
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_svg SHARED AUTOMOC
|
||||
SOURCES fmt_codec_png.cpp
|
||||
LINK ksquirrel-libs-shared ksquirrel-libs-png-shared
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
install(
|
||||
FILES libkls_svg.so.ui
|
||||
DESTINATION ${SHARE_INSTALL_PREFIX}/ksquirrel-libs
|
||||
)
|
||||
|
||||
install(
|
||||
PROGRAMS ksquirrel-libs-svg2png
|
||||
DESTINATION ${BIN_INSTALL_DIR}
|
||||
)
|
@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
kls_svg_i=""
|
||||
kls_svg_o=""
|
||||
kls_svg_bin=""
|
||||
kls_svg_params=""
|
||||
|
||||
while [ "$1" ] ; do
|
||||
|
||||
case "$1" in
|
||||
"--input") kls_svg_i="$2" shift ;;
|
||||
"--output") kls_svg_o="$2" shift ;;
|
||||
"--binary") kls_svg_bin="$2" shift ;;
|
||||
*) kls_svg_params="$kls_svg_params $1" ;;
|
||||
esac
|
||||
|
||||
shift
|
||||
done
|
||||
|
||||
$kls_svg_bin $kls_svg_params "$kls_svg_i" > "$kls_svg_o"
|
@ -0,0 +1,28 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
add_definitions(
|
||||
-DTIFF_UI="${SHARE_INSTALL_PREFIX}/ksquirrel-libs/libkls_tiff.so.ui"
|
||||
)
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_tiff SHARED AUTOMOC
|
||||
SOURCES fmt_codec_tiff.cpp
|
||||
LINK ksquirrel-libs-shared ${TIFF_LIBRARY}
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
install(
|
||||
FILES libkls_tiff.so.ui
|
||||
DESTINATION ${SHARE_INSTALL_PREFIX}/ksquirrel-libs
|
||||
)
|
@ -0,0 +1,26 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/ftview
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
${FREETYPE_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
|
||||
add_subdirectory( ftview )
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_ttf SHARED AUTOMOC
|
||||
SOURCES fmt_codec_pnm.cpp
|
||||
LINK ksquirrel-libs-shared
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
||||
|
||||
tde_add_executable( ksquirrel-libs-ttf2pnm
|
||||
SOURCES ttf2pnm.cpp ftcommon.cpp
|
||||
LINK ${LCMS_LIBRARIES} ${FREETYPE_LIBRARIES} ftview-static
|
||||
DESTINATION ${BIN_INSTALL_DIR}
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### executable
|
||||
|
||||
file( GLOB _bin_cpp_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp )
|
||||
tde_add_library( ftview STATIC_PIC AUTOMOC
|
||||
SOURCES ${_bin_cpp_files}
|
||||
)
|
@ -0,0 +1,35 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
add_definitions(
|
||||
-DCODEC_NETPBM
|
||||
-DCODEC_UTAH
|
||||
-DNETPBM_S="${BIN_INSTALL_DIR}/ksquirrel-libs-utah2ppm"
|
||||
)
|
||||
|
||||
if( NOT WITH_LCMS )
|
||||
add_definitions( -DNO_LCMS )
|
||||
endif( )
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_utah SHARED AUTOMOC
|
||||
SOURCES fmt_codec_pnm.cpp
|
||||
LINK ksquirrel-libs-shared
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
configure_file( ksquirrel-libs-utah2ppm.cmake ksquirrel-libs-utah2ppm @ONLY )
|
||||
INSTALL(
|
||||
PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/ksquirrel-libs-utah2ppm
|
||||
DESTINATION ${BIN_INSTALL_DIR}
|
||||
)
|
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
@UTAHTOPPM_COMMAND@ "$1" > "$2"
|
@ -0,0 +1,16 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
${WMF_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_wmf SHARED AUTOMOC
|
||||
SOURCES fmt_codec_wmf.cpp wmf2mem.cpp
|
||||
LINK ksquirrel-libs-shared ${WMF_LIBRARIES}
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
@ -0,0 +1,40 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
add_subdirectory( xcf2pnm )
|
||||
|
||||
add_definitions(
|
||||
-DXCF_UI="${SHARE_INSTALL_PREFIX}/ksquirrel-libs/libkls_xcf.so.ui"
|
||||
-DCODEC_XCF
|
||||
-DCODEC_ANOTHER
|
||||
-DKLXCF2PNM="${BIN_INSTALL_DIR}/ksquirrel-libs-xcf2pnm"
|
||||
)
|
||||
|
||||
if( NOT WITH_LCMS )
|
||||
add_definitions( -DNO_LCMS )
|
||||
endif( )
|
||||
|
||||
if( ${CMAKE_SYSTEM_PROCESSOR} MATCHES "(i.86|x86_64|powerpc)" )
|
||||
add_definitions( -DCAN_DO_UNALIGNED_WORDS)
|
||||
endif( )
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_xcf SHARED AUTOMOC
|
||||
SOURCES fmt_codec_pnm.cpp
|
||||
LINK ksquirrel-libs-shared
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
install(
|
||||
FILES libkls_xcf.so.ui
|
||||
DESTINATION ${SHARE_INSTALL_PREFIX}/ksquirrel-libs
|
||||
)
|
@ -0,0 +1,14 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### executable
|
||||
|
||||
file( GLOB _bin_c_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.c )
|
||||
tde_add_executable( ksquirrel-libs-xcf2pnm
|
||||
SOURCES ${_bin_c_files}
|
||||
DESTINATION ${BIN_INSTALL_DIR}
|
||||
)
|
@ -0,0 +1,35 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
add_definitions(
|
||||
-DCODEC_NETPBM
|
||||
-DCODEC_XIM
|
||||
-DNETPBM_S="${BIN_INSTALL_DIR}/ksquirrel-libs-xim2ppm"
|
||||
)
|
||||
|
||||
if( NOT WITH_LCMS )
|
||||
add_definitions( -DNO_LCMS )
|
||||
endif( )
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_xim SHARED AUTOMOC
|
||||
SOURCES fmt_codec_pnm.cpp
|
||||
LINK ksquirrel-libs-shared
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
configure_file( ksquirrel-libs-xim2ppm.cmake ksquirrel-libs-xim2ppm @ONLY )
|
||||
INSTALL(
|
||||
PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/ksquirrel-libs-xim2ppm
|
||||
DESTINATION ${BIN_INSTALL_DIR}
|
||||
)
|
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
@XIMTOPPM_COMMAND@ "$1" > "$2"
|
@ -0,0 +1,28 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
add_definitions(
|
||||
-DSQ_RGBMAP="${SHARE_INSTALL_PREFIX}/ksquirrel-libs/rgbmap"
|
||||
)
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_xpm SHARED AUTOMOC
|
||||
SOURCES fmt_codec_xpm.cpp
|
||||
LINK ksquirrel-libs-shared
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
install(
|
||||
FILES rgbmap
|
||||
DESTINATION ${SHARE_INSTALL_PREFIX}/ksquirrel-libs
|
||||
)
|
@ -0,0 +1,15 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### codecs
|
||||
|
||||
tde_add_library( kls_xwd SHARED AUTOMOC
|
||||
SOURCES fmt_codec_xwd.cpp
|
||||
LINK ksquirrel-libs-shared
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
|
||||
)
|
@ -0,0 +1,19 @@
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/kernel/include
|
||||
${CMAKE_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### executable
|
||||
|
||||
file( GLOB _bin_source_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.c
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp
|
||||
)
|
||||
tde_add_library( ksquirrel-libs-png SHARED AUTOMOC
|
||||
SOURCES ${_bin_source_files}
|
||||
LINK ${ZLIB_LIBRARIES} ${MATH_LIBC}
|
||||
VERSION 0.8.0
|
||||
DESTINATION ${LIB_INSTALL_DIR}
|
||||
)
|
@ -1,8 +1,8 @@
|
||||
INCLUDES = -I../include
|
||||
INCLUDES = -I../include $(all_includes)
|
||||
|
||||
# create small development library. KSquirrel will use it.
|
||||
lib_LTLIBRARIES = libksquirrel-libs.la
|
||||
|
||||
libksquirrel_libs_la_SOURCES = fileio.cpp fmt_utils.cpp
|
||||
|
||||
libksquirrel_libs_la_LDFLAGS = ${SQ_RELEASE}
|
||||
libksquirrel_libs_la_LDFLAGS = ${SQ_RELEASE}
|
||||
|
@ -0,0 +1,11 @@
|
||||
prefix=@CMAKE_INSTALL_PREFIX@
|
||||
exec_prefix=@PC_EXEC_PREFIX@
|
||||
libdir=@PC_LIB_DIR@
|
||||
includedir=@PC_INCLUDE_DIR@
|
||||
version=@LIBKSQUIRREL_VERSION_STRING@
|
||||
|
||||
Name: ksquirrellibs
|
||||
Description: Image codecs for KSquirrel
|
||||
Version: @LIBKSQUIRREL_VERSION_STRING@
|
||||
Libs: -L${libdir} -lksquirrel-libs
|
||||
Cflags: -I${includedir} -DSQ_KLIBS=${libdir}/ksquirrel-libs -DSQ_KL_VER=${version}
|
Loading…
Reference in new issue