Top Level Namespace

Defined Under Namespace

Modules: Ob64

Constant Summary collapse

MAKE =
find_executable("make") || find_executable("gmake")
CWD =
__dir__
LIBBASE64_DIR =
File.join(CWD, "..", "..", "vendor", "libbase64")

Instance Method Summary collapse

Instance Method Details

#run_cmake(args) ⇒ Object



13
14
15
16
# File 'ext/ob64/extconf.rb', line 13

def run_cmake(args)
  pid = Process.spawn("cmake #{args}")
  Process.waitpid(pid)
end

#sys(cmd) ⇒ Object



5
6
7
8
9
10
11
# File 'ext/ob64/extconf.rb', line 5

def sys(cmd)
  puts " -- #{cmd}"
  unless ret = xsystem(cmd)
    raise "ERROR: '#{cmd}' failed"
  end
  ret
end