Class: GNOME::Rake::Package::WindowsConfiguration

Inherits:
Struct
  • Object
show all
Defined in:
lib/gnome/rake/package.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeWindowsConfiguration

Returns a new instance of WindowsConfiguration.



71
72
73
74
75
# File 'lib/gnome/rake/package.rb', line 71

def initialize
  super
  @relative_binary_dir = Pathname.new("vendor/local")
  @absolute_binary_dir = @relative_binary_dir.expand_path
end

Instance Attribute Details

#absolute_binary_dirObject (readonly)

Returns the value of attribute absolute_binary_dir.



70
71
72
# File 'lib/gnome/rake/package.rb', line 70

def absolute_binary_dir
  @absolute_binary_dir
end

#build_dependenciesObject

Returns the value of attribute build_dependencies

Returns:

  • (Object)

    the current value of build_dependencies



63
64
65
# File 'lib/gnome/rake/package.rb', line 63

def build_dependencies
  @build_dependencies
end

#build_hostObject

Returns the value of attribute build_host

Returns:

  • (Object)

    the current value of build_host



63
64
65
# File 'lib/gnome/rake/package.rb', line 63

def build_host
  @build_host
end

#build_packagesObject

Returns the value of attribute build_packages

Returns:

  • (Object)

    the current value of build_packages



63
64
65
# File 'lib/gnome/rake/package.rb', line 63

def build_packages
  @build_packages
end

#dependenciesObject

Returns the value of attribute dependencies

Returns:

  • (Object)

    the current value of dependencies



63
64
65
# File 'lib/gnome/rake/package.rb', line 63

def dependencies
  @dependencies
end

#gobject_introspection_dependenciesObject

Returns the value of attribute gobject_introspection_dependencies

Returns:

  • (Object)

    the current value of gobject_introspection_dependencies



63
64
65
# File 'lib/gnome/rake/package.rb', line 63

def gobject_introspection_dependencies
  @gobject_introspection_dependencies
end

#packagesObject

Returns the value of attribute packages

Returns:

  • (Object)

    the current value of packages



63
64
65
# File 'lib/gnome/rake/package.rb', line 63

def packages
  @packages
end

#relative_binary_dirObject (readonly)

Returns the value of attribute relative_binary_dir.



70
71
72
# File 'lib/gnome/rake/package.rb', line 70

def relative_binary_dir
  @relative_binary_dir
end

Instance Method Details

#build_archObject



129
130
131
132
133
134
135
136
# File 'lib/gnome/rake/package.rb', line 129

def build_arch
  case build_architecture
  when "x86"
    "i686"
  when "x64"
    "x86_64"
  end
end

#build_architectureObject



138
139
140
# File 'lib/gnome/rake/package.rb', line 138

def build_architecture
  ENV["RUBY_GNOME2_BUILD_ARCHITECTURE"] || "x86"
end

#build_architecture_suffixObject



142
143
144
145
146
147
148
149
# File 'lib/gnome/rake/package.rb', line 142

def build_architecture_suffix
  case build_architecture
  when "x86"
    "win32"
  when "x64"
    "win64"
  end
end

#guess_build_hostObject



112
113
114
115
116
# File 'lib/gnome/rake/package.rb', line 112

def guess_build_host
  ENV["RUBY_GNOME2_BUILD_HOST"] ||
    guess_build_host_from_architecture ||
    "i686-w64-mingw32"
end

#guess_build_host_from_architectureObject



118
119
120
121
122
123
124
125
126
127
# File 'lib/gnome/rake/package.rb', line 118

def guess_build_host_from_architecture
  case build_architecture
  when "x86"
    "i686-w64-mingw32"
  when "x64"
    "x86_64-w64-mingw32"
  else
    nil
  end
end