2022-01-18 08:03:19 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'mkmf'
|
|
|
|
|
2022-01-20 18:06:56 -05:00
|
|
|
$CFLAGS += ' -pedantic -Wall -Wextra'
|
|
|
|
|
2022-01-20 06:34:12 -05:00
|
|
|
raise 'libkernaux not found' unless have_library 'kernaux'
|
2022-01-18 12:24:50 -05:00
|
|
|
|
2022-01-20 14:13:33 -05:00
|
|
|
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
|
|
|
|
|
2022-01-29 17:12:09 -05:00
|
|
|
have_func 'kernaux_utoa'
|
|
|
|
have_func 'kernaux_itoa'
|
2022-01-18 12:24:50 -05:00
|
|
|
have_func 'kernaux_utoa10'
|
|
|
|
have_func 'kernaux_itoa10'
|
2022-01-23 16:40:13 -05:00
|
|
|
have_func 'kernaux_utoa16'
|
|
|
|
have_func 'kernaux_itoa16'
|
2022-01-18 12:24:50 -05:00
|
|
|
|
2022-01-20 18:06:56 -05:00
|
|
|
have_func 'kernaux_snprintf'
|
|
|
|
|
2022-01-21 16:23:40 -05:00
|
|
|
have_func 'kernaux_cmdline'
|
|
|
|
|
2022-01-20 06:34:12 -05:00
|
|
|
raise 'can\'t create Makefile' unless create_makefile 'kernaux/default'
|