Sha256: ac5a9215fc8ccdb37810e5b34a8d6cce3b21bec6e6e1c0842b99c1d1741b6612

Contents?: true

Size: 394 Bytes

Versions: 24

Compression:

Stored size: 394 Bytes

Contents

module Xcake
  class TargetDependencyGenerator < Generator
    def self.dependencies
      [TargetGenerator]
    end

    def visit_target(target)
      native_target = @context.native_object_for(target)
      target.target_dependencies.map do |dep|
        native_dependency = @context.native_object_for(dep)
        native_target.add_dependency(native_dependency)
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
xcake-0.6.6 lib/xcake/generator/target_dependency_generator.rb
xcake-0.6.5 lib/xcake/generator/target_dependency_generator.rb
xcake-0.6.4 lib/xcake/generator/target_dependency_generator.rb
xcake-0.6.2 lib/xcake/generator/target_dependency_generator.rb