module FindLib

Defined in:

find_lib.cr

Constant Summary

PLATFORM_SUFFIX = begin {% if flag?(:darwin) %} "dylib" {% else %}{% if flag?(:windows) %} "dll" {% else %}{% if ((flag?(:linux)) || (flag?(:openbsd))) || (flag?(:freebsd)) %} "so" {% else %} "so" {% end %}{% end %}{% end %} end
SEARCH_PATHS = begin x = [] of String x << "/usr/local/lib" x << "/opt/local/lib" x << "/usr/lib" {% if flag?(:x86_64) %} x << "/usr/local/lib64" x << "/opt/local/lib64" x << "/usr/lib64" x << "/usr/lib/x86_64-linux-gnu/" {% else %}{% if flag?(:i686) %} x << "/usr/lib/i386-linux-gnu" {% end %}{% end %} {% if flag?(:windows) %} (ENV["PATH"]? || "").split(";").each do |path| x << path unless path.blank? end {% else %} (ENV["LIBRARY_PATH"]? || "").split(":").each do |path| x << path unless path.blank? end (ENV["LD_LIBRARY_PATH"]? || "").split(":").each do |path| x << path unless path.blank? end {% end %} x end

Class Method Summary

Class Method Detail

def self.find(name : String) #

[View source]
def self.find(names : Array(String)) #

[View source]