Sha256: bfe08ab794e42b5e2efb6a3e310250c0ba8e77634c002603dec4c604cbc2536b

Contents?: true

Size: 724 Bytes

Versions: 7

Compression:

Stored size: 724 Bytes

Contents

require 'mkmf'

targets_list_file = File.expand_path('../targets/list', __FILE__)
targets = File.readlines(targets_list_file).map(&:chomp)
target = (with_config('target') || 'compact').downcase
raise "Invalid target '#{target}'." unless targets.include? target
target_dir = File.join(File.dirname(__FILE__), 'targets', target)
target_defs_file = File.join(target_dir, target, "defs")
$defs.concat File.readlines(target_defs_file).map{ |e| "-D#{e.chomp}" } if File.exist? target_defs_file
$defs.push('-Wall') if enable_config('all-warnings')
$srcs = Dir.glob(File.join(target_dir, "*.{c,s,S}" ))
create_makefile('digest/kangarootwelve', target_dir)
File.write('Makefile', 'V = 1', mode: 'a') if enable_config('verbose-mode')

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
digest-kangarootwelve-0.5.0 ext/digest/kangarootwelve/extconf.rb
digest-kangarootwelve-0.4.8 ext/digest/kangarootwelve/extconf.rb
digest-kangarootwelve-0.4.7 ext/digest/kangarootwelve/extconf.rb
digest-kangarootwelve-0.4.6 ext/digest/kangarootwelve/extconf.rb
digest-kangarootwelve-0.4.5 ext/digest/kangarootwelve/extconf.rb
digest-kangarootwelve-0.4.4 ext/digest/kangarootwelve/extconf.rb
digest-kangarootwelve-0.4.2 ext/digest/kangarootwelve/extconf.rb