lib/xcake/generator/project_structure_generator.rb in xcake-0.6.19 vs lib/xcake/generator/project_structure_generator.rb in xcake-0.6.20
- old
+ new
@@ -5,28 +5,22 @@
#
# 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)
+ puts 'Resolving Project...'
- puts "Resolving Project..."
-
@project = project
-
- @project.configuration :Debug, :debug if @project.configurations_of_type(:debug).count == 0
- @project.configuration :Release, :release if @project.configurations_of_type(:release).count == 0
end
def leave_project(project)
end
def visit_target(target)
-
- puts "Resolving target #{target.name}..."
+ puts "Resolving target #{target}..."
@project.all_configurations.each do |c|
target.configuration(c.name, c.type)
end
end