module Cxxproject::HasLibraries
Constants
- DEPENDENCY
- LIB
- LIB_WITH_PATH
- SEARCH_PATH
- USERLIB
Public Instance Methods
add_lib_element(type, value, front = false)
click to toggle source
value: can be string or building block
# File lib/cxxproject/buildingblocks/has_libraries_mixin.rb, line 14 def add_lib_element(type, value, front = false) elem = [type, value.instance_of?(String) ? value : value.name] if front lib_elements.unshift(elem) else lib_elements << elem end end
add_lib_elements(array_of_tuples, front = false)
click to toggle source
-
element: type
-
element: name, must not be a building block
# File lib/cxxproject/buildingblocks/has_libraries_mixin.rb, line 25 def add_lib_elements(array_of_tuples, front = false) if front @lib_elements = array_of_tuples+lib_elements else lib_elements.concat(array_of_tuples) end end
lib_elements()
click to toggle source
# File lib/cxxproject/buildingblocks/has_libraries_mixin.rb, line 9 def lib_elements @lib_elements ||= [] end