parameters: (gn_args, target_file)
docstring: Generates the perfetto_build_flags.h for the given config.
  
      target_file: the path, relative to the repo root, where the generated
          buildflag header will be copied into.
docstring_summary: Generates the perfetto_build_flags.h for the given config.
docstring_tokens: Generates the perfetto_build_flags . h for the given config .
function: def gen_buildflags(gn_args, target_file):
    """Generates the perfetto_build_flags.h for the given config.
  
      target_file: the path, relative to the repo root, where the generated
          buildflag header will be copied into.
      """
    tmp_out = prepare_out_directory(gn_args, 'tmp.gen_buildflags')
    build_targets(tmp_out, [BUILDFLAGS_TARGET], quiet=True)
    src = os.path.join(tmp_out, 'gen', 'build_config', 'perfetto_build_flags.h')
    shutil.copy(src, os.path.join(repo_root(), target_file))
    shutil.rmtree(tmp_out)
function_tokens: def gen_buildflags ( gn_args , target_file ) : tmp_out = prepare_out_directory ( gn_args , 'tmp.gen_buildflags' ) build_targets ( tmp_out , [ BUILDFLAGS_TARGET ] , quiet = True ) src = os . path . join ( tmp_out , 'gen' , 'build_config' , 'perfetto_build_flags.h' ) shutil . copy ( src , os . path . join ( repo_root ( ) , target_file ) ) shutil . rmtree ( tmp_out )