diff --git a/applications/jpip/CHANGES b/applications/jpip/CHANGES index 0e3bf44a..8b84700f 100644 --- a/applications/jpip/CHANGES +++ b/applications/jpip/CHANGES @@ -6,6 +6,7 @@ What's New for OpenJPIP + : added August 26, 2011 +* [antonin] fixed cmake and autotools files to reflect recent indexer changes in JPIP ! [kaori] indexer using the latest openjpeg library * [antonin] fixed cmake and autotools files to reflect recent changes in JPIP ! [kaori] fixed Makefile.nix to load openjpeg library from this archive diff --git a/applications/jpip/tools/indexer/CMakeLists.txt b/applications/jpip/tools/indexer/CMakeLists.txt new file mode 100644 index 00000000..b1b34b70 --- /dev/null +++ b/applications/jpip/tools/indexer/CMakeLists.txt @@ -0,0 +1,32 @@ +SET(INDEXER_SRCS +${CMAKE_CURRENT_SOURCE_DIR}/j2k_to_idxjp2.c +${CMAKE_CURRENT_SOURCE_DIR}/cidx_manager.c +${CMAKE_CURRENT_SOURCE_DIR}/cio_ext.c +${CMAKE_CURRENT_SOURCE_DIR}/event_mgr_handler.c +${CMAKE_CURRENT_SOURCE_DIR}/idxjp2_manager.c +${CMAKE_CURRENT_SOURCE_DIR}/j2k_decoder.c +${CMAKE_CURRENT_SOURCE_DIR}/phix_manager.c +${CMAKE_CURRENT_SOURCE_DIR}/ppix_manager.c +${CMAKE_CURRENT_SOURCE_DIR}/thix_manager.c +${CMAKE_CURRENT_SOURCE_DIR}/tpix_manager.c +) + +# Headers file are located here: +INCLUDE_DIRECTORIES( + ${OPENJPEG_SOURCE_DIR}/libopenjpeg + ) + +# Build executable + +ADD_EXECUTABLE(j2k_to_idxjp2 ${INDEXER_SRCS}) +TARGET_LINK_LIBRARIES(j2k_to_idxjp2 ${OPENJPEG_LIBRARY_NAME}) + +# On unix you need to link to the math library: +IF(UNIX) + TARGET_LINK_LIBRARIES(j2k_to_idxjp2 m) +ENDIF(UNIX) +# Install exe +INSTALL(TARGETS j2k_to_idxjp2 + EXPORT OpenJPEGTargets + DESTINATION ${OPENJPEG_INSTALL_BIN_DIR} COMPONENT Applications +) diff --git a/applications/jpip/tools/indexer/Makefile.am b/applications/jpip/tools/indexer/Makefile.am new file mode 100644 index 00000000..8207020d --- /dev/null +++ b/applications/jpip/tools/indexer/Makefile.am @@ -0,0 +1,32 @@ +MAINTAINERCLEANFILES = Makefile.in + +bin_PROGRAMS = j2k_to_idxjp2 + +j2k_to_idxjp2_CPPFLAGS = \ +-I. \ +-I$(top_srcdir)/applications/libopenjpip/tools/indexer \ +-I$(top_builddir)/applications/libopenjpip/tools/indexer \ +-I$(top_srcdir)/libopenjpeg \ +-I$(top_builddir)/libopenjpeg +j2k_to_idxjp2_CFLAGS = +j2k_to_idxjp2_LDADD = $(top_builddir)/libopenjpeg/libopenjpeg.la -lm +j2k_to_idxjp2_SOURCES = \ +cidx_manager.c \ +cidx_manager.h \ +cio_ext.c \ +cio_ext.h \ +j2k_to_idxjp2.c \ +j2k_to_idxjp2.h \ +event_mgr_handler.c \ +event_mgr_handler.h \ +idxjp2_manager.c \ +j2k_decoder.c \ +indexbox_manager.h \ +phix_manager.c \ +ppix_manager.c \ +thix_manager.c \ +tpix_manager.c + +install-data-hook: + @echo -e " (B)\t$(bindir)/j2k_to_idxjp2$(EXEEXT)" >> $(top_builddir)/report.txt +