Sha256: 9af890872332fe240b85332272caeaf4504ce0e878d60b4c83d47635e87fbe45

Contents?: true

Size: 584 Bytes

Versions: 451

Compression:

Stored size: 584 Bytes

Contents

require 'rubygems'
require 'rake'
require 'fileutils'
require 'rbconfig'

BASENAME = "puppetres"

task :default do
  sh 'rake -T'
end

desc 'Build puppet eventlog message dll'
task :dist => ['out', "#{BASENAME}.dll"]

directory 'out'

rule '.rc' => '.mc' do |t|
  sh "mc -b -r out -h out #{t.source}"
end

rule '.res' => '.rc' do |t|
  sh "rc -nologo -r -fo out/#{t.name} out/#{t.source}"
end

rule '.dll' => '.res' do |t|
  sh "link -nologo -dll -noentry -machine:x86 -out:out/#{t.name} out/#{t.source}"
end

desc 'Delete generated files'
task :clean do
  FileUtils.rm_rf('out')
end

Version data entries

451 entries across 451 versions & 3 rubygems

Version Path
puppet-6.6.0 ext/windows/eventlog/Rakefile
puppet-6.6.0-x86-mingw32 ext/windows/eventlog/Rakefile
puppet-6.6.0-x64-mingw32 ext/windows/eventlog/Rakefile
puppet-6.6.0-universal-darwin ext/windows/eventlog/Rakefile
puppet-6.5.0 ext/windows/eventlog/Rakefile
puppet-6.5.0-x86-mingw32 ext/windows/eventlog/Rakefile
puppet-6.5.0-x64-mingw32 ext/windows/eventlog/Rakefile
puppet-6.5.0-universal-darwin ext/windows/eventlog/Rakefile
puppet-6.4.2 ext/windows/eventlog/Rakefile
puppet-6.4.2-x86-mingw32 ext/windows/eventlog/Rakefile
puppet-6.4.2-x64-mingw32 ext/windows/eventlog/Rakefile
puppet-6.4.2-universal-darwin ext/windows/eventlog/Rakefile
puppet-6.0.9 ext/windows/eventlog/Rakefile
puppet-6.0.9-x86-mingw32 ext/windows/eventlog/Rakefile
puppet-6.0.9-x64-mingw32 ext/windows/eventlog/Rakefile
puppet-6.0.9-universal-darwin ext/windows/eventlog/Rakefile
puppet-5.5.14 ext/windows/eventlog/Rakefile
puppet-5.5.14-x86-mingw32 ext/windows/eventlog/Rakefile
puppet-5.5.14-x64-mingw32 ext/windows/eventlog/Rakefile
puppet-5.5.14-universal-darwin ext/windows/eventlog/Rakefile