Class: Cxxproject::Executable
- Inherits:
-
Linkable
- Object
- BuildingBlock
- Linkable
- Cxxproject::Executable
- Defined in:
- lib/cxxproject/buildingblocks/linkable.rb
Constant Summary
Constants included from HasLibraries
HasLibraries::DEPENDENCY, HasLibraries::LIB, HasLibraries::LIB_WITH_PATH, HasLibraries::SEARCH_PATH, HasLibraries::USERLIB
Instance Attribute Summary
Attributes included from HasSources
Attributes inherited from BuildingBlock
#config_files, #config_name, #name, #output_dir, #output_dir_abs, #pre_step, #project_dir, #tags
Instance Method Summary collapse
- #add_grouping_tasks(executable) ⇒ Object
- #additional_object_file_flags ⇒ Object
- #get_flags_for_output(linker) ⇒ Object
- #get_output_prefix(linker) ⇒ Object
- #get_output_suffix(linker) ⇒ Object
- #get_rake_task_type ⇒ Object
- #post_link_hook(linker) ⇒ Object
Methods inherited from Linkable
#adapt_path, #calc_command_line, #cmd_lib_string, #collect_unique, #convert_to_rake, #create_run_task, #deps, #executable_name, #get_output_name, #get_task_name, #get_temp_filename, #handle_whole_archive, #initialize, #is_whole_archive, #linker_lib_string, #no_sources_found, #set_executable_name, #set_linker_script, #set_mapfile, #target_os
Methods included from HasIncludes
#includes, #local_includes, #set_includes, #set_local_includes
Methods included from HasSources
#add_to_sources_to_build, #apply_depfile, #calc_command_line_for_source, #calc_compiler_strings, #calc_dirs_with_files, #collect_sources_and_toolchains, #convert_depfile, #create_object_file_task, #create_object_file_tasks, #define_string, #deps_in_depFiles, #enhance_with_additional_files, #exclude_sources, #get_define_string, #get_dep_file, #get_include_string, #get_object_file, #get_source_type, #get_sources_task_name, #include_string, #no_sources_found, #parse_includes, #prepare_tasks_for_objects, #process_console_output, #set_exclude_sources, #set_source_patterns, #set_sources, #set_tcs4source, #source_patterns, #sources, #tcs4source
Methods included from HasLibraries
#add_lib_element, #add_lib_elements, #lib_elements
Methods inherited from BuildingBlock
#add_output_dir_dependency, #additional_path_components, #calc_complete_output_dir, #catch_output, #check_config_file, #complete_init, #complete_output_dir, #get_task_name, #has_tcs?, #initialize, #printCmd, #process_result, #read_file_or_empty_string, #remove_empty_strings_and_join, #set_config_files, #set_config_name, #set_name, #set_output_dir, #set_project_dir, #set_tcs, #setup_rake_dependencies, #tcs, #typed_file_task
Methods included from HasDependencies
#add_unique, #all_dependencies, #all_dependencies_recursive, #collect_dependencies, #convert_named_values_to_string, #dependencies, #direct_deps, #helper_dependencies, #resolve_by_name, #set_dependencies, #set_helper_dependencies
Constructor Details
This class inherits a constructor from Cxxproject::Linkable
Instance Method Details
#add_grouping_tasks(executable) ⇒ Object
286 287 288 289 290 291 292 |
# File 'lib/cxxproject/buildingblocks/linkable.rb', line 286 def add_grouping_tasks(executable) namespace 'exe' do desc executable task @name => executable end create_run_task(executable, @name) end |
#additional_object_file_flags ⇒ Object
283 284 285 |
# File 'lib/cxxproject/buildingblocks/linkable.rb', line 283 def additional_object_file_flags [] end |
#get_flags_for_output(linker) ⇒ Object
271 272 273 |
# File 'lib/cxxproject/buildingblocks/linkable.rb', line 271 def get_flags_for_output(linker) [linker[:OUTPUT_FLAG]] end |
#get_output_prefix(linker) ⇒ Object
274 275 276 |
# File 'lib/cxxproject/buildingblocks/linkable.rb', line 274 def get_output_prefix(linker) "" end |
#get_output_suffix(linker) ⇒ Object
277 278 279 |
# File 'lib/cxxproject/buildingblocks/linkable.rb', line 277 def get_output_suffix(linker) linker[:OUTPUT_SUFFIX][:EXECUTABLE][target_os()] end |
#get_rake_task_type ⇒ Object
280 281 282 |
# File 'lib/cxxproject/buildingblocks/linkable.rb', line 280 def get_rake_task_type Rake::Task::EXECUTABLE end |
#post_link_hook(linker) ⇒ Object
294 295 |
# File 'lib/cxxproject/buildingblocks/linkable.rb', line 294 def post_link_hook(linker) end |