Jamfile.v2 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Boost.Geometry (aka GGL, Generic Geometry Library)
  2. #
  3. # Copyright (c) 2013 Mateusz Loskot, London, UK.
  4. #
  5. # Use, modification and distribution is subject to the Boost Software License,
  6. # Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  7. # http://www.boost.org/LICENSE_1_0.txt)
  8. # Usage:
  9. # Build as optimised for proper benchmarking:
  10. # b2 variant=release threading=multi
  11. # b2 variant=release threading=multi link=static runtime-link=static
  12. #
  13. # Set GLUT_ROOT to installation prefix of GLUT or, for Windows,
  14. # it may be all-in-one directory with GLUT header and binaries.
  15. import os ;
  16. project boost-geometry-index-example
  17. : requirements
  18. <implicit-dependency>/boost//headers
  19. ;
  20. local GLUT_ROOT = [ os.environ GLUT_ROOT ] ;
  21. if $(GLUT_ROOT)
  22. {
  23. local glut_name = glut ;
  24. if [ os.name ] = NT
  25. {
  26. glut_name = glut32 ;
  27. }
  28. lib glut
  29. :
  30. :
  31. <name>$(glut_name)
  32. <search>$(GLUT_ROOT)
  33. <search>$(GLUT_ROOT)/lib
  34. :
  35. :
  36. <include>$(GLUT_ROOT)
  37. <include>$(GLUT_ROOT)/include
  38. ;
  39. }
  40. exe random_test : random_test.cpp ;
  41. link serialize.cpp /boost//serialization : ;
  42. link benchmark.cpp /boost//chrono : <threading>multi ;
  43. link benchmark2.cpp /boost//chrono : <threading>multi ;
  44. link benchmark3.cpp /boost//chrono : <threading>multi ;
  45. link benchmark_experimental.cpp /boost//chrono : <threading>multi ;
  46. if $(GLUT_ROOT)
  47. {
  48. link glut_vis.cpp glut ;
  49. }