Module: Gaudi::Configuration::BuildModules::ProgramConfiguration

Includes:
Gaudi::ConfigurationOperations
Defined in:
lib/gaudi/helpers/configuration.rb

Overview

Configuration directives for programs.

For a Gaudi::Program instance these are added in addition to the ComponentConfiguration directives

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Gaudi::ConfigurationOperations

#interpret_library_tokens

Class Method Details

.list_keysObject

:stopdoc:


520
521
522
# File 'lib/gaudi/helpers/configuration.rb', line 520

def self.list_keys
  ['libs','resources','shared_deps']
end

.path_keysObject


523
524
525
# File 'lib/gaudi/helpers/configuration.rb', line 523

def self.path_keys
  ['resources']
end

Instance Method Details

#external_libraries(system_config, platform) ⇒ Object Also known as: libs

:startdoc: A list of library files to be added when linking

Relative paths are interpreted relative to the configuration file's location


530
531
532
# File 'lib/gaudi/helpers/configuration.rb', line 530

def external_libraries system_config,platform
  return interpret_library_tokens(@config.fetch('libs',[]),system_config.external_libraries_config(platform),system_config.config_base)
end

#option(key) ⇒ Object

Option key can be one of compiler_options, assembler_options, lirbary_options or linker_options

These are added to the platform configuration options, they do NOT override them


536
537
538
# File 'lib/gaudi/helpers/configuration.rb', line 536

def option key
  return @config.fetch(key,'')
end

#resourcesObject

List of paths to resource files that are copied with the program build


540
541
542
# File 'lib/gaudi/helpers/configuration.rb', line 540

def resources
  return @config.fetch('resources',[])
end

#shared_dependenciesObject

A list of prefixes that represent shared dependencies to the system's internal components


545
546
547
# File 'lib/gaudi/helpers/configuration.rb', line 545

def shared_dependencies
  return @config.fetch('shared_deps',Rake::FileList.new)
end