From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: How to link new libraries when building emacs Date: Fri, 05 Apr 2024 08:18:58 +0300 Message-ID: <86ttkg5qv1.fsf@gnu.org> References: <87le5v2dto.fsf@yahoo.com> <8734s22cpe.fsf@yahoo.com> <87r0fl24yo.fsf@yahoo.com> <864jch8vzr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2293"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, emacs-devel@gnu.org To: Elijah G Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 05 07:19:54 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rsbzV-0000Jj-FE for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Apr 2024 07:19:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rsbyi-0000ht-3Y; Fri, 05 Apr 2024 01:19:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rsbyg-0000hG-Kf for emacs-devel@gnu.org; Fri, 05 Apr 2024 01:19:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rsbyg-0002fQ-5z; Fri, 05 Apr 2024 01:19:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Duh9SWgxJlTAFo6e+7vaR5WkyNq9Hbs+TKhQVQU9dtI=; b=gLkwuvyHoZgR6gKykQf0 wNspKsjDQlE+HofT8kPfRwBnalqEflPq6EzelA4DtJKL+i/avFHZncS/Kh41AfE1QqTyPd6xoKgjD saNMhONWSGmpTEhXIQiorTHkWmiLztj0uYZ93NjBISr26x/bpi7sgYGCGBlN4cLpV+cqosLxbWZ7S Jj53Bsl4pXBAFM7/nU/ZvB6pIzo04LIykiHyBb65bg/y/4smRsRZXGH7uZIVdKSPwl/gwLE6Kxsc6 ffOHGgcrliZIzRiZmLMkxlhglukBI6bx3jfjbxIEwqH4cjAtgW4XUSReGAlsrOZ66jo3AaxwR8w2+ d5C4sXKaR3KAgQ==; In-Reply-To: (message from Elijah G on Thu, 4 Apr 2024 16:47:07 -0600) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:317534 Archived-At: > From: Elijah G > Date: Thu, 4 Apr 2024 16:47:07 -0600 > Cc: Po Lu , emacs-devel@gnu.org > > On Thu, Apr 4, 2024 at 12:47 AM Eli Zaretskii wrote: > > > > I'm guessing that using Direct2D will need a whole new font back-end, > > since we'd need a different implementation of the main drawing methods > > exported by the font driver. > > I guess so, Also it needs DirectDraw (dwrite.h) which sadly most > of their functions to draw are made in C++ AFAIS, Yes, it seems so. It's the main reason we didn't try to use them in Emacs. > i think I'll need to create a new header like w32direct2d.h > I wonder how to import another C header, do i need to modify > autoconf files or something like that?. No need to change autoconf files, just add the header and use it in the C sources. Autoconf changes are needed only if some systems don't have a header file, but for header files that are part of Emacs, that cannot happen.