summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/statechart/example/Jamfile.v2
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:20 +0000
commit483eb2f56657e8e7f419ab1a4fab8dce9ade8609 (patch)
treee5d88d25d870d5dedacb6bbdbe2a966086a0a5cf /src/boost/libs/statechart/example/Jamfile.v2
parentInitial commit. (diff)
downloadceph-483eb2f56657e8e7f419ab1a4fab8dce9ade8609.tar.xz
ceph-483eb2f56657e8e7f419ab1a4fab8dce9ade8609.zip
Adding upstream version 14.2.21.upstream/14.2.21upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/boost/libs/statechart/example/Jamfile.v2')
-rw-r--r--src/boost/libs/statechart/example/Jamfile.v275
1 files changed, 75 insertions, 0 deletions
diff --git a/src/boost/libs/statechart/example/Jamfile.v2 b/src/boost/libs/statechart/example/Jamfile.v2
new file mode 100644
index 00000000..2a4851ca
--- /dev/null
+++ b/src/boost/libs/statechart/example/Jamfile.v2
@@ -0,0 +1,75 @@
+##############################################################################
+# Copyright 2005-2006 Andreas Huber Doenni
+# Distributed under the Boost Software License, Version 1.0. (See accompany-
+# ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+##############################################################################
+
+project libs/statechart/example ;
+
+local custom = <define>CUSTOMIZE_MEMORY_MANAGEMENT ;
+local native = <define>BOOST_STATECHART_USE_NATIVE_RTTI ;
+
+rule independent-obj-build (
+ name : directory : cpp-sources + : requirements * )
+{
+ local objs ;
+
+ for local cpp-source in $(cpp-sources)
+ {
+ obj $(name)$(cpp-source)
+ : $(directory)/$(cpp-source).cpp : $(requirements) ;
+ objs += $(name)$(cpp-source) ;
+ }
+
+ return $(objs) ;
+}
+
+rule statechart-st-example-build (
+ name : directory : cpp-sources + : requirements * )
+{
+ exe $(name) : [ independent-obj-build $(name)
+ : $(directory) : $(cpp-sources)
+ # Some platforms have either problems with the automatic
+ # detection of the threading mode (e.g. vc-7_1 &
+ # gcc >= 3.4.0) or don't support single-threaded mode
+ # (e.g. vc-8_0). We therefore manually turn MT
+ # off here
+ : <threading>single <define>BOOST_DISABLE_THREADS $(requirements) ] ;
+
+ return $(name) ;
+}
+
+rule statechart-mt-example-build (
+ name : directory : cpp-sources + : requirements * )
+{
+ exe $(name) : [ independent-obj-build $(name)
+ : $(directory) : $(cpp-sources)
+ : <threading>multi $(requirements) ]
+ ../../thread/build//boost_thread ;
+
+ return $(name) ;
+}
+
+stage run
+ : [ statechart-st-example-build BitMachine : BitMachine : BitMachine ]
+ [ statechart-st-example-build Camera
+ : Camera : Camera Configuring Main Shooting ]
+ [ statechart-st-example-build Handcrafted : Handcrafted : Handcrafted ]
+ [ statechart-st-example-build KeyboardNormal : Keyboard : Keyboard ]
+ [ statechart-st-example-build KeyboardNative
+ : Keyboard : Keyboard : $(native) ]
+ [ statechart-st-example-build PingPongSingle
+ : PingPong : PingPong Player : $(custom) ]
+ [ statechart-mt-example-build PingPongMulti1
+ : PingPong : PingPong Player : $(custom) ]
+ [ statechart-mt-example-build PingPongMulti2
+ : PingPong : PingPong Player : $(custom) <define>USE_TWO_THREADS ]
+ [ statechart-st-example-build StopWatch : StopWatch : StopWatch ]
+ [ statechart-st-example-build StopWatch2 : StopWatch : StopWatch2 ]
+ [ statechart-st-example-build PerformanceNormal
+ : Performance : Performance ]
+ [ statechart-st-example-build PerformanceCustom
+ : Performance : Performance : $(custom) ]
+ [ statechart-st-example-build PerformanceNative
+ : Performance : Performance : $(native) ]
+ : <install-dependencies>on <install-type>EXE <install-type>SHARED_LIB ;