Class: Libv8::Location::System

Inherits:
Libv8::Location show all
Defined in:
ext/libv8/location.rb

Defined Under Namespace

Classes: NotFoundError

Instance Method Summary collapse

Methods inherited from Libv8::Location

#install!, load!

Instance Method Details

#configure(context = MkmfContext.new) ⇒ Object



52
53
54
55
56
57
# File 'ext/libv8/location.rb', line 52

def configure(context = MkmfContext.new)
  context.send(:dir_config, 'v8')
  context.send(:find_header, 'v8.h') or fail NotFoundError
  context.send(:find_header, 'libplatform/libplatform.h') or fail NotFoundError
  context.send(:have_library, 'v8') or fail NotFoundError
end