Sha256: 4c5aed9feb98a0cc1b975f02530bd1c9bcd81e96feed09b3af68afdd13b214e5

Contents?: true

Size: 987 Bytes

Versions: 14

Compression:

Stored size: 987 Bytes

Contents

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

class Build < Array

  def initialize
  end

  def update
    if(defined?(DEV_TASKS))
      msbuild=MSBuild.new
      #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
  end

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
dev_tasks-0.0.155 lib/build.rb
dev_tasks-0.0.154 lib/build.rb
dev_tasks-0.0.153 lib/build.rb
dev_tasks-0.0.152 lib/build.rb
dev_tasks-0.0.151 lib/build.rb
dev_tasks-0.0.150 lib/build.rb
dev_tasks-0.0.149 lib/build.rb
dev_tasks-0.0.148 lib/build.rb
dev_tasks-0.0.147 lib/build.rb
dev_tasks-0.0.146 lib/build.rb
dev_tasks-0.0.145 lib/build.rb
dev_tasks-0.0.144 lib/build.rb
dev_tasks-0.0.143 lib/build.rb
dev_tasks-0.0.142 lib/build.rb