Class: Libv8::Location::Vendor
- Inherits:
-
Libv8::Location
- Object
- Libv8::Location
- Libv8::Location::Vendor
- Defined in:
- ext/libv8/location.rb
Defined Under Namespace
Classes: ArchiveNotFound
Instance Method Summary collapse
Methods inherited from Libv8::Location
Instance Method Details
#configure(context = MkmfContext.new) ⇒ Object
29 30 31 32 |
# File 'ext/libv8/location.rb', line 29 def configure(context = MkmfContext.new) context.incflags.insert 0, Libv8::Paths.include_paths.map{|p| "-I#{p}"}.join(" ") + " " context.ldflags.insert 0, Libv8::Paths.object_paths.join(" ") + " " end |
#install! ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'ext/libv8/location.rb', line 21 def install! require File. '../builder', __FILE__ builder = Libv8::Builder.new exit_status = builder.build_libv8! super if exit_status == 0 verify_installation! return exit_status end |
#verify_installation! ⇒ Object
34 35 36 37 38 |
# File 'ext/libv8/location.rb', line 34 def verify_installation! Libv8::Paths.object_paths.each do |p| fail ArchiveNotFound, p unless File.exists? p end end |