Module: Lmkplz::External

Defined in:
lib/lmkplz/metal.rb

Class Method Summary collapse

Class Method Details

.debug_pathObject



16
17
18
# File 'lib/lmkplz/metal.rb', line 16

def self.debug_path
  "ext/kkttyl/target/debug/libkkttyl.#{FFI::Platform::LIBSUFFIX}"
end

.pathObject



3
4
5
6
7
8
9
10
# File 'lib/lmkplz/metal.rb', line 3

def self.path
  if $USE_DEBUG_KKTTYL
    warn "Using debug build"
    debug_path
  else
    release_path
  end
end

.release_pathObject



12
13
14
# File 'lib/lmkplz/metal.rb', line 12

def self.release_path
  "ext/kkttyl/target/release/libkkttyl.#{FFI::Platform::LIBSUFFIX}"
end