Skip to content

CLI for renaming DLL files on Windows, generating a new .lib file

License

Notifications You must be signed in to change notification settings

emilbayes/rename-dll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rename-dll

CLI for renaming DLL files on Windows, generating a new .lib file

Usage

rename-dll source.dll dest.dll

When linking agains shared libraries on Windows (Dynamically Linked Libraries) you use a .lib file which defines all exported symbols as well as the name of the .dll file. If you want to rename the DLL, eg. to version it and avoid collisions (DLL Hell), you need to regenerate this .lib file, which is binary. This module does this automatically for you!

This module depends on the dumpbin and lib utilities, which come bundled with Visual Studio. You may need to include the bin folder in your path. Here is how to do it for MSVS 14.0 (eg. on AppVeyor)

SET PATH=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin;%PATH%

API

rename-dll [--arch=x64] SRC DEST

Generate a .def file based on SRC, compile it to a .lib file next to DEST and rename the SRC to DEST. Optionally choose an architecture; possible values are x86/ia32, x64, arm and arm64.

Install

npm install rename-dll

License

ISC

About

CLI for renaming DLL files on Windows, generating a new .lib file

Resources

License

Stars

Watchers

Forks

Packages

No packages published