Class: Rake::Delphi::DccARMTool

Inherits:
Dcc32Tool show all
Defined in:
lib/rake/delphi/dccaarmtool.rb

Constant Summary

Constants inherited from CustomDelphiTool

CustomDelphiTool::BDSRegRoot, CustomDelphiTool::DelphiRegRoot, CustomDelphiTool::EDSRegRoot, CustomDelphiTool::EmbarcaderoRegRoot

Instance Attribute Summary

Attributes inherited from Dcc32Tool

#env

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Dcc32Tool

#delphidir, #delphilib, #init_env, #readLibraryPaths

Methods inherited from CustomDelphiTool

checkToolFailure, #delphidir, find, #initialize, readDelphiDir, readUserOption, reinit, rootForVersion, #toolpath, #version, version4version, #versionInfoClass

Methods inherited from CustomExec

#execute, #to_system_path

Methods inherited from BasicTask

#initialize, #trace?

Constructor Details

This class inherits a constructor from Rake::Delphi::CustomDelphiTool

Class Method Details

.toolNameObject



9
10
11
# File 'lib/rake/delphi/dccaarmtool.rb', line 9

def self.toolName
  'bin/dccaarm.exe'
end

Instance Method Details

#optionsObject



13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/rake/delphi/dccaarmtool.rb', line 13

def options
  opts = []
  linker_path = ENV['DELPHI_ANDROID_SDK_LINKER']
  warn "Please, define DELPHI_ANDROID_SDK_LINKER environment variable.\n Otherwise you may get 'File not found: ldandroid.exe' error" unless linker_path
  lib_path = ENV['DELPHI_ANDROID_SDK_LIBPATH']
  warn 'Please, define DELPHI_ANDROID_SDK_LIBPATH environment variable' unless lib_path
  linker_option = ENV['DELPHI_ANDROID_SDK_LINKER_OPTION']
  warn 'Please, define DELPHI_ANDROID_SDK_LINKER_OPTION environment variable' unless linker_option
  opts << '-TX.so'
  opts << "--linker:\"#{linker_path}\""
  opts << "--libpath:\"#{lib_path}\""
  opts << "--linker-option:\"#{linker_option}\""
  return opts
end