From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: CMake build anyone? Date: Sun, 25 Jul 2010 19:57:50 +0200 Message-ID: <87wrsjwijl.fsf@telefonica.net> References: <87aapfxyhc.fsf@telefonica.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1280080696 5831 80.91.229.12 (25 Jul 2010 17:58:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 25 Jul 2010 17:58:16 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 25 19:58:14 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Od5Sn-0003lE-44 for ged-emacs-devel@m.gmane.org; Sun, 25 Jul 2010 19:58:13 +0200 Original-Received: from localhost ([127.0.0.1]:53587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Od5Sm-0004K5-7Z for ged-emacs-devel@m.gmane.org; Sun, 25 Jul 2010 13:58:12 -0400 Original-Received: from [140.186.70.92] (port=51531 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Od5Sg-0004Jq-6o for emacs-devel@gnu.org; Sun, 25 Jul 2010 13:58:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Od5Sf-0007Bp-2U for emacs-devel@gnu.org; Sun, 25 Jul 2010 13:58:05 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:44365) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Od5Se-0007Bk-Qx for emacs-devel@gnu.org; Sun, 25 Jul 2010 13:58:05 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Od5Sa-0003gA-Cr for emacs-devel@gnu.org; Sun, 25 Jul 2010 19:58:00 +0200 Original-Received: from 83.42.13.171 ([83.42.13.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 25 Jul 2010 19:58:00 +0200 Original-Received: from ofv by 83.42.13.171 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 25 Jul 2010 19:58:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 83.42.13.171 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:Ob/W1Y3AYCREwPSbQImdB2mqQBc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:127782 Archived-At: Juanma Barranquero writes: > On Sun, Jul 25, 2010 at 19:28, Óscar Fuentes wrote: > >> but if there is interest from any of the build >> maintainers, I could steer the development for creating a "serious" >> build specification. > > IIUC, with CMake you write configuration files, from which you > generate "normal" makefiles. Yes. CMake creates files for your tool of choice (`make', `nmake', Eclipse, etc.) It is not a build tool itself, but a build generator. > That would be useful if it allowed us to simplify and reunify the > GNU/Linux / Unix / MSDOS / Windows makefiles, bulding them from a > single set of source configuration files. That's not a trivial > undertaking, though. I did that for LLVM (1) and it is perfectly doable for Emacs, AFAIK. Maybe there are a few configuration tests that are not trivial, but we can "borrow" from autoconf. Please note that I'm not proposing throwing away the autoconf-based build (not because CMake can't replace autoconf/automake, but just because I already created enough controversy here.) Just providing cmake as an option where autoconf is available, and as the official method where it isn't. One caveat: knowing nothing about the emacs MSDOS build, I don't know how well CMake works for it. Maybe we can use cmake's cross-compiling feature for driving the MSDOS compiler (DJGPP?) 1: http://www.llvm.org