Sha256: d7f70056b68d14f78fa579801d97fd41a055844f384b5b099c90021dd3a536fb
Contents?: true
Size: 1.65 KB
Versions: 4
Compression:
Stored size: 1.65 KB
Contents
# encoding: utf-8 require 'rake/common/logger' require 'rake/delphi/tool' module Rake module Delphi class Dcc32Tool < CustomDelphiTool attr_reader :env def self.toolName 'bin/dcc32.exe' end def delphidir @@delphidir end def delphilib ENV['BDSLIB'] end def init_env @env ||= EnvVariables.new(self.class.rootForVersion(self.version) + '\Environment Variables', self.delphidir) end def readLibraryPaths(platform, platform_stripped) Logger.trace(Logger::TRACE, 'Reading library paths for platform: ' + platform.to_s) warn "WARNING! You are using Delphi XE or above but no platform defined!" if ENV['DELPHI_VERSION'].to_i >= 14 && ! platform platform = platform.to_s != '' ? '\\' + platform : '' # platform not used for old Delphis 'SearchPath' libpaths = self.class.readUserOption('Library' + platform, 'Search Path', self.version).split(';') \ | self.class.readUserOption('Library', 'SearchPath', self.version).split(';') Logger.trace(Logger::TRACE, 'Library paths read:') Logger.trace(Logger::TRACE, libpaths) dev = init_env dev['PLATFORM'] = platform_stripped if platform_stripped libpaths.map! do |lp| unless lp.to_s.empty? lp = dev.expand(lp) end lp end Logger.trace(Logger::TRACE, 'Library paths expanded:') Logger.trace(Logger::TRACE, libpaths) return libpaths end end end end
Version data entries
4 entries across 4 versions & 1 rubygems