function code_chart_source_file(fileNameInfo, chart, specsIdx)
%   Copyright 1995-2010 The MathWorks, Inc.
   global  gTargetInfo %#ok<GVMIS>

   if gTargetInfo.codingSFunction
       code_chart_source_file_sfun(fileNameInfo,chart,specsIdx);
   elseif gTargetInfo.codingRTW
       code_chart_source_file_rtw(fileNameInfo,chart,specsIdx);
   elseif gTargetInfo.codingHDL
       % Do nothing!  The empty elsif avoids entering the 'else' clause.
   else
       assert(~gTargetInfo.codingPLC); % plc goes under rtw, see plc_build_kernel
       if gTargetInfo.codingDllTargetForSLTest
           code_chart_source_file_custom_dll_target(fileNameInfo,chart);
       else
           code_chart_source_file_custom(fileNameInfo,chart);
       end
   end
   

