Parent

Methods

SharedLibrary

Public Class Methods

new(options) click to toggle source
# File lib/makeconf/library.rb, line 16
  def initialize(options)
    raise ArgumentError unless options.kind_of?(Hash)
    id = options[:id]

    super(options)
    @abi_major = 0
    @abi_minor = 0
    @output = id + Platform.shared_library_extension
    @output = 'lib' + @output unless @output =~ /^lib/ or Platform.is_windows?
    @output_type = 'shared library'
#FIXME: @cc.ld.flags.push('-export-dynamic') unless Platform.is_solaris?
  end

Public Instance Methods

install(installer) click to toggle source
# File lib/makeconf/library.rb, line 29
def install(installer)
  outfile = "#{@output}.#{@abi_major}.#{@abi_minor}"
  installer.install(
      :dest => '$(LIBDIR)',
      :rename => outfile,
      :sources => @output,
      :mode => '0644'
  )
  installer.add_rule "rm -f \$(DESTDIR)\$(LIBDIR)/#{output}"
  installer.add_rule "ln -s #{outfile} \$(DESTDIR)\$(LIBDIR)/#{output}"
  installer.add_rule "rm -f \$(DESTDIR)\$(LIBDIR)/#{output}.#{@abi_major}"
  installer.add_rule "ln -s #{outfile} \$(DESTDIR)\$(LIBDIR)/#{output}.#{@abi_major}"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.