Sha256: ed03285f3b55335a42bbb14699d86252d2a466b3e1a708d68cb5a70d01001a63

Contents?: true

Size: 1.09 KB

Versions: 12

Compression:

Stored size: 1.09 KB

Contents

puts __FILE__ if defined?(DEBUG)

desc 'performs build commands'
task :build do Tasks.execute_task :build;end

SLN_FILES=FileList.new('*.sln','*/*.sln','*/*/*.sln')

class Build < Array
	def update

		changed = true
        if(changed)
			Dir.glob('*.gemspec'){|gemspec|
	    		add "gem build #{gemspec}" if !File.exist?(Gemspec.gemfile gemspec)
	    	}
	    	
	    	SLN_FILES.each{|sln_file|
	    		vs_version=MSBuild.get_vs_version(sln_file)
				if(MSBuild.has_version?(vs_version))
					MSBuild.get_configurations(sln_file).each{ |configuration|
		      			MSBuild.get_platforms(sln_file).each{|platform|
			    			#Console.debug "configuration='#{configuration}', platform='#{platform}'"
		        			self.add "\"#{MSBuild.get_version(vs_version)}\" \"#{sln_file}\" /nologo /p:Configuration=#{configuration} /p:Platform=\"#{platform}\""
		      			}
		    		}
	            else
	                puts "version #{vs_version} not found for MsBuild"
	                puts "MSBUILD[:#{vs_version}]='PATH_TO_MSBUILD' may be used to specify msbuild path."
				end
	    	}
	    end
	end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dev-2.0.157 lib/tasks/build.rb
dev-2.0.156 lib/tasks/build.rb
dev-2.0.155 lib/tasks/build.rb
dev-2.0.154 lib/tasks/build.rb
dev-2.0.153 lib/tasks/build.rb
dev-2.0.152 lib/tasks/build.rb
dev-2.0.151 lib/tasks/build.rb
dev-2.0.150 lib/tasks/build.rb
dev-2.0.149 lib/tasks/build.rb
dev-2.0.148 lib/tasks/build.rb
dev-2.0.147 lib/tasks/build.rb
dev-2.0.146 lib/tasks/build.rb