|
From: | Nikhil Ramakrishnan |
Subject: | Re: [ft-devel] Integrating Docwriter into FreeType |
Date: | Thu, 2 Aug 2018 01:36:07 +0530 |
Ah, here should be
checking for `docwriter' Python module... no
I missed that. So the code should be something like
have_docwriter=no
(...)
> Also, is there a way to store the $PYTHON variable (python/python2/
> python3) so that I can use it in `freetype.mk' while invoking
> docwriter?
Not directly. The `builds/unix/configure' script creates two files,
`unix-cc.mk' (from `unix-cc.in') and `unix-def.mk' (from
`unix-def.in'). In those files, address@hidden@' gets replaced with `$FOO' as
set up in `configure.ac'.[*] You can thus add a line
PYTHON := @PYTHON@
to `unix-def.in' (which fits better than `unix-cc.in') to have $PYTHON
available. Note that you also need to define `$PYTHON' for other
platforms; the simplest thing is probably to add the line
PYTHON ?= python
at the top of `builds/detect.mk' (`?=' only sets the value if it is
not set already, allowing it to be overridden on the command line).
[Prev in Thread] | Current Thread | [Next in Thread] |