Renamed generated .cc files (fonts, glyphs) so they don't need to be excluded in pymod builds.

This commit is contained in:
Matthias Koefferlein 2019-03-22 07:26:51 +01:00
parent 69282f8fef
commit 522156b467
5 changed files with 2 additions and 7 deletions

View File

@ -389,11 +389,6 @@ config.add_extension(_pya)
_db_path = os.path.join("src", "db", "db")
_db_sources = set(glob.glob(os.path.join(_db_path, "*.cc")))
# Not a real source:
# Caveat, in source distribution tarballs from pypi, these files will
# not exist. So we need an error-free discard method instead of list's remove.
_db_sources.discard(os.path.join(_db_path, "fonts.cc"))
_db = Library(config.root + '._db',
define_macros=config.macros() + [('MAKE_DB_LIBRARY', 1)],
include_dirs=[_tl_path, _gsi_path, _db_path],

View File

@ -37,7 +37,7 @@
#include <cctype>
// compiled with "scripts/compile_glyphs.rb":
#include "glyphs.cc"
#include "glyphs.cc_gen"
namespace db
{

View File

@ -67,7 +67,7 @@ struct HersheyFont
int width, height;
};
#include "fonts.cc"
#include "fonts.cc_gen"
const int line_spacing = 4;