class MxxRu::Cpp::Dll_requirements
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.
Attributes
lib_paths[R]
Libraries search paths.
libs[R]
Required libraries list.
Public Class Methods
new()
click to toggle source
# File lib/mxx_ru/cpp/toolset.rb, line 229 def initialize @libs = Array.new @lib_paths = Array.new end
Public Instance Methods
add_lib_paths( a_lib_paths )
click to toggle source
# 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 )
click to toggle source
# File lib/mxx_ru/cpp/toolset.rb, line 234 def add_libs( a_libs ) push_to( @libs, a_libs ) end
Protected Instance Methods
push_to( to, what )
click to toggle source
# File lib/mxx_ru/cpp/toolset.rb, line 243 def push_to( to, what ) to << what to.flatten! end