lib/build.rb in dev_commands-0.0.19 vs lib/build.rb in dev_commands-0.0.20
- old
+ new
@@ -3,29 +3,18 @@
Dir.glob('*.gemspec'){|gemspec|
add "gem build #{gemspec}"
}
Dir.glob('**/*.sln'){|sln_file|
vs_version=MSBuild.get_vs_version(sln_file)
+ if(defined?(MSBUILD))
+ if(MSBUILD.has_key?(vs_version))
+ MSBuild.get_configurations(f).each{ |configuration|
+ MSBuild.get_platforms(f).each{|platform|
+ Console.debug "configuration='#{configuration}', platform='#{platform}'"
+ self.add "\"#{MSBUILD[vs_version]}\" \"#{f}\" /nologo /p:Configuration=#{configuration} /p:Platform=\"#{platform}\""
+ }
+ }
+ end
+ end
}
-
-
-
end
-end
-
-
-#glob='**/*.{gemspec,sln}'
- #glob=DEV_TASKS[:build_glob] if(defined?(DEV_TASKS)) && DEV_TASKS.has_key?(:build_glob)
-# DEV_TASKS[:files][:build].each {|f|
-# self.add "gem build #{f}" if(f.include?('.gemspec'))
-# if(f.include?('.sln'))
-# vs_version=MSBuild.get_vs_version(f)
-# if File.exists? msbuild[vs_version]
-# MSBuild.get_configurations(f).each{ |configuration|
-# MSBuild.get_platforms(f).each{|platform|
-# Console.debug "configuration='#{configuration}', platform='#{platform}'"
-# self.add "\"#{msbuild[vs_version]}\" \"#{f}\" /nologo /p:Configuration=#{configuration} /p:Platform=\"#{platform}\""
-# }
-# }
-# end
-# end
-# }
+end
\ No newline at end of file