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.206 lib/dev/cmd/Compile.rb
dev-1.0.205 lib/dev/cmd/Compile.rb
dev-1.0.204 lib/dev/cmd/Compile.rb
dev-1.0.203 lib/dev/cmd/Compile.rb
dev-1.0.202 lib/dev/cmd/Compile.rb
dev-1.0.201 lib/dev/cmd/Compile.rb
dev-1.0.200 lib/dev/cmd/Compile.rb
dev-1.0.199 lib/dev/cmd/Compile.rb
dev-1.0.198 lib/dev/cmd/Compile.rb
dev-1.0.197 lib/dev/cmd/Compile.rb
dev-1.0.196 lib/dev/cmd/Compile.rb
dev-1.0.195 lib/dev/cmd/Compile.rb
dev-1.0.194 lib/dev/cmd/Compile.rb
dev-1.0.193 lib/dev/cmd/Compile.rb
dev-1.0.192 lib/dev/cmd/Compile.rb
dev-1.0.191 lib/dev/cmd/Compile.rb
dev-1.0.190 lib/dev/cmd/Compile.rb
dev-1.0.189 lib/dev/cmd/Compile.rb
dev-1.0.188 lib/dev/cmd/Compile.rb
dev-1.0.187 lib/dev/cmd/Compile.rb