vcpkg icon indicating copy to clipboard operation
vcpkg copied to clipboard

can we build vcpkg package from external .dll, .lib without there source code

Open Amit-Mnnit929 opened this issue 2 years ago • 4 comments

Hey, can we build vcpkg package from external .dll, .lib file without there source code ? Means, like I have A.dll and B.lib and myheader.h , Now can we create vcpkg with these files ?

Amit-Mnnit929 avatar Sep 16 '22 11:09 Amit-Mnnit929

Yes you can! Just make sure it's compatible with your toolchain. Here is an example of packaging prebuilt proprietary library.

libxl.zip

Osyotr avatar Sep 16 '22 13:09 Osyotr

how do I get REF and SHA512 value which mention in portfile file ?

Amit-Mnnit929 avatar Sep 17 '22 13:09 Amit-Mnnit929

can we build vcpkg package only from .dll, .lib which is stored in my local system and without there source code ? Means, like I have GemBox.dll , pt4all.lib and pt4all.h ?

And Can we build vcpkg from multiple header file and multiple .dll files I mean to build single vcpkg from multiple header files and multiple .dll files and these files are stored in my local storage ?

Amit-Mnnit929 avatar Sep 18 '22 06:09 Amit-Mnnit929

For official repo: no, for custom registry: yes.

You just need to add the cmake code to find and install these libraries and header files in portfile.cmake.

If you need to use versioning, you should fork the official repo and commit your changes on your branch.

JackBoosY avatar Sep 19 '22 09:09 JackBoosY

We hope your question was answered to your satisfaction; if it wasn't, you can reopen with more info.

LilyWangLL avatar Nov 25 '22 08:11 LilyWangLL