Sha256: c2c20a19a74298ab0776b7400579dbfae14089c05c15599cc42ffc9ab2b4a6e6

Contents?: true

Size: 691 Bytes

Versions: 11

Compression:

Stored size: 691 Bytes

Contents

module Xcake
  # This generator generates the build phases for each target
  # in the project
  #
  class TargetBuildRuleGenerator < Generator
    def self.dependencies
      [TargetBuildPhaseGenerator]
    end

    def visit_target(target)
      EventHooks.run_hook :before_adding_build_rules, target

      native_target = @context.native_object_for(target)

      target.build_rules.each do |rule|
        EventHooks.run_hook :before_adding_custom_build_rule, rule, target

        native_build_rule = @context.native_object_for(rule)
        rule.configure_native_build_rule(native_build_rule, @context)
        native_target.build_rules << native_build_rule
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
xcake-0.13.0 lib/xcake/generator/target_build_rule_generator.rb
xcake-0.12.1 lib/xcake/generator/target_build_rule_generator.rb
xcake-0.12.0 lib/xcake/generator/target_build_rule_generator.rb
xcake-0.11.0 lib/xcake/generator/target_build_rule_generator.rb
xcake-0.10.0 lib/xcake/generator/target_build_rule_generator.rb
xcake-0.9.4 lib/xcake/generator/target_build_rule_generator.rb
xcake-0.9.3 lib/xcake/generator/target_build_rule_generator.rb
xcake-0.9.2 lib/xcake/generator/target_build_rule_generator.rb
xcake-0.9.1 lib/xcake/generator/target_build_rule_generator.rb
xcake-0.9.0 lib/xcake/generator/target_build_rule_generator.rb
xcake-0.8.13 lib/xcake/generator/target_build_rule_generator.rb