Sha256: 9b72126c160a77c9c78b2b6aee9300d36f71719bf54fd6ee82851f4c78259594

Contents?: true

Size: 1.02 KB

Versions: 59

Compression:

Stored size: 1.02 KB

Contents

module Dev
module Cmd
class Compile < Array
  def refresh

    puts_debug "Dev::Cmd::Compile.refresh"
	strip_auto_entries
	windows=RUBY_PLATFORM.include?("w32")

	# jamfiles

	# vcxproj
    Dir.glob('**/*.vcxproj').each { |vcxproj| self << "{:cmd=> '<paths,msbuild> #{vcxproj} /property:Configuration=Release /property:Platform=Win32', :auto=>true}" } if windows

	# csproj
	csbuild="<paths,msbuild>"
	csbuild="xbuild" if !RUBY_PLATFORM.include?("w32")
	Dir.glob('**/*.csproj').each { |csproj| 
	  platforms=Dev::MsBuild.extract_platforms(csproj)
	  platforms.each { |platform|
	    skip=(!RUBY_PLATFORM.include?("w32") && platform=="x64")
	    self << "{:cmd=> '#{csbuild} #{csproj} /property:Configuration=Release /property:Platform=\"#{platform}\" /p:OutputPath=./bin/#{platform}/Release', :auto=>true}" if !skip
	  }
	}

	# gemspec
    Dir.glob("*.gemspec").each { |gs| self << "{:cmd=> 'gem build #{gs}', :capture_output=> false, :auto=> true}" }
  end

end	# class Compile
end # module Cmd
end # module Dev

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
dev-1.0.229 lib/dev/cmd/Compile.rb
dev-1.0.228 lib/dev/cmd/Compile.rb
dev-1.0.227 lib/dev/cmd/Compile.rb
dev-1.0.225 lib/dev/cmd/Compile.rb
dev-1.0.224 lib/dev/cmd/Compile.rb
dev-1.0.223 lib/dev/cmd/Compile.rb
dev-1.0.222 lib/dev/cmd/Compile.rb
dev-1.0.221 lib/dev/cmd/Compile.rb
dev-1.0.220 lib/dev/cmd/Compile.rb
dev-1.0.219 lib/dev/cmd/Compile.rb
dev-1.0.218 lib/dev/cmd/Compile.rb
dev-1.0.217 lib/dev/cmd/Compile.rb
dev-1.0.214 lib/dev/cmd/Compile.rb
dev-1.0.213 lib/dev/cmd/Compile.rb
dev-1.0.212 lib/dev/cmd/Compile.rb
dev-1.0.211 lib/dev/cmd/Compile.rb
dev-1.0.210 lib/dev/cmd/Compile.rb
dev-1.0.209 lib/dev/cmd/Compile.rb
dev-1.0.208 lib/dev/cmd/Compile.rb
dev-1.0.207 lib/dev/cmd/Compile.rb