Sha256: c90738073c44f2d030a6803214981a93287c67e2f08079fa45226bdfbf814480

Contents?: true

Size: 693 Bytes

Versions: 1

Compression:

Stored size: 693 Bytes

Contents

#!ruby

require "mkmf"

$INCFLAGS = %w(
  -I$(srcdir)/../contrib
  -I$(srcdir)/../contrib/zstd/lib
  -I$(srcdir)/../contrib/zstd/lib/common
  -I$(srcdir)/../contrib/zstd/lib/dictBuilder
  -I$(srcdir)/../contrib/zstd/lib/legacy
).join(" ") + " #$INCFLAGS"

#dir = File.dirname(__FILE__).gsub(/[\[\{\?\*]/, "[\\0]")
#filepattern = "{.,../contrib/zstd}/**/*.c"
#target = File.join(dir, filepattern)
#files = Dir.glob(target).sort.map { |n| File.basename n }
#$srcs = files
#$VPATH.push "$(srcdir)/../contrib/zstd", "$(srcdir)/../contrib/zstd/legacy"

if RbConfig::CONFIG["arch"] =~ /mingw/
  $LDFLAGS << " -static-libgcc"
end

create_makefile File.join(RUBY_VERSION.slice(/\d+\.\d+/), "extzstd")

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
extzstd-0.1.1 ext/extconf.rb