Class: Ritsu::Targets::Library
- Inherits:
-
Ritsu::Target
- Object
- Ritsu::Target
- Ritsu::Targets::Library
- Includes:
- Utility::Accessors
- Defined in:
- lib/ritsu/targets/library.rb,
lib/ritsu/ext/cuda/targets/library.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cmake_depend_script ⇒ Object
Returns the value of attribute cmake_depend_script.
-
#cuda_depend_script ⇒ Object
Returns the value of attribute cuda_depend_script.
Attributes inherited from Ritsu::Target
#custom_commands, #dependency_libraries, #name, #project, #src_files, #topological_order
Instance Method Summary collapse
- #can_be_depended_on? ⇒ Boolean
- #executable? ⇒ Boolean
-
#initialize(name, options = {}) ⇒ Library
constructor
A new instance of Library.
-
#initialize_library_before_cuda ⇒ Library
A new instance of Library.
- #library? ⇒ Boolean
Methods included from Utility::Accessors
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
Methods included from SrcFiles::AddQtHeaderFile
#add_qt_header_file, #add_qt_header_files
Methods included from SrcFiles::AddCppFile
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
Methods included from SrcFiles::AddUiFile
Methods included from SrcFiles::AddHeaderFile
#add_header_file, #add_header_files
Methods included from SrcFiles::AddUnit
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
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, ={}) = {:cmake_depend_script => ""}.merge() super(name, ) @cmake_depend_script = [:cmake_depend_script] end |
Instance Attribute Details
#cmake_depend_script ⇒ Object
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_script ⇒ Object
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
17 18 19 |
# File 'lib/ritsu/targets/library.rb', line 17 def can_be_depended_on? true end |
#executable? ⇒ Boolean
21 22 23 |
# File 'lib/ritsu/targets/library.rb', line 21 def executable? false end |
#initialize_library_before_cuda ⇒ Library
Returns a new instance of Library.
8 9 10 11 12 |
# File 'lib/ritsu/ext/cuda/targets/library.rb', line 8 def initialize(name, ={}) = {:cmake_depend_script => ""}.merge() super(name, ) @cmake_depend_script = [:cmake_depend_script] end |
#library? ⇒ Boolean
25 26 27 |
# File 'lib/ritsu/targets/library.rb', line 25 def library? true end |