Sha256: 6f3b4b9adba758e54ea322d14f3a0bcd93cb20861c3adf62ea17970c046d686f

Contents?: true

Size: 847 Bytes

Versions: 4

Compression:

Stored size: 847 Bytes

Contents

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

abort 'numo/narray.h not found.' unless have_header('numo/narray.h')

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
  abort 'libnarray.a not found.' unless have_library('narray', 'nary_new')
end

abort 'libstdc++ is not found.' unless have_library('stdc++')

$srcs = Dir.glob("#{$srcdir}/**/*.cpp").map { |path| File.basename(path) }
$srcs.concat(%w[daxpy.c ddot.c dnrm2.c dscal.c])

$INCFLAGS << " -I$(srcdir)/src"
$VPATH << "$(srcdir)/src"
$VPATH << "$(srcdir)/src/blas"

create_makefile('numo/liblinear/liblinearext')

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
numo-liblinear-2.2.0 ext/numo/liblinear/extconf.rb
numo-liblinear-2.1.1 ext/numo/liblinear/extconf.rb
numo-liblinear-2.1.0 ext/numo/liblinear/extconf.rb
numo-liblinear-2.0.0 ext/numo/liblinear/extconf.rb