Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116659 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 9436 invoked from network); 16 Dec 2021 18:13:46 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 16 Dec 2021 18:13:46 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AE97F18053E for ; Thu, 16 Dec 2021 11:16:16 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 16 Dec 2021 11:16:16 -0800 (PST) Received: by mail-ed1-f43.google.com with SMTP id e3so91686093edu.4 for ; Thu, 16 Dec 2021 11:16:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hpaFmo6LJ6PaQUL1HJg56SJDgFlJv+T5z9jykWTrEmI=; b=cswaPs3TNiHqHTSH9obRacCZ0Fw4L9p82YQ2vm323UdXoe7VYEf2O7T5L0HS6cYVaS /fDGKMjA1qgDBEP1M33pi0PFuO0/UurfSQ+PT8IOpQ6s92n/iI7wbHqs9nKrIgX6FZgJ 4L/fN7FLY8N/gp8xa/Tuzgy2h7+4wh4ranqLfXvzCPbZRtSoYNbXyciWy6i02mwZ7B0G zy0AsKu32769+Wx0jhLqCod7WGtbKitocToHylrmxN/OBu4lEQUpQ8AsGE6WT9wmhhAj mnSh5k+WBjLPmxE2wUpROYTyYbYfgPk3TvXX2VkjcRifV3sFhEkWd7CjWGSzXF0N9PTu LNWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hpaFmo6LJ6PaQUL1HJg56SJDgFlJv+T5z9jykWTrEmI=; b=e9AUpB7g2j7rEDBo3J3jB3/sjojVI/2hokkspZbb+nRttIxREjX5GutaoAVGu7iUat 4W1nsRRjrIM8fVU6GggrIZVDDlEmwcTas9Hj7qa2m1m4x4skLEVbdX607fOUPtHMTtgQ eF61cqM44kpWXW03SPatSiG/61aUBE0mCqgACIa5xt0a8rZWh2wE9i8dCGNRix5KPmJc 7lZ1qnU326uaG+wpZONwTfSxniNaJKOuzWKrgUMbnEZo+s8tJOeymhGQP/gij/0G/mCf lVGL4PnOjjdUcGq/zF2NCgma+5Xi5XTwJXrZiO8V3SykN7RfLe6DX+cPbvOMd6+v2T9c iw4A== X-Gm-Message-State: AOAM5316zquPuTOMa+q0ClFto7fp42Ik2ZqpM6asMon1Fp7Wf3qVzfeR U4K1IFM0LD1Ne1X916YZHqZKlY9U5Owm+l0Vm9E= X-Google-Smtp-Source: ABdhPJzL/lHL9p/DE9DHa5/xvcSgzk81Yw3rhid4DtEYXPp8k4+IbkBM+MmbJspKEGrsfgszCnCNWAAIpo1/eSETSEc= X-Received: by 2002:a17:907:1c0b:: with SMTP id nc11mr17437341ejc.590.1639682174002; Thu, 16 Dec 2021 11:16:14 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 16 Dec 2021 20:15:57 +0100 Message-ID: To: =?UTF-8?B?SG9ydsOhdGggVi4=?= Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000086aada05d34841c3" Subject: Re: [PHP-DEV] Surveying interest regarding CMake From: nikita.ppv@gmail.com (Nikita Popov) --00000000000086aada05d34841c3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Dec 16, 2021 at 6:54 PM Horv=C3=A1th V. wrote: > Hello internals, > > I'm writing to you to find out what the reception here is regarding the > idea of moving the PHP project to build using CMake. > > I have looked around and I found 2 attempts of doing just that in the > past (in 2008 via GSoC and something else maybe in 2014 that I couldn't > find the exact info for before writing this email), but nothing came of > those attempts. I have also briefly suggested the idea to Sara Golemon > on Reddit and she didn't seem to be completely against the idea. > > For my attempt, I would also optionally use Conan as a means of fetching > dependencies in a cross-platform manner, which would make the need for > OS specific SDKs (like the Windows one) unnecessary. Thanks to CMake's > amazing customizability, using Conan can be made completely optional and > PHP could still continue to build with just system dependencies. > > Moving the build system to use CMake instead of the current split > between a *nix and Windows solution would bring everything to one place > and providing CMake bits in the install interface of PHP would make it > easier to develop and use PHP from a development point of view thanks to > CMake packages. > > I am planning to make a YouTube video of the whole process of me doing > this grunt work, while I explore the current situation regarding > building PHP and explain what I do and why. I think that it'd generally > be a good thing to have such a video for transparency and it could be > interesting educational material for people who are in a similar > situation and wish to move to building their projects using CMake. > > For reference, I occasionally contribute to the CMake project, I'm the > author of https://github.com/friendlyanon/cmake-init which aims to > simplify quickly scaffolding a CMake project that's setup correctly and > I'm in the process of peer reviewing a CMake related book. > > Let me know what you think. > My main question would be how this will affect 3rd party extensions, which are currently using autoconf. Will they need to migrate to cmake, or will we have to effectively maintain both build systems? Generally, I do think that migrating to cmake makes sense though. Regards, Nikita --00000000000086aada05d34841c3--