Sha256: e87c1a262c181d4e308bcc89d6121db9d06e44dfa518fc9cd2d4b3cff94d3483

Contents?: true

Size: 798 Bytes

Versions: 6

Compression:

Stored size: 798 Bytes

Contents

# frozen_string_literal: true

require "mkmf-rice"
require "numo/narray"

vendor = File.expand_path("../../vendor", __dir__)

apple_clang = RbConfig::CONFIG["CC_VERSION_MESSAGE"] =~ /apple clang/i

# check omp first
if have_library("omp") || have_library("gomp")
  $CXXFLAGS += " -Xclang" if apple_clang
  $CXXFLAGS += " -fopenmp"
end

# numo-narray
numo = File.join(Gem.loaded_specs["numo-narray"].require_path, "numo")
abort "Numo header not found" unless find_header("numo/narray.h", numo)
abort "Numo library not found" if Gem.win_platform? && !find_library("narray", nil, numo)
find_header("numo.hpp", File.expand_path("../../include", __dir__))

dir_config "umap", vendor, vendor
dir_config "umappp", File.join(vendor, "umappp"), File.join(vendor, "umappp")

create_makefile("umappp/umappp")

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
umappp-0.2.0 ext/umappp/extconf.rb
umappp-0.1.6 ext/umappp/extconf.rb
umappp-0.1.5 ext/umappp/extconf.rb
umappp-0.1.4 ext/umappp/extconf.rb
umappp-0.1.3 ext/umappp/extconf.rb
umappp-0.1.2 ext/umappp/extconf.rb