def deserialize_gn_args(args):
  """Deserialize the raw string of gn args into a dict."""
  if not args:
    return {}

  args_hash = {}
  for line in args.splitlines():
    key, val = line.split('=')
    args_hash[key.strip()] = val.strip()
  return args_hash