Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Expose Gem Specification for cross platform customization #3

Closed
luislavena opened this Issue · 1 comment

1 participant

@luislavena
Owner

Right now Gem::Specification being exposed is the original one. The dup of it happens later in the process, when actually should happen if cross_compile is defined.

This will allow adding specifics to the cross platform gem.

NOTE: Suggested will be expose it as cross_gem_spec since gem_spec is used for native versions.

@luislavena
Owner

Allow alteration of the Gem Specification when cross compiling. Closed by 1bb1c7e

This is useful to indicate a custom requirement message, like DLLs
installation or similar.

Rake::ExtensionTask.new('my_extension', GEM_SPEC) do |ext|
ext.cross_compile = true
ext.cross_compiling do |gem_spec|
gem_spec.post_install_message = "You've installed a binary version of this gem"
end
end

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.