Module: Gaudi::Commandlines

Includes:
ToolOperations
Included in:
ArtifactAdapters::Build
Defined in:
lib/gaudi/helpers/artifacts.rb

Instance Method Summary collapse

Methods included from ToolOperations

#assembler_options, #command_line, #compiler_options, #librarian_options, #linker_options, #prefixed_objects

Instance Method Details

#assembler(cmdfile, config) ⇒ Object

constructs the assembler command line


19
20
21
22
23
# File 'lib/gaudi/helpers/artifacts.rb', line 19

def assembler cmdfile,config
  as=config['assembler']
  raise GaudiConfigurationError,"Missing 'assembler' setting" unless as
  return command_line(as,cmdfile,config.fetch('assembler_commandfile_prefix',""))
end

#compiler(cmdfile, config) ⇒ Object

constructs the compiler command line and returns it as an Array


7
8
9
10
11
# File 'lib/gaudi/helpers/artifacts.rb', line 7

def compiler cmdfile,config
  cc=config['compiler']
  raise GaudiConfigurationError,"Missing 'compiler' setting" unless cc
  return command_line(cc,cmdfile,config.fetch('compiler_commandfile_prefix',""))
end

#librarian(cmdfile, config) ⇒ Object

constructs the librarian command line


25
26
27
28
29
# File 'lib/gaudi/helpers/artifacts.rb', line 25

def librarian cmdfile,config
  ar=config['librarian']
  raise GaudiConfigurationError,"Missing 'librarian' setting" unless ar
  return command_line(ar,cmdfile,config.fetch('library_commandfile_prefix',""))
end

#linker(cmdfile, config) ⇒ Object

Constructs the command line for linker and returns it as an Array


13
14
15
16
17
# File 'lib/gaudi/helpers/artifacts.rb', line 13

def linker cmdfile,config
  li=config['linker']
  raise GaudiConfigurationError,"Missing 'linker' setting" unless li
  return command_line(li,cmdfile,config.fetch('linker_commandfile_prefix',""))
end