Sha256: 7ae59f12d5c299ee763c34cb974942ef00472a3ba5f3f5299541484ea5f0be5d

Contents?: true

Size: 916 Bytes

Versions: 8

Compression:

Stored size: 916 Bytes

Contents

# frozen_string_literal: true

require "rubygems"

# Write a dummy Makefile on Windows because we use the pure Ruby implementation there
if Gem.win_platform?
  File.write("Makefile", "all install::\n")
  File.write("nio4r_ext.so", "")
  exit
end

require "mkmf"

have_header("unistd.h")

$defs << "-DEV_USE_LINUXAIO"     if have_header("linux/aio_abi.h")
$defs << "-DEV_USE_SELECT"       if have_header("sys/select.h")
$defs << "-DEV_USE_POLL"         if have_type("port_event_t", "poll.h")
$defs << "-DEV_USE_EPOLL"        if have_header("sys/epoll.h")
$defs << "-DEV_USE_KQUEUE"       if have_header("sys/event.h") && have_header("sys/queue.h")
$defs << "-DEV_USE_PORT"         if have_type("port_event_t", "port.h")
$defs << "-DHAVE_SYS_RESOURCE_H" if have_header("sys/resource.h")

CONFIG["optflags"] << " -fno-strict-aliasing" unless RUBY_PLATFORM =~ /mswin/

dir_config "nio4r_ext"
create_makefile "nio4r_ext"

Version data entries

8 entries across 8 versions & 5 rubygems

Version Path
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/nio4r-2.5.2/ext/nio4r/extconf.rb
argon-1.3.1 vendor/bundle/ruby/2.7.0/gems/nio4r-2.5.2/ext/nio4r/extconf.rb
symbolic_enum-1.1.5 vendor/bundle/ruby/2.7.0/gems/nio4r-2.5.2/ext/nio4r/extconf.rb
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/nio4r-2.5.2/ext/nio4r/extconf.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/nio4r-2.5.2/ext/nio4r/extconf.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/nio4r-2.5.2/ext/nio4r/extconf.rb
nio4r-2.5.2-java ext/nio4r/extconf.rb
nio4r-2.5.2 ext/nio4r/extconf.rb