def parse_gn_flags(gn_lines):
    """
    Parse lines of GN flags into dictionary
    """
    gn_args = {}

    for line in gn_lines:
        name, var = line.strip().partition("=")[::2]
        gn_args[name.strip()] = var.strip()

    return gn_args