lib/extensions/digest-md5/ext/Rakefile in rhodes-7.1.17 vs lib/extensions/digest-md5/ext/Rakefile in rhodes-7.4.1

- old
+ new

@@ -1,10 +1,10 @@ require 'fileutils' require File.join(pwd, '../../../build/jake.rb') def build_extension(name, arch) - if (ENV['RHO_PLATFORM'] == 'osx') or (ENV['RHO_PLATFORM'] == 'win32') + if (ENV['RHO_PLATFORM'] == 'osx') or (ENV['RHO_PLATFORM'] == 'win32') or (ENV['RHO_PLATFORM'] == 'linux') args = ['-o', 'Makefile', '-r', '-spec', $qmake_spec, "#{name}.pro", 'CONFIG-=debug', 'CONFIG+=release', $qmakevars] puts Jake.run($qmake,args) fail "[qmake #{name}.pro]" unless $? == 0 #puts Jake.run($make, ['clean']) fail "[make clean]" unless $? == 0 @@ -107,10 +107,10 @@ $arch = ENV['ARCHS'] raise "ARCHS is not set" if $arch.nil? $gccbin = $bindir + '/gcc' $arbin = $bindir + '/ar' - elsif ENV['RHO_PLATFORM'] == 'osx' + elsif (ENV['RHO_PLATFORM'] == 'osx') or (ENV['RHO_PLATFORM'] == 'linux') $qmake = ENV['RHO_QMAKE'] raise "RHO_QMAKE is not set" if $qmake.nil? $qmake_spec = ENV['RHO_QMAKE_SPEC'] raise "RHO_QMAKE_SPEC is not set" if $qmake_spec.nil? $make = 'make'