Sha256: a90e92f873bccd5759e97683fa93c4e17efff857e2d70a5c74b7dfd56d921c1f

Contents?: true

Size: 933 Bytes

Versions: 46

Compression:

Stored size: 933 Bytes

Contents

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

class Build < CommandArray

  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
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
dev_tasks-1.0.35 lib/build.rb
dev_tasks-1.0.34 lib/build.rb
dev_tasks-1.0.33 lib/build.rb
dev_tasks-1.0.31 lib/build.rb
dev_tasks-1.0.30 lib/build.rb
dev_tasks-1.0.29 lib/build.rb
dev_tasks-1.0.28 lib/build.rb
dev_tasks-1.0.27 lib/build.rb
dev_tasks-1.0.26 lib/build.rb
dev_tasks-1.0.25 lib/build.rb
dev_tasks-1.0.24 lib/build.rb
dev_tasks-1.0.23 lib/build.rb
dev_tasks-1.0.22 lib/build.rb
dev_tasks-1.0.21 lib/build.rb
dev_tasks-1.0.20 lib/build.rb
dev_tasks-1.0.19 lib/build.rb
dev_tasks-1.0.18 lib/build.rb
dev_tasks-1.0.17 lib/build.rb
dev_tasks-1.0.16 lib/build.rb
dev_tasks-1.0.15 lib/build.rb