INNER CODE UNIT · Python

parse_modules_cfg

Mormert/jle · engine/3rdparty/freetype/builds/meson/parse_modules_cfg.py:34

def parse_modules_cfg(input_file):

    lists = {
        "FONT_MODULES": [],
        "HINTING_MODULES": [],
        "RASTER_MODULES": [],
        "AUX_MODULES": [],
        "BASE_EXTENSIONS": [],
    }

    for line in input_file.splitlines():
        line = line.rstrip()
        # Ignore empty lines and those that start with a comment.
        if not line or line[0] == "#":
            continue

        items = line.split()
        assert len(items) == 3 and items[1] == "+=", (

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…