Rework builder features to be returned by Builder#features instead of taken into account by Builder#produces?

This commit is contained in:
josh committed 2017-06-08 11:07:01 -04:00
1 parent b7f609b7e8
commit 010607d3b0
6 files changed
+113 -76

No files matched your search

+15 -25
View File
@@ -24,6 +24,14 @@ module Rscons
{}
end
# Return a set of build features that this builder provides.
#
# @return [Array<String>]
# Set of build features that this builder provides.
def features
[]
end
# Create a BuildTarget object for this build target.
#
# Builder sub-classes can override this method to manipulate parameters
@@ -47,35 +55,17 @@ module Rscons
# Return whether this builder object is capable of producing a given target
# file name from a given source file name.
#
# @overload produces?(target, source, env)
#
# @param target [String]
# The target file name.
# @param source [String]
# The source file name.
# @param env [Environment]
# The Environment.
#
# @overload produces?(options)
#
# @since 1.10.0
#
# @param options [Hash]
# Options.
# @option options [String] :target
# Target file name.
# @option options [String] :source
# Source file name.
# @option options [Environment] :env
# The Environment.
# @option options [Hash] :features
# Features that this builder must satisfy.
# See {Environment#register_builds}.
# @param target [String]
# The target file name.
# @param source [String]
# The source file name.
# @param env [Environment]
# The Environment.
#
# @return [Boolean]
# Whether this builder object is capable of producing a given target
# file name from a given source file name.
def produces?(options)
def produces?(target, source, env)
false
end