Sha256: 95b0809bc219f4f248ff8351efbf93ed0da7dcbc0ae6a7e9a0f76b521c8351cd

Contents?: true

Size: 592 Bytes

Versions: 13

Compression:

Stored size: 592 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
  c.cflags << "-arch x86_64" if c.platform.mac?
  c.ldflags << "-arch x86_64" if c.platform.mac?
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
webp-ffi-0.2.4 ext/webp_ffi/Rakefile
webp-ffi-0.2.3 ext/webp_ffi/Rakefile
webp-ffi-0.2.2 ext/webp_ffi/Rakefile
webp-ffi-0.2.1 ext/webp_ffi/Rakefile
webp-ffi-0.2.0 ext/webp_ffi/Rakefile
webp-ffi-0.1.8 ext/webp_ffi/Rakefile
webp-ffi-0.1.7 ext/webp_ffi/Rakefile
webp-ffi-0.1.6 ext/webp_ffi/Rakefile
webp-ffi-0.1.5 ext/webp_ffi/Rakefile
webp-ffi-0.1.4 ext/webp_ffi/Rakefile
webp-ffi-0.1.3 ext/webp_ffi/Rakefile
webp-ffi-0.1.2 ext/webp_ffi/Rakefile
webp-ffi-0.1.1 ext/webp_ffi/Rakefile