Sha256: a2ce31baa6d19bb9395592c5905c5aaa22724169bf7cf61757268fed0bd3e0a4

Contents?: true

Size: 1.34 KB

Versions: 5

Compression:

Stored size: 1.34 KB

Contents

require 'mj/tools/subprocess'
require 'build-tool/build-system/base'

module BuildTool; module BuildSystem


    #
    # 
    #
    class None < Base

        include MJ::Tools::SubProcess

        def initialize( *args )
            super( *args )
        end

        #
        ### ATTRIBUTES
        #

        # Check if the module is configured
        def configured?
            true
        end

        def name
            "none"
        end

        #
        ### METHODS
        #

        def[]( var )
            if @options.has_key? var
                return @options[var]
            end

            # case var

            # else
                # *TODO* raise correct exception
                raise NotImplementedError

            # end
        end

        def[]=( var, val )
            @options[var] = val
        end

        # Configure the module
        def reconfigure()
            0
        end

        # Execute a cmake command in the context of the build directory
        def cmake( command, wd = build_directory )
            0
        end

        def configure
            0
        end

        def install( fast )
            0
        end

        def install_fast_supported?
            true
        end

        def make( target = nil )
            0
        end

    end # class CMake


end; end # module BuildTool::BuildSystem

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
build-tool-0.3.3 lib/build-tool/build-system/none.rb
build-tool-0.3.2 lib/build-tool/build-system/none.rb
build-tool-0.3.1 lib/build-tool/build-system/none.rb
build-tool-0.3 lib/build-tool/build-system/none.rb
build-tool-0.2 lib/build-tool/build-system/none.rb