Move lemon parser generation into build directory

This moves the generated files out of the source tree and into
the build directory. They are now regenerated each time they are
needed, based on the timestamp of the generated file compared to
the timestamp of the lemon file.

To do this, we also bundle lemon into the thirdparty directory
and build it for ourselves since it is a very tiny program and
not all platforms seem to distribute it in a consistent manner.

Fixes https://gitlab.com/kicad/code/kicad/issues/5013
This commit is contained in:
Ian McInerney
2020-08-10 13:53:54 +00:00
parent 34705fd8b2
commit 0a1d8c1aaa
17 changed files with 6036 additions and 1776 deletions
+2 -2
View File
@@ -33,8 +33,8 @@ namespace numEval
#pragma GCC diagnostic ignored "-Wsign-compare"
#endif
#include "grammar.c"
#include "grammar.h"
#include <libeval/grammar.c>
#include <libeval/grammar.h>
#ifdef __GNUC__
#pragma GCC diagnostic pop