mirror of https://github.com/KLayout/klayout.git
Renamed generated .cc files (fonts, glyphs) so they don't need to be excluded in pymod builds.
This commit is contained in:
parent
69282f8fef
commit
522156b467
5
setup.py
5
setup.py
|
|
@ -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],
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
#include <cctype>
|
||||
|
||||
// compiled with "scripts/compile_glyphs.rb":
|
||||
#include "glyphs.cc"
|
||||
#include "glyphs.cc_gen"
|
||||
|
||||
namespace db
|
||||
{
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ struct HersheyFont
|
|||
int width, height;
|
||||
};
|
||||
|
||||
#include "fonts.cc"
|
||||
#include "fonts.cc_gen"
|
||||
|
||||
const int line_spacing = 4;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue