Class: MxxRu::Cpp::LibInfo

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

Overview

Class, describing a library.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from TargetWithFullPath

#full_name

Constructor Details

#initialize(a_file_name, a_path, a_link_name) ⇒ LibInfo

Returns a new instance of LibInfo.



95
96
97
98
99
100
101
102
103
104
# File 'lib/mxx_ru/cpp/toolset.rb', line 95

def initialize( a_file_name, a_path, a_link_name )
  super( a_file_name, a_path )

  # File name of library file without a folder.
  @file_name = a_file_name
  # Folder where library file should be.
  @path = a_path
  # The name should be passed to the linker.
  @link_name = a_link_name
end

Instance Attribute Details

#file_nameObject (readonly)

Returns the value of attribute file_name.



91
92
93
# File 'lib/mxx_ru/cpp/toolset.rb', line 91

def file_name
  @file_name
end

Returns the value of attribute link_name.



93
94
95
# File 'lib/mxx_ru/cpp/toolset.rb', line 93

def link_name
  @link_name
end

#pathObject (readonly)

Returns the value of attribute path.



92
93
94
# File 'lib/mxx_ru/cpp/toolset.rb', line 92

def path
  @path
end