diff --git a/lib/rscons/builder.rb b/lib/rscons/builder.rb index 210a550..b13dd49 100644 --- a/lib/rscons/builder.rb +++ b/lib/rscons/builder.rb @@ -68,19 +68,21 @@ module Rscons # needed later in the build, it can be stored in the return value from this # method, which will be passed to the {#run} method. # - # @param target [String] + # @param options [Hash] + # Options. + # @option options [String] :target # Target file name. - # @param sources [Array] + # @option options [Array] :sources # Source file name(s). - # @param env [Environment] + # @option options [Environment] :env # The Environment executing the builder. - # @param vars [Hash,VarSet] + # @option options [Hash,VarSet] :vars # Extra construction variables. # # @return [Object] # Any object that the builder author wishes to be saved and passed back # in to the {#run} method. - def setup(target, sources, env, vars) + def setup(options) end # Run the builder to produce a build target. diff --git a/lib/rscons/environment.rb b/lib/rscons/environment.rb index 3cad39b..82afdb4 100644 --- a/lib/rscons/environment.rb +++ b/lib/rscons/environment.rb @@ -395,6 +395,11 @@ module Rscons source = expand_path(source) if @build_root expand_varref(source) end.flatten + setup_info = builder.setup( + target: target, + sources: sources, + env: self, + vars: vars) @job_set.add_job(builder, target, sources, vars) end