Sha256: 9fe2c855fa1924b9116e1f77d369f96a6a2771c6631fdcfbafcdc4d0103219ee
Contents?: true
Size: 625 Bytes
Versions: 6
Compression:
Stored size: 625 Bytes
Contents
require "mkmf" $CFLAGS = '-I. -O3 -std=c99' $CPPFLAGS += " -fdeclspec" if CONFIG['CXX'] =~ /clang/ Dir.chdir File.expand_path('..', __FILE__) do $srcs = Dir['**/*.c', '**/*.S'] Dir.glob('libzstd/*') do |path| if Dir.exist?(path) $VPATH << "$(srcdir)/#{path}" $INCFLAGS << " -I$(srcdir)/#{path}" end end end # add include path to the internal folder # $(srcdir) is a root folder, where "extconf.rb" is stored $INCFLAGS << " -I$(srcdir) -I$(srcdir)/libzstd" # add folder, where compiler can search source files $VPATH << "$(srcdir)" create_makefile("zstd-ruby/zstdruby")
Version data entries
6 entries across 6 versions & 1 rubygems