Class: Ritsu::Targets::StaticLibrary
- Inherits:
-
Library
- Object
- Ritsu::Target
- Library
- Ritsu::Targets::StaticLibrary
- Defined in:
- lib/ritsu/targets/static_library.rb
Instance Attribute Summary collapse
-
#cmake_lists ⇒ Object
readonly
Returns the value of attribute cmake_lists.
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
-
#initialize(name, options = {}) ⇒ StaticLibrary
constructor
A new instance of StaticLibrary.
- #shared_library? ⇒ Boolean
- #static_library? ⇒ Boolean
Methods inherited from Library
#can_be_depended_on?, #executable?, #initialize_library_before_cuda, #library?
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 = {}) ⇒ StaticLibrary
Returns a new instance of StaticLibrary.
11 12 13 14 |
# File 'lib/ritsu/targets/static_library.rb', line 11 def initialize(name, ={}) super(name, ) @cmake_lists = Ritsu::SrcFiles::StaticLibraryCmakeLists.new(self) end |
Instance Attribute Details
#cmake_lists ⇒ Object (readonly)
Returns the value of attribute cmake_lists.
9 10 11 |
# File 'lib/ritsu/targets/static_library.rb', line 9 def cmake_lists @cmake_lists end |
Instance Method Details
#shared_library? ⇒ Boolean
16 17 18 |
# File 'lib/ritsu/targets/static_library.rb', line 16 def shared_library? false end |
#static_library? ⇒ Boolean
20 21 22 |
# File 'lib/ritsu/targets/static_library.rb', line 20 def static_library? true end |