test/resources/testproject/Rakefile.rb in rake-delphi-0.0.14 vs test/resources/testproject/Rakefile.rb in rake-delphi-0.0.15
- old
+ new
@@ -30,10 +30,10 @@
desc 'Preparation'
task :prepare, :useresources, :options do |t, opts|
_task = Rake::Task['test:compile']
dpr = Rake.application.define_task(Rake::Delphi::Project, (_task.name + ':delphi').to_sym)
dpr[:resources_additional] = 'resources' if opts[:useresources]
- if ENV['DELPHI_VERSION'].to_i >= 14
+ if Rake::Delphi::EnvVariables.delphi_version >= Rake::Delphi::DELPHI_VERSION_XE
dpr[:platform] = 'Win32'
end
options = opts[:options] || {}
if options.kind_of?(String)
options = eval(options)