Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75201 - sandbox/multiprecision/libs/multiprecision/example/dragons_example
From: pbristow_at_[hidden]
Date: 2011-10-31 13:47:37


Author: pbristow
Date: 2011-10-31 13:47:36 EDT (Mon, 31 Oct 2011)
New Revision: 75201
URL: http://svn.boost.org/trac/boost/changeset/75201

Log:
jamfile to run dragon_example. Note source files are included in dragon_example.cpp in this version
Added:
   sandbox/multiprecision/libs/multiprecision/example/dragons_example/jamfile.v2 (contents, props changed)

Added: sandbox/multiprecision/libs/multiprecision/example/dragons_example/jamfile.v2
==============================================================================
--- (empty file)
+++ sandbox/multiprecision/libs/multiprecision/example/dragons_example/jamfile.v2 2011-10-31 13:47:36 EDT (Mon, 31 Oct 2011)
@@ -0,0 +1,67 @@
+# multiprecision/libs/multiprecision/example/dragons_example/jamfile.v2
+
+# Runs some examples of 'Dragons' - how to go wrong - using bjam.
+
+# Copyright Paul A. Bristow 2011
+
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+import testing ;
+
+project
+ : requirements
+ <include>../../../..
+ <include>../../../../boost/ # MP Headers.
+ <define>BOOST_ALL_NO_LIB=1 # Why?
+ #<define>BOOST_MULTIPRECISION_BACKEND_MP_FLOAT_TYPE_EFX
+ # Could also be BOOST_MULTIPRECISION_BACKEND_MP_FLOAT_TYPE_GMP or BOOST_MULTIPRECISION_BACKEND_MP_FLOAT_TYPE_MFPR.
+ # This is defined in the source dragon_example.cpp.
+ # <define>BOOST_MULTIPRECISION_BACKEND_MP_FLOAT_DIGITS10=50 # Overriding the default of 100 for testing purposes.
+ # But has no effect without bjam -a option?
+
+ <toolset>gcc:<cxxflags>-Wextra
+ <toolset>gcc:<cxxflags>-Wshadow
+ #<toolset>gcc:<warnings-as-errors>on
+ <toolset>gcc:<cxxflags>-Wno-long-long
+ <toolset>gcc:<cxxflags>-Wcast-align
+ #<toolset>intel:<warnings-as-errors>on
+
+ # Warning suppression:
+ <toolset>msvc:<cxxflags>/wd4224 # nonstandard extension used : formal parameter 'arg' was previously defined as a type.
+ <toolset>msvc:<cxxflags>/wd4127 # expression is constant.
+ <toolset>msvc:<cxxflags>/wd4189 # local variable is initialized but not referenced.
+
+ -<toolset>msvc:<cxxflags>/Za # Requires MS extensions, so explictly cancel /Za to *enable extensions*.
+ <toolset>msvc:<asynch-exceptions>on # Needed for Boost.Test
+ <toolset>msvc:<warnings>all
+ # <toolset>msvc:<warnings-as-errors>on
+ <toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS
+ <toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
+ <toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
+ <toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS
+
+ ;
+
+ # Dragons example from Paul Bristow.
+ test-suite "multiprecision examples" :
+ [
+ run ./dragons_example.cpp
+
+ # Source files required to link are included in dragons_example.cpp.
+ #../../src/backends/float/mp_float.cpp
+ #../../src/backends/float/mp_float_base.cpp
+ #../../src/backends/float/efx/mp_float_efx.cpp
+ #../../src/functions/constants/constants.cpp
+ #../../src/functions/elementary/elementary_complex.cpp
+ #../../src/functions/elementary/elementary_math.cpp
+ #../../src/functions/elementary/elementary_hyper_g.cpp
+ #../../src/functions/elementary/elementary_trans.cpp
+ #../../src/functions/elementary/elementary_trig.cpp
+
+ ]
+ ;
+
+# Output is at
+
+# /boost-sandbox/multiprecision/libs/multiprecision/example/dragons_example/bin/dragons_example.test/msvc-10.0/debug/asynch-exceptions-on/threading-multi/dragons_example.output


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