1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-11-13 11:04:27 -05:00
libkernaux/pkgs/ruby/ext/default/extconf.rb

16 lines
399 B
Ruby
Raw Normal View History

2022-01-18 08:03:19 -05:00
# frozen_string_literal: true
require 'mkmf'
2022-01-20 06:34:12 -05:00
raise 'libkernaux not found' unless have_library 'kernaux'
raise 'kernaux_assert_do not found' unless have_func 'kernaux_assert_do'
unless have_var 'kernaux_assert_cb', 'kernaux.h'
raise 'kernaux_assert_cb not found'
end
have_func 'kernaux_utoa10'
have_func 'kernaux_itoa10'
2022-01-20 06:34:12 -05:00
raise 'can\'t create Makefile' unless create_makefile 'kernaux/default'