Jamfile.v2 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #
  2. # Copyright Andrey Semashev 2007 - 2015.
  3. # Distributed under the Boost Software License, Version 1.0.
  4. # (See accompanying file LICENSE_1_0.txt or copy at
  5. # http://www.boost.org/LICENSE_1_0.txt)
  6. #
  7. import ../../build/log-platform-config ;
  8. project
  9. : requirements
  10. <conditional>@log-platform-config.set-platform-defines
  11. <link>shared:<define>BOOST_ALL_DYN_LINK
  12. <toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS
  13. <toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
  14. <toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS
  15. <toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
  16. <toolset>msvc:<cxxflags>/bigobj
  17. <toolset>msvc:<cxxflags>/wd4503 # decorated name length exceeded, name was truncated
  18. <toolset>msvc:<cxxflags>/wd4456 # declaration of 'A' hides previous local declaration
  19. <toolset>msvc:<cxxflags>/wd4459 # declaration of 'A' hides global declaration
  20. <toolset>msvc:<cxxflags>/wd4003 # not enough actual parameters for macro 'X' - caused by BOOST_PP_IS_EMPTY and BOOST_PP_IS_BEGIN_PARENS which are used by Fusion
  21. <toolset>intel-win:<define>_SCL_SECURE_NO_WARNINGS
  22. <toolset>intel-win:<define>_SCL_SECURE_NO_DEPRECATE
  23. <toolset>intel-win:<define>_CRT_SECURE_NO_WARNINGS
  24. <toolset>intel-win:<define>_CRT_SECURE_NO_DEPRECATE
  25. <toolset>darwin:<cxxflags>-ftemplate-depth-1024
  26. <toolset>gcc:<cxxflags>-ftemplate-depth-1024
  27. <toolset>gcc:<cxxflags>-fno-strict-aliasing # avoids strict aliasing violations in other Boost components
  28. # Disable Intel warnings:
  29. # warning #177: function "X" was declared but never referenced
  30. # warning #780: using-declaration ignored -- it refers to the current namespace
  31. # warning #2196: routine is both "inline" and "noinline"
  32. # remark #1782: #pragma once is obsolete. Use #ifndef guard instead.
  33. # remark #193: zero used for undefined preprocessing identifier "X"
  34. # remark #304: access control not specified ("public" by default)
  35. # remark #981: operands are evaluated in unspecified order
  36. # remark #1418: external function definition with no prior declaration
  37. # Mostly comes from Boost.Phoenix: warning #411: class "X" defines no constructor to initialize the following: reference member "Y"...
  38. # warning #734: "X" (declared at line N of "file.hpp"), required for copy that was eliminated, is inaccessible
  39. # warning #279: controlling expression is constant
  40. <toolset>intel-win:<cxxflags>"/Qwd177,780,2196,1782,193,304,981,1418,411,734,279"
  41. <toolset>intel-linux:<cxxflags>"-wd177,780,2196,1782,193,304,981,1418,411,734,279"
  42. <toolset>intel-darwin:<cxxflags>"-wd177,780,2196,1782,193,304,981,1418,411,734,279"
  43. <library>/boost/log//boost_log
  44. <library>/boost/log//boost_log_setup
  45. <library>/boost/date_time//boost_date_time
  46. <library>/boost/filesystem//boost_filesystem
  47. <library>/boost/locale//boost_locale
  48. <library>/boost/thread//boost_thread
  49. <threading>multi
  50. # does not build on VxWorks due to lack of boost::locale support
  51. <target-os>vxworks:<build>no
  52. ;
  53. exe wide_char
  54. : main.cpp
  55. ;