wiki:BuildingTransmissionQtWindows/nsiswrapper.diff

Version 1 (modified by rb07, 12 years ago) (diff)

nsiswrapper patch

--- /usr/bin/nsiswrapper.orig 2009-05-23 16:21:13.343406085 +0000 +++ /usr/bin/nsiswrapper 2009-05-26 07:40:43.493333337 +0000 @@ -443,7 +443,7 @@

if (m/\.exe$/i
m/\.dll$/i) {

my $cmd = "$objdump -p '$file' |

grep 'DLL Name:' |

  • grep -Eo '[-._[:alnum:]]+\.dll' |

+ grep -Eio '[-._[:alnum:]]+\.dll' |

sort -u"; # XXX quoting

open DEPS, "$cmd |" or die "$cmd: $!"; foreach (<DEPS>) {

@@ -493,7 +493,19 @@

$_ eq 'ole32.dll' $_ eq 'mscoree.dll' $_ eq 'msvcrt.dll'
  • $_ eq 'user32.dll'
+ $_ eq 'user32.dll' + $_ eq 'advapi32.dll' + $_ eq 'comctl32.dll' + $_ eq 'comdlg32.dll' + $_ eq 'imm32.dll' + $_ eq 'msimg32.dll' + $_ eq 'oleaut32.dll' + $_ eq 'shell32.dll' + $_ eq 'shlwapi.dll' + $_ eq 'winmm.dll' + $_ eq 'wsock32.dll' + $_ eq 'ws2_32.dll'

+ $_ eq 'wldap32.dll'

}

# Add Gtk dependencies, if --with-gtk.