Class: SystemType

Inherits:
Object
  • Object
show all
Defined in:
lib/makeconf/systemtype.rb

Overview

Detect the build system type and allow for cross-compilation

Constant Summary collapse

@@build =

FIXME: detect ‘build’ properly

RbConfig::CONFIG['host_os']
@@host =
nil
@@target =
nil

Class Method Summary collapse

Class Method Details

.buildObject



23
24
25
# File 'lib/makeconf/systemtype.rb', line 23

def SystemType.build
  @@build
end

.hostObject



27
28
29
# File 'lib/makeconf/systemtype.rb', line 27

def SystemType.host
  @@host
end

.targetObject



31
32
33
# File 'lib/makeconf/systemtype.rb', line 31

def SystemType.target
  @@target
end