Sha256: c76e47f019e4ddc4f032c39eed645378e7fef4644f27465e16a5f937f92bf603
Contents?: true
Size: 889 Bytes
Versions: 3
Compression:
Stored size: 889 Bytes
Contents
require 'mkmf' require 'rbconfig' have_header('ruby/thread.h') have_func('rb_thread_call_without_gvl', 'ruby/thread.h') case RbConfig::CONFIG["host_os"] when /darwin/ have_framework("CoreFoundation") have_framework("CoreServices") if RUBY_ENGINE =~ /rbx/ end dir_config('uv') libuv_ok = have_library('uv', 'uv_run', ['uv.h']) ## # Adds -DRBUV_DEBUG for compilation # To turn it on, use: --with-debug or --enable-debug # if debug_arg = with_config("debug") || enable_config("debug") debug_def = "-DRBUV_DEBUG" $defs.push(debug_arg.is_a?(String) ? "#{debug_def}=#{debug_arg}" : debug_def) unless $defs.include?(/\A#{debug_arg}/) end case RUBY_ENGINE when /rbx/ $defs.push("-DRBUV_RBX") unless $defs.include? "-DRBUV_RBX" end create_header create_makefile('rbuv/rbuv') unless libuv_ok File.open('Makefile', 'a') do |mf| mf.puts('include ${srcdir}/libuv.mk') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rbuv-0.0.5 | ext/rbuv/extconf.rb |
rbuv-0.0.4 | ext/rbuv/extconf.rb |
rbuv-0.0.3 | ext/rbuv/extconf.rb |