Sha256: 51e264af5e6be0a8aa12ae14e0b6da220189738234617c2f7a25fde2749450b1
Contents?: true
Size: 946 Bytes
Versions: 3
Compression:
Stored size: 946 Bytes
Contents
require "mkmf-rice" abort "Missing stdc++" unless have_library("stdc++") $CXXFLAGS += " -std=c++14 -DEIGEN_MPL2_ONLY" $CXXFLAGS += " -march=native" apple_clang = RbConfig::CONFIG["CC_VERSION_MESSAGE"] =~ /apple clang/i if apple_clang # silence rice warnings $CXXFLAGS += " -Wno-deprecated-declarations" else # silence eigen warnings $CXXFLAGS += " -Wno-ignored-attributes -Wno-deprecated-copy" end # silence tomoto warnings $CXXFLAGS += " -Wno-unused-variable -Wno-switch" ext = File.expand_path(".", __dir__) tomoto = File.expand_path("../../vendor/tomotopy/src/TopicModel", __dir__) eigen = File.expand_path("../../vendor/eigen", __dir__) eigen_rand = File.expand_path("../../vendor/EigenRand", __dir__) variant = File.expand_path("../../vendor/variant/include", __dir__) $srcs = Dir["{#{ext},#{tomoto}}/*.cpp"] $INCFLAGS += " -I#{tomoto} -I#{eigen} -I#{eigen_rand} -I#{variant}" $VPATH << tomoto create_makefile("tomoto/ext")
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tomoto-0.2.2 | ext/tomoto/extconf.rb |
tomoto-0.2.1 | ext/tomoto/extconf.rb |
tomoto-0.2.0 | ext/tomoto/extconf.rb |