pass extra construction variables to Builder#run()

This commit is contained in:
josh committed 2013-09-12 22:57:22 -04:00
1 parent 75f2418570
commit 837dff9374
5 files changed
+18 -13

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
class MySource < Rscons::Builder
def run(target, sources, cache, env)
def run(target, sources, cache, env, vars = {})
File.open(target, 'w') do |fh|
fh.puts <<EOF
#define THE_VALUE 5678