Sha256: 5466a1c4ca2516fc29ad72013c7a3935d39418d74c6be465b66a8d5b472d6978
Contents?: true
Size: 682 Bytes
Versions: 4
Compression:
Stored size: 682 Bytes
Contents
require 'ffi-compiler/compile_task' FFI::Compiler::CompileTask.new('webp_ffi') do |c| c.have_header?('stdio.h', '/usr/local/include') c.have_func?('puts') c.have_library?('z') # webp 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') # libs c.have_library?('png') c.have_library?('jpeg') c.have_library?('tiff') # compiler flags 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
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
webp-ffi-0.3.0 | ext/webp_ffi/Rakefile |
webp-ffi-0.2.7 | ext/webp_ffi/Rakefile |
webp-ffi-0.2.6 | ext/webp_ffi/Rakefile |
webp-ffi-0.2.5 | ext/webp_ffi/Rakefile |