rscons/build_tests/simple/builder_no_sources.rb
Josh Holtrop f8e6666a2c Add 'build' DSL method.
Disallow processing Environments until configuration is performed.
2018-12-17 22:14:35 -05:00

12 lines
221 B
Ruby

class TestBuilder < Rscons::Builder
def run(target, sources, cache, env, vars)
target
end
end
build do
Rscons::Environment.new do |env|
env.add_builder(TestBuilder.new)
env.TestBuilder("file")
end
end