jamroot.jam 699 B

123456789101112131415161718192021222324252627282930
  1. # Copyright 2006 Ilya Sokolov
  2. #
  3. # Distributed under the Boost Software License, Version 1.0. (See
  4. # accompanying file LICENSE.txt or copy at
  5. # https://www.bfgroup.xyz/b2/LICENSE.txt)
  6. # pch ##########################################################################
  7. import pch ;
  8. local pchs ;
  9. for local hpp in [ glob-tree *.hpp ]
  10. {
  11. cpp-pch $(hpp:B) : $(hpp) : <include>include ;
  12. explicit $(hpp:B) ;
  13. pchs += $(hpp:B) ;
  14. }
  15. alias headers : $(pchs) ;
  16. # exe ##########################################################################
  17. exe hello_world
  18. : # sources
  19. headers
  20. source/hello_world.cpp
  21. : # requirements
  22. <include>include
  23. : # default build
  24. : # usage requirements
  25. ;