roc/examples/ruby-interop/extconf.rb
2022-08-11 17:15:07 -04:00

12 lines
361 B
Ruby

#!/usr/bin/env ruby
require 'mkmf'
# preparation for compilation goes here
dir_config('') # include the current directory in the library search path
have_library('hello') # depend on `libhello.dylib` being in the current path
# (.dylib is macOS-specific; other OSes would have different extensions)
create_header
create_makefile 'demo'