Sha256: bd339a57faaa1b95a5f2f15725dc1312c2a673a9a9f158ef6c99a8d5c424c804

Contents?: true

Size: 524 Bytes

Versions: 2

Compression:

Stored size: 524 Bytes

Contents

require 'kde-build/build_system/cmake'
require 'kde-build/build_system/qtcopy'
require 'kde-build/build_system/autoconf'

module BuildTool; module BuildSystem

@mapping = {
    'cmake'   => CMake,
    'qtcopy'   => QtCopy,
    'autoconf' => AutoConf
}

module_function

def available
    @mapping.keys
end

class UnknownBuildSystemError < Exception; end

def get( name )
    if !available.include? name
        raise UnknownBuildSystemError, "Buildsystem '#{name}' is not supported"
    end
    @mapping[name]
end

end; end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
build-tool-0.0.3 lib/kde-build/build_system.rb
build-tool-0.0.2 lib/kde-build/build_system.rb