Sha256: 0de73524929bba395d259007f00805f2b2f45bedd956bec3095508236f7340ac
Contents?: true
Size: 816 Bytes
Versions: 1
Compression:
Stored size: 816 Bytes
Contents
# Generates a makefile for buiding the C extension. #-- # Copyright 2006 Suraj N. Kurapati # See the file named LICENSE for details. require 'mkmf' # check for ruby library require 'rbconfig' # possible names under which Ruby library is installed rubyLibNames = Config::CONFIG.values.join(' '). scan(/-l(ruby\S*)/).flatten.uniq # possible places where Ruby library is installed rubyLibPaths = Config::CONFIG.values.join(' '). scan(/-L(\S+)/).flatten. select {|f| File.exist? f } RUBY_FUNC = 'ruby_init' hasRuby = rubyLibNames.any? do |libName| have_library(libName, RUBY_FUNC) or rubyLibPaths.any? do |libPath| have_library(libName, RUBY_FUNC, libPath) end end # generate the makefile create_makefile 'ruby-vpi' if hasRuby
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-vpi-21.0.0 | ext/extconf.rb |