  # build headless replay
  if arch in ['x86_64', 'Darwin'] and os.path.exists(Dir("#tools/").get_abspath()):
    qt_env['CXXFLAGS'] += ["-Wno-deprecated-declarations"]
  
    replay_lib_src = ["replay/replay.cc", "replay/filereader.cc", "replay/framereader.cc", "replay/route.cc"]
  
    replay_lib = qt_env.Library("qt_replay", replay_lib_src, LIBS=base_libs)
    replay_libs = [replay_lib, 'avutil', 'avcodec', 'avformat', 'swscale', 'bz2'] + qt_libs
    qt_env.Program("replay/replay", ["replay/main.cc"], LIBS=replay_libs)
  
 
</s> remove #include "selfdrive/ui/replay/filereader.h"
 </s> add 
  replay_lib_src = ["replay/replay.cc", "replay/logreader.cc", "replay/framereader.cc", "replay/route.cc"]
  # build headless replay
  if arch in ['x86_64', 'Darwin'] and os.path.exists(Dir("#tools/").get_abspath()):
    qt_env['CXXFLAGS'] += ["-Wno-deprecated-declarations"]
  
  replay_lib_src = ["replay/replay.cc", "replay/logreader.cc", "replay/framereader.cc", "replay/route.cc"]
  
    replay_lib = qt_env.Library("qt_replay", replay_lib_src, LIBS=base_libs)
    replay_libs = [replay_lib, 'avutil', 'avcodec', 'avformat', 'swscale', 'bz2'] + qt_libs
    qt_env.Program("replay/replay", ["replay/main.cc"], LIBS=replay_libs)
  
keep keep keep keep replace keep keep keep keep keep
 rename filereader.cc[h] to logreader.cc[h] (#22279) 
selfdrive/ui/SConscript