Sha256: 947418590cc37c1dd004f919fb1bab05a2e0a2a4b69d911e44b4cc4fbd5e5202

Contents?: true

Size: 564 Bytes

Versions: 6

Compression:

Stored size: 564 Bytes

Contents

require 'rbconfig'
require 'mkmf'

if RbConfig::CONFIG['host_os'] =~ /darwin/ then
  $CFLAGS += " -DUSE_INSTANT_OSX=1 -Wall"
  $LDFLAGS += " -framework CoreServices"
elsif RbConfig::CONFIG['host_os'] =~ /win32/ or RbConfig::CONFIG['host_os'] =~ /mingw/ then
  $CFLAGS += " -DUSE_INSTANT_WINDOWS=1"
else
  if have_library("rt", "clock_gettime") then
    $CFLAGS += " -DUSE_INSTANT_CLOCK_GETTIME=1"
  end
end

# put in a different location if on windows so we can have fat binaries
subdir = RUBY_VERSION.gsub(/\.\d$/,'')
create_makefile("hitimes/#{subdir}/hitimes")

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hitimes-1.2.1-java ext/hitimes/c/extconf.rb
hitimes-1.2.1-x86-mswin32 ext/hitimes/c/extconf.rb
hitimes-1.2.1 ext/hitimes/c/extconf.rb
hitimes-1.2.0-x86-mswin32 ext/hitimes/c/extconf.rb
hitimes-1.2.0-java ext/hitimes/c/extconf.rb
hitimes-1.2.0 ext/hitimes/c/extconf.rb