Jamfile.v2 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Copyright (C) 2006-2009, 2012 Alexander Nasonov
  2. # Copyright (C) 2012 Lorenzo Caminiti
  3. # Distributed under the Boost Software License, Version 1.0
  4. # (see accompanying file LICENSE_1_0.txt or a copy at
  5. # http://www.boost.org/LICENSE_1_0.txt)
  6. # Home at http://www.boost.org/libs/scope_exit
  7. import testing ;
  8. import ../../config/checks/config : requires ;
  9. rule run-vaseq ( target : requirements * )
  10. {
  11. run $(target).cpp : : : $(requirements) ;
  12. run $(target)_seq.cpp : : : $(requirements) ;
  13. run $(target)_seq_nova.cpp : : : $(requirements) ;
  14. }
  15. rule run-typeof ( native_target emulation_target )
  16. {
  17. run $(native_target).cpp : : : <define>BOOST_TYPEOF_NATIVE ;
  18. run $(native_target).cpp : : : <define>BOOST_TYPEOF_EMULATION :
  19. $(emulation_target) : ;
  20. }
  21. rule compile-fail-typeof ( native_target emulation_target )
  22. {
  23. compile-fail $(native_target).cpp : <define>BOOST_TYPEOF_NATIVE ;
  24. compile-fail $(native_target).cpp : <define>BOOST_TYPEOF_EMULATION :
  25. $(emulation_target) : ;
  26. }
  27. run-vaseq same_line ;
  28. run-vaseq world ;
  29. run-vaseq world_checkpoint ;
  30. run-vaseq world_checkpoint_all : [ requires cxx11_lambdas ] ;
  31. run-vaseq world_this ;
  32. run-vaseq world_tpl ;
  33. run world_void.cpp ;
  34. run world_void_nova.cpp ;
  35. run-typeof native emulation ;
  36. run-typeof native_tpl emulation_tpl ;
  37. run-typeof native_this emulation_this ;
  38. run-typeof native_this_tpl emulation_this_tpl ;
  39. compile-fail-typeof native_const_error emulation_const_error ;
  40. compile-fail-typeof native_cv_error emulation_cv_error ;
  41. run native_tu_test.cpp native_tu1.cpp native_tu2.cpp : : :
  42. <define>BOOST_TYPEOF_NATIVE ;
  43. run native_tu_test.cpp native_tu1.cpp native_tu2.cpp : : :
  44. <define>BOOST_TYPEOF_EMULATION : emulation_tu_test : ;