mirror of
https://github.com/boostorg/statechart.git
synced 2026-01-24 18:32:22 +00:00
63 lines
2.6 KiB
Plaintext
63 lines
2.6 KiB
Plaintext
##############################################################################
|
|
# (c) Copyright Andreas Huber Doenni 2004-2006
|
|
# 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)
|
|
##############################################################################
|
|
|
|
subproject libs/statechart/example ;
|
|
|
|
# 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
|
|
local st-requirements = <threading>single <define>BOOST_DISABLE_THREADS ;
|
|
local custom = <define>CUSTOMIZE_MEMORY_MANAGEMENT ;
|
|
local native = <define>BOOST_STATECHART_USE_NATIVE_RTTI ;
|
|
|
|
template statechart-common-options : : <include>$(BOOST_ROOT) ;
|
|
|
|
rule statechart-st-example-build (
|
|
name : directory : cpp-sources + : requirements * )
|
|
{
|
|
exe $(name)
|
|
: $(directory)/$(cpp-sources).cpp <template>statechart-common-options
|
|
: $(st-requirements) $(requirements) ;
|
|
|
|
return <exe>$(name) ;
|
|
}
|
|
|
|
rule statechart-mt-example-build (
|
|
name : directory : cpp-sources + : requirements * )
|
|
{
|
|
exe $(name)
|
|
: $(directory)/$(cpp-sources).cpp <lib>../../thread/build/boost_thread
|
|
<template>statechart-common-options
|
|
: <threading>multi $(requirements) ;
|
|
|
|
return <exe>$(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 : $(custom) ]
|
|
[ statechart-mt-example-build PingPongMulti1
|
|
: PingPong : PingPong : $(custom) ]
|
|
[ statechart-mt-example-build PingPongMulti2
|
|
: PingPong : PingPong : $(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) ]
|
|
: common-variant-tag
|
|
<target>stage
|
|
<target>all ; |