Jamfile.v2 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Boost.Wave: A Standard compliant C++ preprocessor library
  2. #
  3. # Boost Wave Library Build Jamfile
  4. #
  5. # http://www.boost.org/
  6. #
  7. # Copyright (c) 2001-2011 Hartmut Kaiser. Distributed under the Boost
  8. # Software License, Version 1.0. (See accompanying file
  9. # LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  10. project boost/wave
  11. : requirements
  12. <link>shared:<define>BOOST_ALL_DYN_LINK=1
  13. <link>static:<define>BOOST_THREAD_USE_LIB=1
  14. <toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
  15. <toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
  16. : source-location ../src
  17. ;
  18. SOURCES =
  19. instantiate_cpp_exprgrammar
  20. instantiate_cpp_grammar
  21. instantiate_cpp_literalgrs
  22. instantiate_defined_grammar
  23. instantiate_predef_macros
  24. instantiate_re2c_lexer
  25. instantiate_re2c_lexer_str
  26. token_ids
  27. wave_config_constant
  28. cpplexer/re2clex/aq
  29. cpplexer/re2clex/cpp_re
  30. ;
  31. lib boost_wave
  32. :
  33. $(SOURCES)
  34. ../../filesystem/build//boost_filesystem
  35. ../../thread/build//boost_thread
  36. ../../date_time/build//boost_date_time
  37. ;
  38. for local source in $(SOURCES)
  39. {
  40. local requirements ;
  41. # workaround for compiler bug
  42. requirements += <toolset-msvc:version>7.1:<rtti>off ;
  43. requirements += <toolset-msvc:version>7.1_stlport4:<rtti>off ;
  44. if $(source) in cpplexer/re2clex/cpp_re
  45. {
  46. requirements += <warnings>off ;
  47. }
  48. if $(source) in instantiate_re2c_lexer instantiate_re2c_lexer_str
  49. {
  50. requirements += <toolset>msvc-8.0:<define>_CRT_SECURE_NO_WARNINGS ;
  51. }
  52. obj $(source) : $(source).cpp : $(requirements) ;
  53. }
  54. boost-install boost_wave ;