Class: GNOME::Rake::Package::WindowsConfiguration
- Inherits:
-
Struct
- Object
- Struct
- GNOME::Rake::Package::WindowsConfiguration
- Defined in:
- lib/gnome/rake/package.rb
Instance Attribute Summary collapse
-
#absolute_binary_dir ⇒ Object
readonly
Returns the value of attribute absolute_binary_dir.
-
#build_dependencies ⇒ Object
Returns the value of attribute build_dependencies.
-
#build_host ⇒ Object
Returns the value of attribute build_host.
-
#build_packages ⇒ Object
Returns the value of attribute build_packages.
-
#dependencies ⇒ Object
Returns the value of attribute dependencies.
-
#gobject_introspection_dependencies ⇒ Object
Returns the value of attribute gobject_introspection_dependencies.
-
#packages ⇒ Object
Returns the value of attribute packages.
-
#relative_binary_dir ⇒ Object
readonly
Returns the value of attribute relative_binary_dir.
Instance Method Summary collapse
- #build_arch ⇒ Object
- #build_architecture ⇒ Object
- #build_architecture_suffix ⇒ Object
- #guess_build_host ⇒ Object
- #guess_build_host_from_architecture ⇒ Object
-
#initialize ⇒ WindowsConfiguration
constructor
A new instance of WindowsConfiguration.
Constructor Details
#initialize ⇒ WindowsConfiguration
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. end |
Instance Attribute Details
#absolute_binary_dir ⇒ Object (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_dependencies ⇒ Object
Returns the value of attribute build_dependencies
63 64 65 |
# File 'lib/gnome/rake/package.rb', line 63 def build_dependencies @build_dependencies end |
#build_host ⇒ Object
Returns the value of attribute build_host
63 64 65 |
# File 'lib/gnome/rake/package.rb', line 63 def build_host @build_host end |
#build_packages ⇒ Object
Returns the value of attribute build_packages
63 64 65 |
# File 'lib/gnome/rake/package.rb', line 63 def build_packages @build_packages end |
#dependencies ⇒ Object
Returns the value of attribute dependencies
63 64 65 |
# File 'lib/gnome/rake/package.rb', line 63 def dependencies @dependencies end |
#gobject_introspection_dependencies ⇒ Object
Returns the value of attribute gobject_introspection_dependencies
63 64 65 |
# File 'lib/gnome/rake/package.rb', line 63 def gobject_introspection_dependencies @gobject_introspection_dependencies end |
#packages ⇒ Object
Returns the value of attribute packages
63 64 65 |
# File 'lib/gnome/rake/package.rb', line 63 def packages @packages end |
#relative_binary_dir ⇒ Object (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_arch ⇒ Object
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_architecture ⇒ Object
138 139 140 |
# File 'lib/gnome/rake/package.rb', line 138 def build_architecture ENV["RUBY_GNOME2_BUILD_ARCHITECTURE"] || "x86" end |
#build_architecture_suffix ⇒ Object
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_host ⇒ Object
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_architecture ⇒ Object
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 |