Class: Ritsu::Targets::Library

Inherits:
Ritsu::Target show all
Includes:
Utility::Accessors
Defined in:
lib/ritsu/targets/library.rb,
lib/ritsu/ext/cuda/targets/library.rb

Direct Known Subclasses

SharedLibrary, StaticLibrary

Instance Attribute Summary collapse

Attributes inherited from Ritsu::Target

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

Instance Method Summary collapse

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 = {}) ⇒ Library

Returns a new instance of Library.



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

def initialize(name, options={})
  options = {:cmake_depend_script => ""}.merge(options)
  super(name, options)
  @cmake_depend_script = options[:cmake_depend_script]
end

Instance Attribute Details

#cmake_depend_scriptObject

Returns the value of attribute cmake_depend_script.



8
9
10
# File 'lib/ritsu/targets/library.rb', line 8

def cmake_depend_script
  @cmake_depend_script
end

#cuda_depend_scriptObject

Returns the value of attribute cuda_depend_script.



5
6
7
# File 'lib/ritsu/ext/cuda/targets/library.rb', line 5

def cuda_depend_script
  @cuda_depend_script
end

Instance Method Details

#can_be_depended_on?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/ritsu/targets/library.rb', line 17

def can_be_depended_on?
  true
end

#executable?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/ritsu/targets/library.rb', line 21

def executable?
  false
end

#initialize_library_before_cudaLibrary

Returns a new instance of Library.

Returns:

  • (Library)

    a new instance of Library



8
9
10
11
12
# File 'lib/ritsu/ext/cuda/targets/library.rb', line 8

def initialize(name, options={})
  options = {:cmake_depend_script => ""}.merge(options)
  super(name, options)
  @cmake_depend_script = options[:cmake_depend_script]
end

#library?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/ritsu/targets/library.rb', line 25

def library?
  true
end