Jamfile.v2 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # (C) Copyright 2010: Tim Blechmann
  2. # Distributed under the Boost Software License, Version 1.0.
  3. # (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. import testing ;
  5. lib boost_chrono ;
  6. lib boost_interprocess ;
  7. lib boost_system ;
  8. lib boost_thread ;
  9. lib boost_unit_test_framework ;
  10. project
  11. : source-location .
  12. : requirements
  13. <library>../../test/build//boost_unit_test_framework
  14. <library>../../atomic/build//boost_atomic
  15. ;
  16. rule test_all
  17. {
  18. local all_rules = ;
  19. for local fileb in [ glob *.cpp ]
  20. {
  21. all_rules += [ run $(fileb)
  22. : # additional args
  23. : # test-files
  24. : # requirements
  25. <toolset>acc:<linkflags>-lrt
  26. <toolset>acc-pa_risc:<linkflags>-lrt
  27. <target-os>windows,<toolset>gcc:<linkflags>"-lole32 -loleaut32 -lpsapi -ladvapi32"
  28. <host-os>hpux,<toolset>gcc:<linkflags>"-Wl,+as,mpas"
  29. <library>../../thread/build//boost_thread/
  30. <threading>multi
  31. <link>static
  32. ] ;
  33. }
  34. return $(all_rules) ;
  35. }
  36. test-suite lockfree : [ test_all r ] : <threading>multi ;