forked from vaiorabbit/raylib-bindings
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathraylib-bindings.gemspec
More file actions
56 lines (51 loc) · 1.71 KB
/
raylib-bindings.gemspec
File metadata and controls
56 lines (51 loc) · 1.71 KB
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 = "raylib-bindings"
spec.version = "0.7.15"
spec.authors = ["vaiorabbit"]
spec.email = ["vaiorabbit@gmail.com"]
spec.summary = %q{Ruby bindings for raylib, raygui and Physac}
spec.homepage = "https://github.com/vaiorabbit/raylib-bindings"
spec.require_paths = ["lib"]
spec.license = "Zlib"
spec.description = <<-DESC
Ruby bindings for raylib ( https://github.com/raysan5/raylib ), raygui ( https://github.com/raysan5/raygui ) and Physac ( https://github.com/raysan5/physac ).
DESC
spec.required_ruby_version = '>= 3.0.0'
spec.add_runtime_dependency 'ffi', '~> 1.16'
spec.files = Dir.glob("lib/*.rb") +
["README.md", "LICENSE.txt", "ChangeLog"] +
["examples/template.rb"]
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