Sha256: c133006235de49903395f699b6fa8ab0f2a8bdfe5d2612d107157c8fd19ce75e
Contents?: true
Size: 843 Bytes
Versions: 5
Compression:
Stored size: 843 Bytes
Contents
require 'mittsu/renderers/generic_lib' module Mittsu module GLFWLib extend GenericLib class Linux < GenericLib::Linux def initialize(loader = Linux) @loader = loader end class << self def libgl_paths Dir.glob('/usr/lib*/**/libglfw*.so*') rescue [] end def ldconfig `ldconfig -p | grep 'libglfw3\\?\\.so'`.lines rescue [] end end end class Windows < GenericLib::Base end class MacOS < GenericLib::Base def path '/usr/local/lib' end def file matches = Dir.glob('/usr/local/lib/libglfw*.dylib').map { |path| File.basename(path) } return matches.find { |m| m == 'libglfw3.dylib' || m == 'libglfw.3.dylib' } || matches.first end end end end
Version data entries
5 entries across 5 versions & 1 rubygems