Sha256: 64d4b20246c679d89144d32b8875f3271e284ff989dc9d5b042b060a041db5b4

Contents?: true

Size: 1.28 KB

Versions: 33

Compression:

Stored size: 1.28 KB

Contents

require_relative 'compile'

module Bake

  module Blocks

    class Convert < Compile

      def initialize(block, config, referencedConfigs)
        super(block, config, referencedConfigs)
      end

      def execute
        Dir.chdir(@projectDir) do
          calcIncludes
          calcDefines
          calcFlags
          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"
          (@block.tcs[:COMPILER][:CPP][:DEFINES] + @block.tcs[:COMPILER][:C][:DEFINES] + @block.tcs[:COMPILER][:ASM][:DEFINES]).uniq.each { |s| puts "  #{s}" }
          puts " BAKE_DEPENDENCIES"
          @block.dependencies.each { |dep| puts "  #{ALL_BLOCKS[dep].qname}" }
          puts " BAKE_DEPENDENCIES_FILTERED"
          @block.dependencies.each { |dep| pn = ALL_BLOCKS[dep].projectName; puts "  #{ALL_BLOCKS[dep].qname}" unless @projectName == pn || pn == "gmock" || pn == "gtest" }
          puts "END_INFO"
        end
        return true
      end

      def clean
        # nothing to do here
        return true
      end

    end

  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
bake-toolkit-2.72.0 lib/blocks/convert.rb
bake-toolkit-2.71.0 lib/blocks/convert.rb
bake-toolkit-2.70.1 lib/blocks/convert.rb
bake-toolkit-2.70.0 lib/blocks/convert.rb
bake-toolkit-2.69.0 lib/blocks/convert.rb
bake-toolkit-2.68.1 lib/blocks/convert.rb
bake-toolkit-2.68.0 lib/blocks/convert.rb
bake-toolkit-2.67.0 lib/blocks/convert.rb
bake-toolkit-2.66.0 lib/blocks/convert.rb
bake-toolkit-2.65.2 lib/blocks/convert.rb
bake-toolkit-2.65.1 lib/blocks/convert.rb
bake-toolkit-2.65.0 lib/blocks/convert.rb
bake-toolkit-2.64.4 lib/blocks/convert.rb
bake-toolkit-2.64.3 lib/blocks/convert.rb
bake-toolkit-2.64.2 lib/blocks/convert.rb
bake-toolkit-2.64.1 lib/blocks/convert.rb
bake-toolkit-2.64.0 lib/blocks/convert.rb
bake-toolkit-2.63.2 lib/blocks/convert.rb
bake-toolkit-2.63.1 lib/blocks/convert.rb
bake-toolkit-2.63.0 lib/blocks/convert.rb