Sha256: 80c85ed6b7bc1285c859d1154425b5493e6961070dcbbbffbbbd7c084fa124ff
Contents?: true
Size: 1.14 KB
Versions: 3
Compression:
Stored size: 1.14 KB
Contents
require 'rubygems' 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.have_library?('tiff') if c.platform.mac? c.cflags << "-arch x86_64" c.ldflags << "-arch x86_64" end c.ldflags << ENV['LD_FLAGS'] if ENV['LD_FLAGS'] c.cflags << ENV['C_FLAGS'] if ENV['C_FLAGS'] 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
webp-ffi-0.2.7 | Rakefile |
webp-ffi-0.2.6 | Rakefile |
webp-ffi-0.2.5 | Rakefile |