Sha256: ba641c88f67ebdad341b9a1b9290d0d1953f7c46e2d8803b24c5b47f4b240632
Contents?: true
Size: 1020 Bytes
Versions: 1
Compression:
Stored size: 1020 Bytes
Contents
require 'bundler/setup' require 'rake' require 'rake/clean' require 'bundler/gem_tasks' require 'rspec/core/rake_task' require 'ffi-compiler/compile_task' desc "compiler tasks" namespace "ffi-compiler" do FFI::Compiler::CompileTask.new('ext/webp_ffi/webp_ffi') do |c| c.have_header?('stdio.h', '/usr/local/include') c.have_func?('puts') c.have_library?('z') c.have_header?('decode.h', '/usr/local/include') c.have_header?('encode.h', '/usr/local/include') c.have_func?('WebPDecoderConfig') c.have_func?('WebPGetInfo') c.have_library?('webp') c.have_library?('png') c.have_library?('jpeg') c.cflags << "-arch x86_64" if c.platform.mac? c.ldflags << "-arch x86_64" if c.platform.mac? end end task :compile => ["ffi-compiler:default"] desc "run specs" task :spec do RSpec::Core::RakeTask.new end task :default => [:clean, :compile, :spec] CLEAN.include('ext/**/*{.o,.log,.so,.bundle}') CLEAN.include('lib/**/*{.o,.log,.so,.bundle}') CLEAN.include('ext/**/Makefile')
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
webp-ffi-0.1.0 | Rakefile |