Sha256: 5ca73adac17ba29536e1ad47b8a832174078be43a7d4bfd4b4423dc02071f9c5
Contents?: true
Size: 651 Bytes
Versions: 3
Compression:
Stored size: 651 Bytes
Contents
require 'mkmf' flags = [] unless have_func('rb_thread_blocking_region') and have_macro('RB_UBF_DFL', 'ruby.h') abort "Rev requires Ruby 1.9.0 or greater" end if have_header('sys/select.h') flags << '-DEV_USE_SELECT' end if have_header('poll.h') flags << '-DEV_USE_POLL' end if have_header('sys/epoll.h') flags << '-DEV_USE_EPOLL' end if have_header('sys/event.h') and have_header('sys/queue.h') flags << '-DEV_USE_KQUEUE' end if have_header('port.h') flags << '-DEV_USE_PORT' end if have_header('sys/inotify.h') flags << '-DEV_USE_INOTIFY' end $CFLAGS << ' ' << flags.join(' ') dir_config('rev_ext') create_makefile('rev_ext')
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rev-0.1.4 | ext/rev/extconf.rb |
rev-0.1.2 | ext/rev/extconf.rb |
rev-0.1.3 | ext/rev/extconf.rb |