# Boost.Geometry Index
#
# Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland.
#
# Use, modification and distribution is subject to 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)

rule test_all
{
   local all_rules = ;

   for local fileb in [ glob *.cpp ]
   {
      all_rules += [ run $(fileb) /boost/thread//boost_thread
      :  # additional args
      :  # test-files
      :  # requirements
        <toolset>acc:<linkflags>-lrt
        <toolset>acc-pa_risc:<linkflags>-lrt
        <target-os>hpux,<toolset>gcc:<linkflags>"-Wl,+as,mpas"
#        <toolset>gcc-mingw:<linkflags>"-lole32 -loleaut32 -lpsapi -ladvapi32"
        <toolset>gcc,<target-os>windows:<linkflags>"-lole32 -loleaut32 -lpsapi -ladvapi32"
        <target-os>windows,<toolset>clang:<linkflags>"-lole32 -loleaut32 -lpsapi -ladvapi32"
        <toolset>msvc:<cxxflags>/bigobj
        <target-os>windows,<toolset>intel:<cxxflags>/bigobj
        <target-os>linux:<linkflags>"-lrt"
        <library>/boost/interprocess//boost_interprocess
      ] ;
   }

   return $(all_rules) ;
}

test-suite boost-geometry-index-rtree-interprocess : [ test_all r ] : <threading>multi ;
