Class: Ritsu::Targets::SharedLibrary

Inherits:
Library show all
Defined in:
lib/ritsu/targets/shared_library.rb

Instance Attribute Summary collapse

Attributes inherited from Library

#cmake_depend_script, #cuda_depend_script

Attributes inherited from Ritsu::Target

#custom_commands, #dependency_libraries, #name, #project, #src_files, #topological_order

Instance Method Summary collapse

Methods inherited from Library

#can_be_depended_on?, #executable?, #initialize_library_before_cuda, #library?

Methods included from Utility::Accessors

included

Methods inherited from Ritsu::Target

#abs_dir, #add_dependency_target, #add_dependency_targets, #add_external_libraries, #add_external_library, #compute_src_path, #cuda_target?, #dependency_targets_sorted_by_topological_order, find_by_name, #include_file, #initialize_target_before_cuda, #install?, #setup_install, #src_dir, #update, validate_instance

Methods included from SrcFiles::AddQtUnit

#add_qt_unit, #add_qt_units

Methods included from SrcFiles::AddQtHeaderFile

#add_qt_header_file, #add_qt_header_files

Methods included from SrcFiles::AddCppFile

#add_cpp_file, #add_cpp_files

Methods included from SrcFiles::AddVertFile

#add_vert_file, #add_vert_files

Methods included from SrcFiles::AddFragFile

#add_frag_file, #add_frag_files

Methods included from SrcFiles::AddCuFile

#add_cu_file, #add_cu_files

Methods included from SrcFiles::AddUiFile

#add_ui_file, #add_ui_files

Methods included from SrcFiles::AddHeaderFile

#add_header_file, #add_header_files

Methods included from SrcFiles::AddUnit

#add_unit, #add_units

Methods included from Utility::Strings

convert_whitespaces_to_spaces, first, is_c_name?, is_underscore_case?, leading_spaces, leading_whitespaces

Methods included from Utility::InstanceDependencies

included

Methods included from Utility::InstanceSet

included, #initialize_instance

Constructor Details

#initialize(name, options = {}) ⇒ SharedLibrary

Returns a new instance of SharedLibrary.



11
12
13
14
# File 'lib/ritsu/targets/shared_library.rb', line 11

def initialize(name, options={})
  super(name, options)
  initialize_cmake_lists
end

Instance Attribute Details

#cmake_listsObject (readonly)

Returns the value of attribute cmake_lists.



9
10
11
# File 'lib/ritsu/targets/shared_library.rb', line 9

def cmake_lists
  @cmake_lists
end

Instance Method Details

#shared_library?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/ritsu/targets/shared_library.rb', line 22

def shared_library?
  true
end

#static_library?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/ritsu/targets/shared_library.rb', line 26

def static_library?
  false
end