-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmrbgem.rake
More file actions
27 lines (26 loc) · 927 Bytes
/
Copy pathmrbgem.rake
File metadata and controls
27 lines (26 loc) · 927 Bytes
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
MRuby::Gem::Specification.new('mruby-glsl') do |spec|
spec.license = 'MIT'
spec.authors = '@kjunichi'
if RUBY_PLATFORM =~ /darwin/i
spec.cc.flags << '-I/usr/local/include'
spec.cc.flags << "-I`xcrun --sdk macosx --show-sdk-path`/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers"
spec.linker.flags << '-framework OpenGL -L/usr/local/opt/glfw/lib -lglfw'
end
if RUBY_PLATFORM =~ /linux/i
spec.linker.libraries << 'glfw'
spec.linker.libraries << 'GLEW'
spec.linker.libraries << 'GLU'
spec.linker.libraries << 'GL'
end
case RUBY_PLATFORM
when /mswin|mingw/
spec.linker.libraries << 'glfw3'
spec.linker.libraries << 'glew32'
spec.linker.libraries << 'glu32'
spec.linker.libraries << 'opengl32'
spec.linker.libraries << 'user32'
spec.linker.libraries << 'Advapi32'
spec.linker.libraries << 'gdi32'
spec.linker.libraries << 'shell32'
end
end