Class: Bake::Blocks::Convert
- Defined in:
- lib/blocks/convert.rb
Instance Attribute Summary
Attributes inherited from Compile
Attributes inherited from BlockBase
Instance Method Summary collapse
- #clean ⇒ Object
- #execute ⇒ Object
-
#initialize(block, config, referencedConfigs, tcs) ⇒ Convert
constructor
A new instance of Convert.
Methods inherited from Compile
#calcCmdlineFile, #calcDefines, #calcDepFile, #calcDepFileConv, #calcFileTcs, #calcFlags, #calcIncludes, #calcObjects, #calcSources, #compileFile, #getBlocks, #getDefines, #getFlags, #getSubBlocks, #get_object_file, #get_source_type, #ignore?, #mapInclude, #mutex, #needed?, read_depfile, #tcs4source, write_depfile
Methods inherited from BlockBase
#calcOutputDir, #check_config_file, #config_changed?, #defaultToolchainTime, isCmdLineEqual?, prepareOutput, #printCmd, #process_console_output, #process_result, writeCmdLineFile
Constructor Details
#initialize(block, config, referencedConfigs, tcs) ⇒ Convert
Returns a new instance of Convert.
9 10 11 |
# File 'lib/blocks/convert.rb', line 9 def initialize(block, config, referencedConfigs, tcs) super(block, config, referencedConfigs, tcs) end |
Instance Method Details
#clean ⇒ Object
35 36 37 |
# File 'lib/blocks/convert.rb', line 35 def clean # nothing to do here end |
#execute ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/blocks/convert.rb', line 13 def execute Dir.chdir(@projectDir) do calcSources puts "START_INFO" puts " BAKE_PROJECTDIR" puts " #{File.(@projectDir)}" puts " BAKE_SOURCES" @source_files.each { |s| puts " #{s}" } puts " BAKE_INCLUDES" @include_list.each { |s| puts " #{s}" } puts " BAKE_DEFINES" (@tcs[:COMPILER][:CPP][:DEFINES] + @tcs[:COMPILER][:C][:DEFINES] + @tcs[:COMPILER][:ASM][:DEFINES]).uniq.each { |s| puts " #{s}" } puts " BAKE_DEPENDENCIES" @block.childs.each { |dep| puts " #{dep.projectName}" } puts " BAKE_DEPENDENCIES_FILTERED" @block.childs.each { |dep| puts " #{dep.projectName}" unless @projectName == dep.projectName or dep.projectName == "gmock" or dep.projectName == "gtest" } puts "END_INFO" end return true end |