Sha256: 29104185363f17996aa8e0c25f0abe89e4e9d4551b10c0fa8201b6b78d1f649d
Contents?: true
Size: 981 Bytes
Versions: 5
Compression:
Stored size: 981 Bytes
Contents
require "bundler/gem_tasks" require 'rake/testtask' require 'ffi' task :default => :compile desc "Compile extension" task :compile do prefix = "lib.target/" if FFI::Platform.mac? prefix = "" end path = File.expand_path("ext/snowcrash/build/out/Release/#{prefix}libsnowcrash.#{FFI::Platform::LIBSUFFIX}", File.dirname(__FILE__)) puts path if !File.exists?(path) || ENV['RECOMPILE'] puts "Compiling extension..." `cd #{File.expand_path("ext/snowcrash/")} && ./configure --shared && make` else puts "Extension already compiled. To recompile set env variable RECOMPILE=true." end end Rake::TestTask.new(:test) do |test| Rake::Task["compile"].invoke test.libs << 'lib' << 'test' test.test_files = FileList['test/*_test.rb'] test.verbose = true end # ----- Documentation tasks --------------------------------------------------- require 'yard' YARD::Rake::YardocTask.new(:doc) do |t| t.options = %w| --embed-mixins --markup=markdown | end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
redsnow-0.1.3 | Rakefile |
redsnow-0.1.2 | Rakefile |
redsnow-0.1.1 | Rakefile |
redsnow-0.1.0 | Rakefile |
redsnow-0.0.8 | Rakefile |