1
0
Fork 0
mirror of https://github.com/rubyjs/libv8 synced 2023-03-27 23:21:48 -04:00
libv8/lib/libv8.rb
2012-04-25 22:46:30 -05:00

28 lines
391 B
Ruby

require 'pathname'
require 'libv8/version'
module Libv8
module_function
def libv8(name)
File.expand_path "../../vendor/v8/out/native/libv8_#{name}.a", __FILE__
end
def libv8_base
libv8 :base
end
def libv8_snapshot
libv8 :snapshot
end
def libv8_nosnapshot
libv8 :nosnapshot
end
def libv8_ldflags
"-l#{libv8_base} -l#{libv8_snapshot}"
end
end