Re: [INTERNALS-WIN] Windows PECL deps build script
[email protected] ("Christoph M. Becker") Thu, 25 Jul 2024 14:14:49 +0200
| Newsgroups | php.internals.win |
|---|---|
| Message-ID | <[email protected]> |
Hi! A "bit" late, but still may be of interest for some. On 19.03.2024 at 17:10, JB wrote: > I work to write automatic builds for PHP Extension for Windows with > GitHubAction. > > Sometimes, I download the dependencies located here > https://windows.php.net/downloads/pecl/deps/ to build the DLL. You better not rely on that location anymore since they might no longer be synced. Instead use <https://downloads.php.net/~windows/pecl/deps/> for now. > But, I don't know the source code origin and the build batch to find a > newer library version. > > Where can I find the build instructions for each library with the source > code location? At least the sources of the PHP dependencies can be found on <https://github.com/winlibs>. For building the dependencies, <https://github.com/winlibs/winlib-builder> is used. A couple of PECL dependencies are fetched directly from their own repos, and are patched on the fly, if needed. This is all bare-bones, but apparently we still cannot use another package manager. When I last looked into vcpkg, it was not really suitable. Quite a while ago someone proposed to use Conan, but adding missing libraries turned out to be difficult. Not sure how that ended up. Cheers, Christoph