Sha256: adb918b7c47ee33e5de8788bc8af4901758a322c0931d18675144cd4f18155bd

Contents?: true

Size: 1.17 KB

Versions: 8

Compression:

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

8 entries across 8 versions & 1 rubygems

Version Path
bake-toolkit-2.50.0 lib/blocks/convert.rb
bake-toolkit-2.49.0 lib/blocks/convert.rb
bake-toolkit-2.48.3 lib/blocks/convert.rb
bake-toolkit-2.48.2 lib/blocks/convert.rb
bake-toolkit-2.48.1 lib/blocks/convert.rb
bake-toolkit-2.48.0 lib/blocks/convert.rb
bake-toolkit-2.47.1 lib/blocks/convert.rb
bake-toolkit-2.47.0 lib/blocks/convert.rb