Class: MxxRu::Cpp::TargetWithFullPath

Inherits:
Object
  • Object
show all
Defined in:
lib/mxx_ru/cpp/toolset.rb

Overview

Base class for any target for which full path must be calculated.

Direct Known Subclasses

DllInfo, ExeInfo, LibInfo, MswinResInfo

Instance Method Summary collapse

Constructor Details

#initialize(name, path) ⇒ TargetWithFullPath

Returns a new instance of TargetWithFullPath.



57
58
59
60
# File 'lib/mxx_ru/cpp/toolset.rb', line 57

def initialize( name, path )
  @target_path = path
  @target_name = name
end

Instance Method Details

#full_nameObject



62
63
64
65
# File 'lib/mxx_ru/cpp/toolset.rb', line 62

def full_name
  @full_name = File.join( @target_path, @target_name ) unless @full_name
  @full_name
end