class GNOME2::Rake::Package::WindowsConfiguration - glib2-2.2.5 Documentation

# class GNOME2::Rake::Package::WindowsConfiguration

### Attributes

absolute_binary_dir[R]
relative_binary_dir[R]

### Public Class Methods

new() click to toggle source
Calls superclass method

    # File lib/gnome2/rake/package.rb, line 70
    def initialize
      super
      @relative_binary_dir = Pathname.new("vendor/local")
      @absolute_binary_dir = @relative_binary_dir.expand_path
    end

### Public Instance Methods

build_architecture() click to toggle source

    # File lib/gnome2/rake/package.rb, line 128
    def build_architecture
      ENV["RUBY_GNOME2_BUILD_ARCHITECTURE"] || "x86"
    end

build_architecture_suffix() click to toggle source

    # File lib/gnome2/rake/package.rb, line 132
    def build_architecture_suffix
      case build_architecture
      when "x86"
        "win32"
      when "x64"
        "win64"
      end
    end

build_dependencies() click to toggle source
Calls superclass method

    # File lib/gnome2/rake/package.rb, line 84
    def build_dependencies
      super || []
    end

build_host() click to toggle source
Calls superclass method

    # File lib/gnome2/rake/package.rb, line 107
    def build_host
      super || guess_build_host
    end

build_packages() click to toggle source
Calls superclass method

    # File lib/gnome2/rake/package.rb, line 92
    def build_packages
      (super || []).collect do |package|
        package = package.dup
        package[:windows] = {
          :include_paths   => package.delete(:include_paths),
          :library_paths   => package.delete(:library_paths),
          :configure_args  => package.delete(:configure_args),
          :patches         => package.delete(:patches),
          :need_autogen    => package.delete(:need_autogen),
          :need_autoreconf => package.delete(:need_autoreconf),
        }
        ExternalPackage.new(package)
      end
    end

dependencies() click to toggle source
Calls superclass method

    # File lib/gnome2/rake/package.rb, line 80
    def dependencies
      super || []
    end

gobject_introspection_dependencies() click to toggle source
Calls superclass method

    # File lib/gnome2/rake/package.rb, line 88
    def gobject_introspection_dependencies
      super || []
    end

guess_build_host() click to toggle source

    # File lib/gnome2/rake/package.rb, line 111
    def guess_build_host
      ENV["RUBY_GNOME2_BUILD_HOST"] ||
        guess_build_host_from_architecture ||
        "i686-w64-mingw32"
    end

guess_build_host_from_architecture() click to toggle source

    # File lib/gnome2/rake/package.rb, line 117
    def guess_build_host_from_architecture
      case build_architecture
      when "x86"
        "i686-w64-mingw32"
      when "x64"
        "x86_64-w64-mingw32"
      else
        nil
      end
    end

packages() click to toggle source
Calls superclass method

    # File lib/gnome2/rake/package.rb, line 76
    def packages
      super || []
    end