rscons/build_tests/typical/echo_command_string.rb
Josh Holtrop b882f8de99 Rework builder interface to only use #run method - close #91
The builder's #run method will be called repeatedly until it returns
true or false. The Builder#wait_for method can be used to cause a
builder to wait for a Thread, Command, or another Builder.
2019-02-17 22:08:39 -05:00

15 lines
290 B
Ruby

class MyBuilder < Rscons::Builder
def run(options)
@env.print_builder_run_message("MyBuilder #{@target}", "MyBuilder #{@target} command")
true
end
end
build do
Environment.new do |env|
env.echo = :command
env.add_builder(MyBuilder)
env.MyBuilder("foo")
end
end