Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84575 - trunk/libs/geometry/index/example
From: mateusz_at_[hidden]
Date: 2013-05-31 10:03:33


Author: mloskot
Date: 2013-05-31 10:03:32 EDT (Fri, 31 May 2013)
New Revision: 84575
URL: http://svn.boost.org/trac/boost/changeset/84575

Log:
[geometry] Configure build for GLUT-based visualiser of spatial index
Text files modified:
   trunk/libs/geometry/index/example/Jamfile.v2 | 34 +++++++++++++++++++++++++++++++++-
   1 files changed, 33 insertions(+), 1 deletions(-)

Modified: trunk/libs/geometry/index/example/Jamfile.v2
==============================================================================
--- trunk/libs/geometry/index/example/Jamfile.v2 (original)
+++ trunk/libs/geometry/index/example/Jamfile.v2 2013-05-31 10:03:32 EDT (Fri, 31 May 2013)
@@ -6,17 +6,49 @@
 # Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
 # http://www.boost.org/LICENSE_1_0.txt)
 
-# Usage: build as optimised for proper benchmarking:
+# Usage:
+# Build as optimised for proper benchmarking:
 # b2 variant=release threading=multi
 # b2 variant=release threading=multi link=static runtime-link=static
+#
+# Set GLUT_ROOT to installation prefix of GLUT or, for Windows,
+# it may be all-in-one directory with GLUT header and binaries.
+
+import os ;
 
 project boost-geometry-index-example
     : requirements
         <source>/boost//headers
     ;
 
+local GLUT_ROOT = [ os.environ GLUT_ROOT ] ;
+if $(GLUT_ROOT)
+{
+ local glut_name = glut ;
+ if [ os.name ] = NT
+ {
+ glut_name = glut32 ;
+ }
+
+ lib glut
+ :
+ :
+ <name>$(glut_name)
+ <search>$(GLUT_ROOT)
+ <search>$(GLUT_ROOT)/lib
+ :
+ :
+ <include>$(GLUT_ROOT)
+ <include>$(GLUT_ROOT)/include
+ ;
+}
+
 exe random_test : random_test.cpp ;
 exe benchmark : benchmark.cpp /boost//chrono ;
 exe benchmark2 : benchmark2.cpp /boost//chrono ;
 exe benchmark3 : benchmark3.cpp /boost//chrono ;
 exe benchmark_experimental : benchmark_experimental.cpp /boost//chrono ;
+if $(GLUT_ROOT)
+{
+ exe glut_vis : glut_vis.cpp glut ;
+}
\ No newline at end of file


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk