lib/extensions/digest-md5/ext/Rakefile in rhodes-2.0.3 vs lib/extensions/digest-md5/ext/Rakefile in rhodes-2.1.0

- old
+ new

@@ -62,10 +62,22 @@ puts cmdline puts `#{cmdline}` exit unless $? == 0 cp_r File.join($tempdir, "Release", name + ".lib"), $targetdir + + elsif ENV['RHO_PLATFORM'] == 'win32' + args = [] + args << "/M4" + args << name + ".vcproj" + args << "\"Debug|Win32\"" + cmdline = $vcbuild + ' ' + args.join(' ') + puts cmdline + puts `#{cmdline}` + exit unless $? == 0 + + cp_r File.join($tempdir, "Debug", name + ".lib"), $targetdir end end namespace "build" do task :config do @@ -90,9 +102,15 @@ raise "ARCHS is not set" if $arch.nil? $gccbin = $bindir + '/gcc-4.0' $arbin = $bindir + '/ar' elsif ENV['RHO_PLATFORM'] == 'wm' + $vcbuild = ENV['VCBUILD'] + raise "VCBUILD is not set" if $vcbuild.nil? + $sdk = ENV['SDK'] + raise "SDK is not set" if $sdk.nil? + + elsif ENV['RHO_PLATFORM'] == 'win32' $vcbuild = ENV['VCBUILD'] raise "VCBUILD is not set" if $vcbuild.nil? $sdk = ENV['SDK'] raise "SDK is not set" if $sdk.nil?