Re: Surveying interest regarding CMake
| From: | Pierre Joye | Date: | Thu, 30 Dec 2021 08:07:28 +0000 |
| Subject: | Re: Surveying interest regarding CMake | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-116742@lists.php.net to get a copy of this message | ||
On Wed, Dec 29, 2021, 8:02 PM Christoph M. Becker <cmbecker69@gmx.de> wrote:
> On 29.12.2021 at 13:38, Horváth V. wrote:
>
> > Just a quick update on this in between the holidays.
> >
> > There are indeed quite a few of the libraries provided in the php-src's
> > Windows SDK that are missing from Conan Center Index, which is the
> > default remote when fetching dependencies using Conan.
> >
> > I have submitted a recipe for WinEditLine and it is pending review by
> > the Conan team. I am basically done with OpenLDAP's recipe as well, but
> > it needs Cyrus SASL as a dependency, which does not build on Windows
> > using the CCI recipe yet.
> >
> > Ironically, many of PHP's dependencies use Autotools as their build
> > tool, which makes it practically impossible to build them cross
> > platform, so I have to rewrite things in terms of CMake :)
>
> Right! This is why I suggested to postpone Windows support for now. :)
>
> The core dependencies for Windows builds are currently hosted at
> <https://github.com/winlibs>; some can be built using
> <https://github.com/winlibs/winlib-builder>. Of course,
> it would
> preferable to be able to build all the libs with CMake, instead of the
> current mix of self made or provided Makefiles, Visual Studio solutions,
> and what not.
>
I would rather separate external libs challenges from the php cmake move.
CMake macros allow all kind of detection anyway, pkgconfig or custom.
Conan looks good while I never tried it. There are other, *nix only, or
win and unix, ie vcpkg which has all php deps afair.
Also cmake is for php, I would prefer to move away from our custom builds
scripts for external libs on windows, very hard to maintain and not
scalable.
best,