Sha256: 0c3594f8517b8a621e50dc77e24d5b7bd481442baee12d6f212f4addab6b620c

Contents?: true

Size: 622 Bytes

Versions: 48

Compression:

Stored size: 622 Bytes

Contents

# frozen_string_literal: true

require 'mkmf'
require 'numo/narray'

$LOAD_PATH.each do |lp|
  if File.exist?(File.join(lp, 'numo/numo/narray.h'))
    $INCFLAGS = "-I#{lp}/numo #{$INCFLAGS}"
    break
  end
end

unless have_header('numo/narray.h')
  puts 'numo/narray.h not found.'
  exit(1)
end

if RUBY_PLATFORM =~ /mswin|cygwin|mingw/
  $LOAD_PATH.each do |lp|
    if File.exist?(File.join(lp, 'numo/libnarray.a'))
      $LDFLAGS = "-L#{lp}/numo #{$LDFLAGS}"
      break
    end
  end
  unless have_library('narray', 'nary_new')
    puts 'libnarray.a not found.'
    exit(1)
  end
end

create_makefile('rumale/rumale')

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
rumale-0.23.0 ext/rumale/extconf.rb
rumale-0.22.5 ext/rumale/extconf.rb
rumale-0.22.4 ext/rumale/extconf.rb
rumale-0.22.3 ext/rumale/extconf.rb
rumale-0.22.2 ext/rumale/extconf.rb
rumale-0.22.1 ext/rumale/extconf.rb
rumale-0.22.0 ext/rumale/extconf.rb
rumale-0.21.0 ext/rumale/extconf.rb
rumale-0.20.3 ext/rumale/extconf.rb
rumale-0.20.2 ext/rumale/extconf.rb
rumale-0.20.1 ext/rumale/extconf.rb
rumale-0.20.0 ext/rumale/extconf.rb
rumale-0.19.3 ext/rumale/extconf.rb
rumale-0.19.2 ext/rumale/extconf.rb
rumale-0.19.1 ext/rumale/extconf.rb
rumale-0.19.0 ext/rumale/extconf.rb
rumale-0.18.7 ext/rumale/extconf.rb
rumale-0.18.6 ext/rumale/extconf.rb
rumale-0.18.5 ext/rumale/extconf.rb
rumale-0.18.4 ext/rumale/extconf.rb