16 lines
352 B
Ruby
16 lines
352 B
Ruby
class MyBuilder < Rscons::Builder
|
|
def run(options)
|
|
env, target = options.values_at(:env, :target)
|
|
env.print_builder_run_message("MyBuilder #{target}", "MyBuilder #{target} command")
|
|
target
|
|
end
|
|
end
|
|
|
|
build do
|
|
Rscons::Environment.new do |env|
|
|
env.echo = :command
|
|
env.add_builder(MyBuilder.new)
|
|
env.MyBuilder("foo")
|
|
end
|
|
end
|