Jamfile.v2 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright ohn Maddock 2012
  2. # Distributed under the Boost Software License, Version 1.0.
  3. # (See accompanying file LICENSE_1_0.txt or copy at
  4. # http://www.boost.org/LICENSE_1_0.txt.
  5. import pch ;
  6. project
  7. : requirements
  8. <toolset>acc:<cxxflags>+W2068,2461,2236,4070,4069
  9. <toolset>intel-win:<cxxflags>-nologo
  10. <toolset>intel-win:<linkflags>-nologo
  11. #<toolset>intel-linux:<pch>off
  12. <toolset>intel-darwin:<pch>off
  13. <toolset>msvc:<warnings>all
  14. <toolset>msvc:<asynch-exceptions>on
  15. <toolset>msvc:<cxxflags>/wd4996
  16. <toolset>msvc:<cxxflags>/wd4511 # copy constructor could not be generated
  17. <toolset>msvc:<cxxflags>/wd4512
  18. <toolset>msvc:<cxxflags>/wd4610
  19. <toolset>msvc:<cxxflags>/wd4510
  20. <toolset>msvc:<cxxflags>/wd4127
  21. <toolset>msvc:<cxxflags>/wd4701 # needed for lexical cast - temporary.
  22. <toolset>msvc:<cxxflags>/wd4189 # local variable is initialized but not referenced
  23. <toolset>msvc-7.1:<pch>off
  24. <toolset>borland:<runtime-link>static
  25. <include>../../../..
  26. # For simplicities sake, make everything a static lib:
  27. <link>static
  28. <define>BOOST_ALL_NO_LIB=1
  29. <include>.
  30. ;
  31. cpp-pch pch : pch.hpp ;
  32. path-constant here : . ;
  33. lib test_instances : [ GLOB $(here) : *.cpp ] pch
  34. : <link>static ;