-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathimgui-bindings.gemspec
56 lines (51 loc) · 1.6 KB
/
imgui-bindings.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# -*- encoding: utf-8 -*-
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
Gem::Specification.new do |spec|
spec.name = "imgui-bindings"
spec.version = "0.1.16"
spec.authors = ["vaiorabbit"]
spec.email = ["[email protected]"]
spec.summary = %q{Bindings for Dear ImGui}
spec.homepage = "https://github.com/vaiorabbit/ruby-imgui"
spec.require_paths = ["lib"]
spec.license = "Zlib"
spec.description = <<-DESC
Ruby bindings for Dear ImGui ( https://github.com/ocornut/imgui ).
DESC
spec.required_ruby_version = '>= 3.0.0'
spec.add_runtime_dependency 'ffi', '~> 1.16'
spec.add_runtime_dependency 'opengl-bindings2', '~> 2'
spec.files = Dir.glob("lib/*.rb") +
["README.md", "LICENSE.txt", "ChangeLog"]
if spec.platform == "ruby"
spec.files += Dir.glob("lib/*")
else
case spec.platform.os
when "linux"
if spec.platform.cpu == "aarch64"
spec.files += Dir.glob("lib/*.aarch64.so")
elsif spec.platform.cpu == "x86_64"
spec.files += Dir.glob("lib/*.x86_64.so")
else
raise ArgumentError
end
when "darwin"
if spec.platform.cpu == "arm64"
spec.files += Dir.glob("lib/*.arm64.dylib")
elsif spec.platform.cpu == "x86_64"
spec.files += Dir.glob("lib/*.x86_64.dylib")
else
raise ArgumentError
end
when "mingw"
if spec.platform.cpu == "x64"
spec.files += Dir.glob("lib/*.dll")
else
raise ArgumentError
end
else
raise ArgumentError
end
end
end