Sha256: 63a73ea2827c5a74440b674e4630475f3e4d37accf350dcf10a1320217abefc6

Contents?: true

Size: 811 Bytes

Versions: 24

Compression:

Stored size: 811 Bytes

Contents

require 'cxxproject/buildingblocks/building_block'
require 'cxxproject/buildingblocks/has_sources_mixin'
require 'cxxproject/buildingblocks/has_includes_mixin'

module Cxxproject
  module SingleSourceModule
    def get_task_name()
      get_sources_task_name
    end

    def convert_to_rake()
      objects_multitask = prepare_tasks_for_objects()

      if objects_multitask
        namespace "compile" do
          desc "compile sources in #{@name}-configuration"
          task @name => objects_multitask
        end
        objects_multitask.add_description("compile sources only")
      end

      setup_rake_dependencies(objects_multitask)
      objects_multitask
    end
  end

  class SingleSource < BuildingBlock
    include HasSources
    include HasIncludes

    include SingleSourceModule
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
cxxproject-0.6.29 lib/cxxproject/buildingblocks/single_source.rb
cxxproject-0.6.28 lib/cxxproject/buildingblocks/single_source.rb
cxxproject-0.6.27 lib/cxxproject/buildingblocks/single_source.rb
cxxproject-0.6.26 lib/cxxproject/buildingblocks/single_source.rb
cxxproject-0.6.25 lib/cxxproject/buildingblocks/single_source.rb
cxxproject-0.6.24 lib/cxxproject/buildingblocks/single_source.rb
cxxproject-0.6.23 lib/cxxproject/buildingblocks/single_source.rb
cxxproject-0.6.21 lib/cxxproject/buildingblocks/single_source.rb
cxxproject-0.6.18 lib/cxxproject/buildingblocks/single_source.rb
cxxproject-0.6.17 lib/cxxproject/buildingblocks/single_source.rb
cxxproject-0.6.14 lib/cxxproject/buildingblocks/single_source.rb
cxxproject-0.6.12 lib/cxxproject/buildingblocks/single_source.rb
cxxproject-0.6.13 lib/cxxproject/buildingblocks/single_source.rb
cxxproject-0.6.11 lib/cxxproject/buildingblocks/single_source.rb
cxxproject-0.6.10 lib/cxxproject/buildingblocks/single_source.rb
cxxproject-0.6.9 lib/cxxproject/buildingblocks/single_source.rb
cxxproject-0.6.6 lib/cxxproject/buildingblocks/single_source.rb
cxxproject-0.6.5 lib/cxxproject/buildingblocks/single_source.rb
cxxproject-0.6.4 lib/cxxproject/buildingblocks/single_source.rb
cxxproject-0.6.2 lib/cxxproject/buildingblocks/single_source.rb