execute all build tests in the top-level rake context instead of spawning subprocesses

This commit is contained in:
josh committed 2013-11-05 16:11:08 -05:00
1 parent 71344b4782
commit b805e5379f
10 files changed
+135 -112

No files matched your search

-16
View File
@@ -1,16 +0,0 @@
class MySource < Rscons::Builder
def run(target, sources, cache, env, vars = {})
File.open(target, 'w') do |fh|
fh.puts <<EOF
#define THE_VALUE 5678
EOF
end
target
end
end
Rscons::Environment.new(echo: :short) do |env|
env.add_builder(MySource.new)
env.MySource('inc.h', [])
env.Program('program', Dir['*.c'])
end