-
Notifications
You must be signed in to change notification settings - Fork 5
/
onnxruntime.gemspec
34 lines (28 loc) · 1.01 KB
/
onnxruntime.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
require_relative "lib/onnxruntime/version"
Gem::Specification.new do |spec|
spec.name = "onnxruntime"
spec.version = OnnxRuntime::VERSION
spec.summary = "High performance scoring engine for ML models"
spec.homepage = "https://github.com/ankane/onnxruntime-ruby"
spec.license = "MIT"
spec.author = "Andrew Kane"
spec.email = "[email protected]"
spec.files = Dir["*.{md,txt}", "{lib}/**/*", "vendor/{LICENSE,*.txt}"]
spec.require_path = "lib"
case spec.platform.to_s
when "x86_64-linux"
spec.files << "vendor/libonnxruntime.so"
when "aarch64-linux"
spec.files << "vendor/libonnxruntime.arm64.so"
when "x86_64-darwin"
spec.files << "vendor/libonnxruntime.dylib"
when "arm64-darwin"
spec.files << "vendor/libonnxruntime.arm64.dylib"
when "x64-mingw"
spec.files << "vendor/onnxruntime.dll"
else
spec.files.concat(Dir["vendor/*.{dll,dylib,so}"])
end
spec.required_ruby_version = ">= 3"
spec.add_dependency "ffi"
end