Sha256: 36f48e4c04020fe982dacb277e5f60e34d09e6b8677de151f3457d47cf7fd137

Contents?: true

Size: 953 Bytes

Versions: 8

Compression:

Stored size: 953 Bytes

Contents

module Xcake
  # This class handles resolving the structure
  # of a project. Making sure that the structure of the
  # project is one Xcode can open and makes sense.
  #
  # As part of this it will create default configurations
  # if none are provided and will make sure both the project
  # and targets have all of the same configurations.
  class ProjectStructureGenerator < Generator
    attr_accessor :project

    def visit_project(project)
      EventHooks.run_hook :before_resolving_project_structure, project
      @project = project
    end

    def leave_project(project)
    end

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

      @project.all_configurations.each do |c|
        target.configuration(c.name, c.type)
      end
    end

    def leave_target(target)
    end

    def visit_configuration(configuration)
    end

    def leave_configuration(configuration)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xcake-0.8.1 lib/xcake/generator/project_structure_generator.rb
xcake-0.7.1 lib/xcake/generator/project_structure_generator.rb
xcake-0.7.0 lib/xcake/generator/project_structure_generator.rb
xcake-0.6.25 lib/xcake/generator/project_structure_generator.rb
xcake-0.6.24 lib/xcake/generator/project_structure_generator.rb
xcake-0.6.23 lib/xcake/generator/project_structure_generator.rb
xcake-0.6.22 lib/xcake/generator/project_structure_generator.rb
xcake-0.6.21 lib/xcake/generator/project_structure_generator.rb