aboutsummaryrefslogtreecommitdiffstats
path: root/copy_dlls
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2012-06-21 20:06:54 +0200
committerJay Berkenbilt <ejb@ql.org>2012-06-22 03:22:35 +0200
commitc833295a3948e914fa23042896f19f35ddd8d927 (patch)
treed2c135487757ad8ad917242e8e6c42097a016fd4 /copy_dlls
parent85d9e7dfed31cf4b9307fad920422a7b433fc35c (diff)
downloadqpdf-c833295a3948e914fa23042896f19f35ddd8d927.tar.zst
Adjust Windows built to support 32-bit and 64-bit builds
Update the build to support new external-libs layout, and autoconf options to specify windows word size. Split make_windows_releases into multiple scripts.
Diffstat (limited to 'copy_dlls')
-rwxr-xr-xcopy_dlls8
1 files changed, 4 insertions, 4 deletions
diff --git a/copy_dlls b/copy_dlls
index 6cfcfe02..e93f1613 100755
--- a/copy_dlls
+++ b/copy_dlls
@@ -7,19 +7,19 @@ use File::Basename;
my $whoami = basename($0);
-usage() unless @ARGV == 2;
-my ($file, $destdir) = @ARGV;
+usage() unless @ARGV == 3;
+my ($file, $destdir, $objdump) = @ARGV;
my $filedir = dirname($file);
my %dlls = ();
-open(O, "objdump -p $file|") or die "$whoami: can't run objdump\n";
+open(O, "$objdump -p $file|") or die "$whoami: can't run objdump\n";
while (<O>)
{
if (m/^\s+DLL Name:\s+(.+\.dll)/i)
{
my $dll = $1;
$dll =~ tr/A-Z/a-z/;
- next if $dll =~ m/^(kernel32|msvcrt)\.dll$/;
+ next if $dll =~ m/^(kernel32|user32|msvcrt)\.dll$/;
$dlls{$dll} = 1;
}
}