Sha256: 35dfb61578f7ca6ffc319de0eb6eaaea20404d39f05012a8de7a6ac892124b56

Contents?: true

Size: 1.98 KB

Versions: 8

Compression:

Stored size: 1.98 KB

Contents

if defined?(RUBY_ENGINE) && 'rbx' == RUBY_ENGINE
  # create dummy Makefile to indicate success
  f = File.open(File.join(File.dirname(__FILE__), "Makefile"), "w")
  f.write("all:\n\techo all\ninstall:\n\techo installed\n")
  f.close
  return
end

# autodetect ruby headers
unless ARGV.any? {|arg| arg.include?('--with-ruby-include') }
  require 'rbconfig'
  bindir = RbConfig::CONFIG['bindir']
  if bindir =~ %r{(^.*/\.rbenv/versions)/([^/]+)/bin$}
    ruby_include = "#{$1}/#{$2}/include/ruby-1.9.1/ruby-#{$2}"
    ruby_include = "#{ENV['RBENV_ROOT']}/sources/#{$2}/ruby-#{$2}" unless File.exist?(ruby_include)
    ARGV << "--with-ruby-include=#{ruby_include}"
  elsif bindir =~ %r{(^.*/\.rvm/rubies)/([^/]+)/bin$}
    ruby_include = "#{$1}/#{$2}/include/ruby-1.9.1/#{$2}"
    ruby_include = "#{ENV['rvm_path']}/src/#{$2}" unless File.exist?(ruby_include)
    ARGV << "--with-ruby-include=#{ruby_include}"
  end
end

require "mkmf"

RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']

require "debase/ruby_core_source"

hdrs = proc {
  have_header("vm_core.h") and
  (have_header("iseq.h") or have_header("iseq.h", ["vm_core.h"])) and
  have_header("version.h")
}

# Allow use customization of compile options. For example, the
# following lines could be put in config_options to to turn off
# optimization:
#   $CFLAGS='-fPIC -fno-strict-aliasing -g3 -ggdb -O2 -fPIC'
config_file = File.join(File.dirname(__FILE__), 'config_options.rb')
load config_file if File.exist?(config_file)

if ENV['debase_debug']
  $CFLAGS+=' -Wall -Werror' 
  $CFLAGS+=' -g3'
end

dir_config("ruby")
if !Debase::RubyCoreSource.create_makefile_with_core(hdrs, "attach")
  STDERR.print("Makefile creation failed\n")
  STDERR.print("*************************************************************\n\n")
  STDERR.print("  NOTE: If your headers were not found, try passing\n")
  STDERR.print("        --with-ruby-include=PATH_TO_HEADERS      \n\n")
  STDERR.print("*************************************************************\n\n")
  exit(1)
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
avalara_sdk-24.12.2 vendor/bundle/ruby/2.7.0/gems/debase-0.2.5.beta2/ext/attach/extconf.rb
avalara_sdk-24.12.1 vendor/bundle/ruby/2.7.0/gems/debase-0.2.5.beta2/ext/attach/extconf.rb
avalara_sdk-24.12.0 vendor/bundle/ruby/2.7.0/gems/debase-0.2.5.beta2/ext/attach/extconf.rb
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/debase-0.2.5.beta2/ext/attach/extconf.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/debase-0.2.5.beta1/ext/attach/extconf.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/debase-0.2.5.beta1/ext/attach/extconf.rb
debase-0.2.5.beta2 ext/attach/extconf.rb
debase-0.2.5.beta1 ext/attach/extconf.rb