# Boost.GIL.IO # # (C) Copyright 2012: Mateusz Loskot and Christian Henning # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) # Please make sure to read readme.txt! # bring in rules for testing import testing ; using zlib : : boost_zlib @tag : : true ; using libjpeg : : boost_jpeg @tag : : true ; using libpng : : boost_png @tag : : true ; using libtiff : : boost_tiff @tag : : true ; # Given a name of library this rule creates the necessary # main target and returns it. # The 'sources' argument is the list of sources names for the library, # which will be used if building the library. rule create-library ( library-name : windows-name unix-name : sources + : requirements * ) { local LIB = $(library-name:U) ; if ! $(library-name) in zlib libjpeg libpng libtiff { EXIT "Wrong library name passed to 'create-library' in libs/gil/io/test/Jamfile.v2" ; } if ! $($(LIB)_INCLUDE) { $(LIB)_INCLUDE = $($(LIB)_SOURCE) ; } # Should we use prebuilt library or build it ourselves? if $($(LIB)_SOURCE) { return [ lib boost_$(library-name) : [ path.glob $($(LIB)_SOURCE) : $(sources).c ] : $($(LIB)_INCLUDE) $(LIB:L) $(requirements) : : $($(LIB)_INCLUDE) ] ; } else { if $(debug) { ECHO "notice: gil::io::test: using prebuilt $(library-name)" ; } # Should use prebuilt library. if ! $($(LIB)_BINARY) { # No explicit name specified, guess it. if [ os.name ] = NT { $(LIB)_BINARY = $(windows-name) ; lib boost_$(library-name) : : $(windows-name) ; } else { $(LIB)_BINARY = $(unix-name) ; } } return [ lib boost_$(library-name) : : $($(LIB)_BINARY) $($(LIB)_LIBPATH) : : $($(LIB)_INCLUDE) ] ; } } project : requirements intel:off msvc-7.1:off msvc-8.0:_SCL_SECURE_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE _CRT_NONSTDC_NO_DEPRECATE msvc-9.0:_SCL_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_DEPRECATE msvc-10.0:_SCL_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_DEPRECATE static /boost/test//boost_unit_test_framework /boost/system//boost_system /boost/filesystem//boost_filesystem ; test-suite "gil::io" : [ run # sources test.cpp all_formats_test.cpp bmp_old_test.cpp bmp_read_test.cpp bmp_test.cpp bmp_write_test.cpp jpeg_old_test.cpp jpeg_read_test.cpp jpeg_test.cpp jpeg_write_test.cpp make.cpp png_file_format_test.cpp png_old_test.cpp png_read_test.cpp png_test.cpp pnm_old_test.cpp pnm_read_test.cpp pnm_test.cpp pnm_write_test.cpp #raw_test.cpp targa_old_test.cpp targa_read_test.cpp targa_test.cpp targa_write_test.cpp tiff_file_format_test.cpp tiff_old_test.cpp tiff_subimage_test.cpp tiff_test.cpp tiff_tiled_float_test.cpp tiff_tiled_minisblack_test_1-10.cpp tiff_tiled_minisblack_test_11-20.cpp tiff_tiled_minisblack_test_21-31_32-64.cpp tiff_tiled_minisblack_write_test_1-10.cpp tiff_tiled_minisblack_write_test_11-20.cpp tiff_tiled_minisblack_write_test_21-31_32-64.cpp tiff_tiled_palette_test_1-8.cpp tiff_tiled_palette_test_8-16.cpp tiff_tiled_palette_write_test_1-8.cpp tiff_tiled_palette_write_test_8-16.cpp tiff_tiled_rgb_contig_test_1-10.cpp tiff_tiled_rgb_contig_test_11-20.cpp tiff_tiled_rgb_contig_test_21-31_32_64.cpp tiff_tiled_rgb_contig_write_test_1-10.cpp tiff_tiled_rgb_contig_write_test_11-20.cpp tiff_tiled_rgb_contig_write_test_21-31_32_64.cpp tiff_tiled_rgb_planar_test_1-10.cpp tiff_tiled_rgb_planar_test_11-20.cpp tiff_tiled_rgb_planar_test_21-31_32_64.cpp tiff_tiled_test.cpp tiff_write_test.cpp : # args : # input-files : # requirements : # target-name gil_io_tests : # default-build ] ;