Module: Exiv2
- Defined in:
- lib/exiv2.rb,
lib/exiv2.rb,
lib/exiv2/tag.rb,
lib/exiv2/exif.rb,
lib/exiv2/iptc.rb,
lib/exiv2/image.rb
Defined Under Namespace
Modules: ExifAccess
Classes: Error, Exif, Image, Iptc, SubTagAccess, Tag
Class Method Summary
collapse
Class Method Details
.load(&block) ⇒ Object
17
18
19
|
# File 'lib/exiv2.rb', line 17
def self.load(&block)
ERB.new(File.read(File.dirname(__FILE__)+"/exiv2/" + block.call)).result(block.binding)
end
|
.prepare_builder(builder) ⇒ Object
8
9
10
11
12
13
14
15
|
# File 'lib/exiv2.rb', line 8
def self.prepare_builder(builder)
Config::CONFIG["CPP"] = "g++ -E "
Config::CONFIG["CC"] = "g++ "
Config::CONFIG["LDSHARED"].gsub!(/^cc /,"g++ ")
builder.include "<exiv2.hpp>"
builder.add_compile_flags "-x c++ -I#{File.dirname(__FILE__)} -I/usr/local/include/exiv2", '-lstdc++ -lexiv2'
builder.include_ruby_last
end
|