Class: MxxRu::Cpp::DllRequirements

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

Overview

Class, incapsulating DLL dependencies.

When someone is linking to the DLL on mswin platform, then it depends only from import library of that DLL. But when someone is linking to the DLL on unix platform, then it depends from all libraries DLL depends to. Exact details knows concrete toolset implementation only. Therefore, after DLL building base toolset class addresses to it’s derivative with requirement to build all dependencies lists. These lists are returned as an object of DllRequirements type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDllRequirements

Returns a new instance of DllRequirements.



229
230
231
232
# File 'lib/mxx_ru/cpp/toolset.rb', line 229

def initialize
  @libs = Array.new
  @lib_paths = Array.new
end

Instance Attribute Details

#lib_pathsObject (readonly)

Libraries search paths.



227
228
229
# File 'lib/mxx_ru/cpp/toolset.rb', line 227

def lib_paths
  @lib_paths
end

#libsObject (readonly)

Required libraries list.



225
226
227
# File 'lib/mxx_ru/cpp/toolset.rb', line 225

def libs
  @libs
end

Instance Method Details

#add_lib_paths(a_lib_paths) ⇒ Object



238
239
240
# File 'lib/mxx_ru/cpp/toolset.rb', line 238

def add_lib_paths( a_lib_paths )
  push_to( @lib_paths, a_lib_paths )
end

#add_libs(a_libs) ⇒ Object



234
235
236
# File 'lib/mxx_ru/cpp/toolset.rb', line 234

def add_libs( a_libs )
  push_to( @libs, a_libs )
end