Sha256: 33db102dfcf5c6c0c2f3e8056c87b9be62cc3db9bbf0e2b01a07e8f261466014

Contents?: true

Size: 1.07 KB

Versions: 31

Compression:

Stored size: 1.07 KB

Contents

require_relative './color.rb'
require_relative './msbuild.rb'

class Build < Array

  def initialize
    # Gem builds, `gem build dev_tasks.spec`
	Dir.glob('*.gemspec') {|f|
	  self.add "gem build #{f}"
	}
	# .sln builds, `"C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe" "MySolution.sln"
	msbuild=MSBuild.new
	Dir.glob('**/*.sln'){|f|
	  vs_version=MSBuild.get_vs_version(f)
	  if File.exist? msbuild[vs_version]
	    MSBuild.get_configurations(f).each{ |configuration|
		  MSBuild.get_platforms(f).each{|platform|
		    self.add "\"#{msbuild[vs_version]}\" \"#{f}\" /nologo /p:Configuration=#{configuration} /p:Platform=\"#{platform}\""
		  }
		  #self.add "\"#{msbuild[vs_version]}\" \"#{f}\" /nologo /p:Configuration=#{configuration} /p:Platform=\"Any CPU\""
		}
	    #self.add "\"#{msbuild[vs_version]}\" \"#{f}\" /nologo /p:Configuration=Release /p:Platform=\"Any CPU\""
	  end
	}
  end

  #def self.msbuild
  #  "C:\\Program Files (x86)\\MSBuild\\12.0\\bin\\msbuild.exe"
  #end

  def add command
    self << command if(!include?(command))
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
dev_tasks-0.0.141 lib/build.rb
dev_tasks-0.0.140 lib/build.rb
dev_tasks-0.0.139 lib/build.rb
dev_tasks-0.0.138 lib/build.rb
dev_tasks-0.0.137 lib/build.rb
dev_tasks-0.0.136 lib/build.rb
dev_tasks-0.0.135 lib/build.rb
dev_tasks-0.0.134 lib/build.rb
dev_tasks-0.0.133 lib/build.rb
dev_tasks-0.0.132 lib/build.rb
dev_tasks-0.0.131 lib/build.rb
dev_tasks-0.0.130 lib/build.rb
dev_tasks-0.0.129 lib/build.rb
dev_tasks-0.0.128 lib/build.rb
dev_tasks-0.0.127 lib/build.rb
dev_tasks-0.0.126 lib/build.rb
dev_tasks-0.0.125 lib/build.rb
dev_tasks-0.0.124 lib/build.rb
dev_tasks-0.0.123 lib/build.rb
dev_tasks-0.0.122 lib/build.rb