Sha256: 3763f4a3727844754d3ef88e918edc094e1f745fe4e88b3b8afe983118ded6bf

Contents?: true

Size: 1.17 KB

Versions: 26

Compression:

Stored size: 1.17 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

26 entries across 26 versions & 1 rubygems

Version Path
bake-toolkit-2.29.0 lib/blocks/convert.rb
bake-toolkit-2.28.1 lib/blocks/convert.rb
bake-toolkit-2.28.0 lib/blocks/convert.rb
bake-toolkit-2.27.0 lib/blocks/convert.rb
bake-toolkit-2.26.1 lib/blocks/convert.rb
bake-toolkit-2.26.0 lib/blocks/convert.rb
bake-toolkit-2.25.1 lib/blocks/convert.rb
bake-toolkit-2.25.0 lib/blocks/convert.rb
bake-toolkit-2.24.6 lib/blocks/convert.rb
bake-toolkit-2.24.5 lib/blocks/convert.rb
bake-toolkit-2.24.4 lib/blocks/convert.rb
bake-toolkit-2.24.3 lib/blocks/convert.rb
bake-toolkit-2.24.2 lib/blocks/convert.rb
bake-toolkit-2.24.1 lib/blocks/convert.rb
bake-toolkit-2.24.0 lib/blocks/convert.rb
bake-toolkit-2.23.12 lib/blocks/convert.rb
bake-toolkit-2.23.8 lib/blocks/convert.rb
bake-toolkit-2.23.7 lib/blocks/convert.rb
bake-toolkit-2.23.6 lib/blocks/convert.rb
bake-toolkit-2.23.5 lib/blocks/convert.rb