emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Android port


From: Po Lu
Subject: Re: Android port
Date: Sun, 06 Aug 2023 20:51:40 +0800
User-agent: Gnus/5.13 (Gnus v5.13)

Bruno Haible <bruno@clisp.org> writes:

> In other words, you want to use the printf-posix module on Android but
> not on mingw.

Yes.

> Your question makes me think of a way to use a module on one platform
> but not on another platform. Namely, the Emacs' invocation of gnulib-tool
> already contains --conditional-dependencies (see emacs/lib/gnulib.mk.in).
> Combine this with the feature explained in
> https://www.gnu.org/software/gnulib/manual/html_node/Extending-Gnulib.html
>
> 1) Add a file emacs/gnulib-local/modules/printf-for-emacs with the following
>    contents:
>
> =========================================================================
> Description:
> POSIX compatible printf() function on selected platforms.
>
> Depends-on:
> printf-posix     [case "$host_os" in mingw*) false;; *) true;; esac]
> =========================================================================
>
>    What this does is to add a module with a conditional dependency to
>    'printf-posix'.
>
> 2) In the gnulib-tool invocation, add the option --local-dir=../gnulib-local
>    (so that it references the emacs/gnulib-local/ directory), and add
>    the module 'printf-for-emacs' to the module list.
>
> I believe this solution will work unchanged for 10 or 20 years.

Eli, are you OK with this solution?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]