|
Ok, so I began to work on the
Makefile part to isolate changes introduced in Lua-i18n. The
idea is to have several Makefile variables, so that each i18n
facility can be enabled or disabled at compile time. So if you
disable all of them, you end up with the same result that you
get with the official Lua. Ideally, you should just have to
let each internationalization cflags alone when you want the
feature, and comment the others. Then make should compile everything
seamlessly, the Makefile adding dependencies (or not) based on
cflags (un)definition state. The easy portable part is defining
C macro variables in the Makefile to make changed code
conditional. The more difficult part is making part of
dependencies conditional in a portable fashion. Indeed
most make implementation out there include some conditional
control structure, but it's seems that currently there is no
standard straight forward portable solution. At least, I didn't
found one. But maybe you have some thoughts to
share on the matter. :) Related reading: http://gallium.inria.fr/blog/portable-conditionals-in-makefiles/ https://docs.google.com/document/d/1oUR7iMnaNzkeT3TTOS-Gwul6_V3TE8caIDAd1FwPyNc/edit# https://www.gnu.org/software/make/manual/html_node/Conditional-Syntax.html https://www.mkssoftware.com/docs/man5/makefile.5.asp Le 22/11/2016 à 08:26, mathieu stumpf
guntz a écrit :
|