Sha256: 9a370273a02511b312b95fc20ba53361baf1429d9fdc81ded675a2347657a617

Contents?: true

Size: 1.25 KB

Versions: 24

Compression:

Stored size: 1.25 KB

Contents

require 'blocks/compile'

module Bake
  
  module Blocks
    
    class Convert < Compile
      
      def initialize(block, config, referencedConfigs, tcs)
        super(block, config, referencedConfigs, tcs)
      end
   
      def execute
        Dir.chdir(@projectDir) do
          calcSources
                
          puts "START_INFO"
          puts " BAKE_PROJECTDIR"
          puts "  #{File.expand_path(@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
      
      def clean
        # nothing to do here
      end
      
    end
    
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
bake-toolkit-2.20.4 lib/blocks/convert.rb
bake-toolkit-2.20.3 lib/blocks/convert.rb
bake-toolkit-2.20.2 lib/blocks/convert.rb
bake-toolkit-2.20.1 lib/blocks/convert.rb
bake-toolkit-2.19.2 lib/blocks/convert.rb
bake-toolkit-2.19.1 lib/blocks/convert.rb
bake-toolkit-2.19.0 lib/blocks/convert.rb
bake-toolkit-2.18.0 lib/blocks/convert.rb
bake-toolkit-2.17.4 lib/blocks/convert.rb
bake-toolkit-2.17.3 lib/blocks/convert.rb
bake-toolkit-2.17.2 lib/blocks/convert.rb
bake-toolkit-2.17.1 lib/blocks/convert.rb
bake-toolkit-2.16.1 lib/blocks/convert.rb
bake-toolkit-2.15.0 lib/blocks/convert.rb
bake-toolkit-2.14.0 lib/blocks/convert.rb
bake-toolkit-2.13.1 lib/blocks/convert.rb
bake-toolkit-2.13.0 lib/blocks/convert.rb
bake-toolkit-2.12.2 lib/blocks/convert.rb
bake-toolkit-2.12.1 lib/blocks/convert.rb
bake-toolkit-2.12.0 lib/blocks/convert.rb