Skip to content

Commit

Permalink
new branch 'curl' for #307
Browse files Browse the repository at this point in the history
* libcurl rename in setup phase because ethon gem doesn't see
  the cross compiled libcurl-4.dll name.
  • Loading branch information
Cecil committed Aug 11, 2017
1 parent ecb29ab commit 3e850f6
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 2 deletions.
4 changes: 4 additions & 0 deletions make/linux/xwin7/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,12 @@ def xfixrvmp(path)
'rsvg' => "#{bindll}/librsvg-2-2.dll",
'thread' => "#{bindll}/libgthread-2.0-0.dll",
'zlib1' => "#{bindll}/zlib1.dll",
'curl' => "#{bindll}/libcurl-4.dll",
'siji' => "/usr/lib/gcc/i686-w64-mingw32/4.8/libgcc_s_sjlj-1.dll",
'pthread' => "/usr/i686-w64-mingw32/lib/libwinpthread-1.dll"
}
)
ReNames = {
"libcurl-4.dll" => "libcurl.dll"
}

7 changes: 7 additions & 0 deletions make/linux/xwin7/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ def static_setup (so_list)
so_list.each_value do |path|
cp "#{path}", "#{TGT_DIR}"
end
# the things we do for love...
ReNames.each_pair do |k, v|
if File.exist? "#{TGT_DIR}/#{k}"
mv "#{TGT_DIR}/#{k}", "#{TGT_DIR}/#{v}"
$stderr.puts "renamed #{k} to #{v}"
end
end
# copy/setup etc/share
mkdir_p "#{TGT_DIR}/share/glib-2.0/schemas"
cp "#{ShoesDeps}/share/glib-2.0/schemas/gschemas.compiled" ,
Expand Down
8 changes: 6 additions & 2 deletions make/win32/win7/env.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#require "devkit" unless ENV['MINGW_PREFIX']
require "devkit"
cf =(ENV['ENV_CUSTOM'] || "win7-custom.yaml")
gtk_version = '3'
if File.exists? cf
Expand Down Expand Up @@ -144,7 +144,11 @@
'thread' => "#{bindll}/libgthread-2.0-0.dll",
'zlib1' => "#{bindll}/zlib1.dll",
'pthread' => "#{devdll}/libwinpthread-1.dll",
'sjlj' => "#{devdll}/libgcc_s_sjlj-1.dll"
'sjlj' => "#{devdll}/libgcc_s_sjlj-1.dll",
'curl' => "#{bindll}/libcurl-4.dll"
}
)
ReNames = {
"libcurl-4.dll" => "libcurl.dll"
}

7 changes: 7 additions & 0 deletions make/win32/win7/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ def static_setup (so_list)
so_list.each_value do |path|
cp "#{path}", "#{TGT_DIR}"
end
# the things we do for love...
ReNames.each_pair do |k, v|
if File.exist? "#{TGT_DIR}/#{k}"
mv "#{TGT_DIR}/#{k}", "#{TGT_DIR}/#{v}"
$stderr.puts "renamed #{k} to #{v}"
end
end
# copy/setup etc/share
mkdir_p "#{TGT_DIR}/share/glib-2.0/schemas"
cp "#{ShoesDeps}/share/glib-2.0/schemas/gschemas.compiled" ,
Expand Down
File renamed without changes.

0 comments on commit 3e850f6

Please sign in to comment.