1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/bigdecimal/util/extconf.rb

25 lines
622 B
Ruby
Raw Normal View History

# frozen_string_literal: false
require 'mkmf'
checking_for(checking_message("Windows")) do
case RUBY_PLATFORM
when /cygwin|mingw/
if ARGV.include?('-rdevkit') # check `rake -rdevkit compile` case
base_dir = File.expand_path('../../../..', __FILE__)
build_dir = File.join(base_dir, "tmp", RUBY_PLATFORM, "bigdecimal", RUBY_VERSION, "")
else
build_dir = "$(TARGET_SO_DIR)../"
end
$libs << " #{build_dir}bigdecimal.so"
true
when /mswin/
$DLDFLAGS << " -libpath:.."
$libs << " bigdecimal-$(arch).lib"
true
else
false
end
end
create_makefile('bigdecimal/util')