[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to link new libraries when building emacs
From: |
Eli Zaretskii |
Subject: |
Re: How to link new libraries when building emacs |
Date: |
Fri, 05 Apr 2024 08:18:58 +0300 |
> From: Elijah G <eg642616@gmail.com>
> Date: Thu, 4 Apr 2024 16:47:07 -0600
> Cc: Po Lu <luangruo@yahoo.com>, emacs-devel@gnu.org
>
> On Thu, Apr 4, 2024 at 12:47 AM Eli Zaretskii <eliz@gnu.org> 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.