mwrap.git  about / heads / tags
LD_PRELOAD malloc wrapper + line stats for Ruby
blob 50bfa895b276baabfd29b532e68e403394841438 488 bytes (raw)
$ git show heavy:Rakefile	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 
# Copyright (C) 2018 mwrap hackers <mwrap-public@80x24.org>
# License: GPL-2.0+ <https://www.gnu.org/licenses/gpl-2.0.txt>
require 'rake/testtask'
begin
  require 'rake/extensiontask'
  Rake::ExtensionTask.new('mwrap')
rescue LoadError
  warn 'rake-compiler not available, cross compiling disabled'
end

Rake::TestTask.new(:test)
task :test => :compile
task :default => :compile

c_files = File.readlines('MANIFEST').grep(%r{ext/.*\.[ch]$}).map!(&:chomp!)
task 'compile:mwrap' => c_files

git clone https://80x24.org/mwrap.git