Skip to content
Snippets Groups Projects
Commit 233f61f5 authored by Lars Kanis's avatar Lars Kanis
Browse files

Add msys2 library dependency tag in gem metadata.

RubyInstaller2 supports metadata tags for installation of dependent
MSYS2/MINGW libraries. The fxruby source gem requires the fox
package to be installed on the system, which the gem installer takes
care about, when this tag is set.

The feature is documented here:
https://github.com/oneclick/rubyinstaller2/wiki/For-gem-developers#msys2-library-dependency
parent 885a06f0
No related branches found
No related tags found
No related merge requests found
......@@ -120,6 +120,9 @@ Rake::ExtensionTask.new("fox16_c", gem_spec) do |ext|
# Add dependent DLLs to the cross gems
ext.cross_compiling do |spec|
# The fat binary gem doesn't depend on the fox package, since it bundles the libraries.
spec.metadata.delete('msys2_mingw_dependencies')
platform_host_map = {
'x86-mingw32' => ['i686-w64-mingw32'],
'x64-mingw32' => ['x86_64-w64-mingw32'],
......
......@@ -47,6 +47,7 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.extensions = ["ext/fox16_c/extconf.rb"]
spec.metadata['msys2_mingw_dependencies'] = 'fox'
spec.add_runtime_dependency 'mini_portile2', '~> 2.1'
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment