Jamfile 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. # Boost.GIL (Generic Image Library) - IO tests
  2. #
  3. # Copyright (c) 2012 Christian Henning
  4. # Copyright (c) 2017 Stefan Seefeld
  5. # Copyright (c) 2012-2018 Mateusz Loskot <mateusz@loskot.net>
  6. #
  7. # Distributed under the Boost Software License, Version 1.0.
  8. # (See accompanying file LICENSE_1_0.txt or
  9. # copy at http://www.boost.org/LICENSE_1_0.txt)
  10. import ac ;
  11. using libjpeg : : : : true ; # work around bug on master
  12. using zlib ;
  13. using libpng : : : : true ;
  14. using libtiff : : : : true ;
  15. lib raw : : <name>raw ;
  16. project
  17. : requirements
  18. <library>/boost/test//boost_unit_test_framework
  19. <library>/boost/system//boost_system
  20. <library>/boost/filesystem//boost_filesystem
  21. <link>shared:<define>BOOST_TEST_DYN_LINK=1
  22. ;
  23. alias headers : [ generate_self_contained_headers extension/io ] ;
  24. explicit headers ;
  25. # The `simple` in names of targets, somewhat misleading, means two things:
  26. # - minimal set of tests
  27. # - set of tests that require third-party libraries which are de-facto ubiquitous
  28. alias simple
  29. : [ run all_formats_test.cpp
  30. : # args
  31. : # input files
  32. : # requirements
  33. <define>BOOST_GIL_IO_TEST_ALLOW_READING_IMAGES
  34. <define>BOOST_GIL_IO_TEST_ALLOW_WRITING_IMAGES
  35. [ ac.check-library /libjpeg//libjpeg : <library>/libjpeg//libjpeg : <build>no ]
  36. [ ac.check-library /zlib//zlib : <library>/zlib//zlib : <build>no ]
  37. [ ac.check-library /libpng//libpng : <library>/libpng//libpng : <build>no ]
  38. [ ac.check-library /libtiff//libtiff : <library>/libtiff//libtiff : <build>no ]
  39. ]
  40. ;
  41. alias full :
  42. [ run bmp_test.cpp bmp_old_test.cpp bmp_read_test.cpp bmp_write_test.cpp ]
  43. [ run jpeg_test.cpp jpeg_old_test.cpp jpeg_read_test.cpp jpeg_write_test.cpp
  44. :
  45. :
  46. : [ ac.check-library /libjpeg//libjpeg : <library>/libjpeg//libjpeg : <build>no ] ]
  47. #make.cpp
  48. [ run png_test.cpp png_old_test.cpp png_file_format_test.cpp png_read_test.cpp
  49. :
  50. :
  51. :
  52. <define>BOOST_GIL_IO_TEST_ALLOW_READING_IMAGES
  53. [ ac.check-library /zlib//zlib : <library>/zlib//zlib : <build>no ]
  54. [ ac.check-library /libpng//libpng : <library>/libpng//libpng : <build>no ]
  55. ]
  56. [ run pnm_test.cpp pnm_old_test.cpp pnm_read_test.cpp pnm_write_test.cpp ]
  57. [ run raw_test.cpp
  58. : # args
  59. : # input files
  60. : # requirements
  61. <define>BOOST_GIL_IO_TEST_ALLOW_READING_IMAGES
  62. <library>raw
  63. ]
  64. [ run targa_test.cpp targa_old_test.cpp targa_read_test.cpp targa_write_test.cpp ]
  65. [ run
  66. tiff_test.cpp
  67. tiff_old_test.cpp
  68. tiff_file_format_test.cpp
  69. tiff_subimage_test.cpp
  70. tiff_tiled_float_test.cpp
  71. tiff_tiled_minisblack_test_1-10.cpp
  72. tiff_tiled_minisblack_test_11-20.cpp
  73. tiff_tiled_minisblack_test_21-31_32-64.cpp
  74. tiff_tiled_minisblack_write_test_1-10.cpp
  75. tiff_tiled_minisblack_write_test_11-20.cpp
  76. tiff_tiled_minisblack_write_test_21-31_32-64.cpp
  77. tiff_tiled_palette_test_1-8.cpp
  78. tiff_tiled_palette_test_8-16.cpp
  79. tiff_tiled_palette_write_test_1-8.cpp
  80. tiff_tiled_palette_write_test_8-16.cpp
  81. tiff_tiled_rgb_contig_test_1-10.cpp
  82. tiff_tiled_rgb_contig_test_11-20.cpp
  83. tiff_tiled_rgb_contig_test_21-31_32_64.cpp
  84. tiff_tiled_rgb_contig_write_test_1-10.cpp
  85. tiff_tiled_rgb_contig_write_test_11-20.cpp
  86. tiff_tiled_rgb_contig_write_test_21-31_32_64.cpp
  87. tiff_tiled_rgb_planar_test_1-10.cpp
  88. tiff_tiled_rgb_planar_test_11-20.cpp
  89. tiff_tiled_rgb_planar_test_21-31_32_64.cpp
  90. tiff_tiled_test.cpp
  91. tiff_write_test.cpp
  92. :
  93. :
  94. : [ ac.check-library /libtiff//libtiff : <library>/libtiff//libtiff : <build>no ]
  95. ]
  96. ;
  97. explicit full ;