4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/dev/cmd/Compile.rb', line 4
def refresh
puts_debug "Dev::Cmd::Compile.refresh"
strip_auto_entries
windows=RUBY_PLATFORM.include?("w32")
Dir.glob('**/*.vcxproj').each { |vcxproj| self << "{:cmd=> '<paths,msbuild> #{vcxproj} /property:Configuration=Release /property:Platform=Win32', :auto=>true}" } if windows
csbuild="<paths,msbuild>"
csbuild="xbuild" if !RUBY_PLATFORM.include?("w32")
Dir.glob('**/*.csproj').each { |csproj|
platforms=Dev::MsBuild.(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
}
}
Dir.glob("*.gemspec").each { |gs| self << "{:cmd=> 'gem build #{gs}', :capture_output=> false, :auto=> true}" }
end
|