lib/libtcod/bindings.rb in libtcod-0.0.4 vs lib/libtcod/bindings.rb in libtcod-0.0.5
- old
+ new
@@ -3,9 +3,11 @@
module TCOD
extend FFI::Library
if RUBY_PLATFORM.include?('mingw32')
ffi_lib ['libtcod-mingw', File.join(APP_ROOT, "clib/i686/libtcod-mingw.dll").gsub('/', '\\')]
+ elsif RUBY_PLATFORM.include?('darwin')
+ ffi_lib ['libtcod', File.join(APP_ROOT, "clib/amd64/libtcod.dylib")]
elsif RUBY_PLATFORM.include?('x86_64')
ffi_lib ['libtcod', File.join(APP_ROOT, "clib/amd64/libtcod.so")]
else
ffi_lib ['libtcod', File.join(APP_ROOT, "clib/i686/libtcod.so")]
end