Skip to content

Commit

Permalink
Add spec extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Jul 16, 2024
1 parent c5eefe9 commit 3189d16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/win32/resolv/extconf.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
require 'mkmf'
if have_library('iphlpapi', 'GetNetworkParams')
create_makefile('win32/resolv')
else
File.write('Makefile', "all clean install:\n\t@echo Done: $(@)\n")
end
1 change: 1 addition & 0 deletions resolv.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Gem::Specification.new do |spec|
spec.homepage = "https://github.com/ruby/resolv"
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
spec.licenses = ["Ruby", "BSD-2-Clause"]
spec.extensions << "ext/win32/resolv/extconf.rb"

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
Expand Down

0 comments on commit 3189d16

Please sign in to comment.