freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Integrating Docwriter into FreeType


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
  (...)

Thanks, changes applied.
 
> 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).

Thanks, instead of modifying `detect.mk', I've added the line just before
target `refdoc' in `freetype.mk'.


--
Nikhil

reply via email to

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