Ignore:
Timestamp:
Jan 11, 2013, 11:23:19 AM (11 years ago)
Author:
rybkin
Message:

See C.L. 499

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/source/cmt_generators.cxx

    r627 r628  
    468468                              const cmt_string& file_name)
    469469{
    470   static cmt_string lib;
     470  //static cmt_string lib;
    471471  static cmt_string allsources;
    472472  static cmt_string file;
     
    499499  need_prototypes = constituent.need_prototypes;
    500500
     501  if (constituent.need_prototypes)
     502    {
     503      m_HASPROTOTYPES = "has_prototypes";
     504    }
     505  else
     506    {
     507      m_HASPROTOTYPES = "has_no_prototypes";
     508    }
     509
    501510  //  cout << m_TITLE << " " << m_CONSTITUENT << endl;
    502511  CmtMessage::info (m_TITLE + " " + m_CONSTITUENT);
    503512
     513  /*
    504514  lib  = "$(";
    505515  lib += m_CONSTITUENT;
    506516  lib += "lib)";
    507 
     517  */
    508518  //
    509519  // Prepare the include paths
     
    639649      if (is_library)
    640650        {
    641           jar_header_fragment.copy (m_output_file, constituent.variables, 3,
     651          jar_header_fragment.copy (m_output_file, constituent.variables, 5,
    642652                                    &m_CONSTITUENT,
    643653                                    &m_CONSTITUENTSUFFIX,
    644                                     &m_OBJS);
     654                                    &m_OBJS,
     655                                    &m_PROTOTARGET,
     656                                    &m_HASPROTOTYPES);
    645657        }
    646658      else
    647659        {
    648           java_header_fragment.copy (m_output_file, constituent.variables, 3,
     660          java_header_fragment.copy (m_output_file, constituent.variables, 5,
    649661                                     &m_CONSTITUENT,
    650662                                     &m_CONSTITUENTSUFFIX,
    651                                      &m_OBJS);
     663                                     &m_OBJS,
     664                                     &m_PROTOTARGET,
     665                                     &m_HASPROTOTYPES);
    652666        }
    653667    }
     
    656670      if (is_library)
    657671        {
    658           library_header_fragment.copy (m_output_file, constituent.variables, 3,
     672          library_header_fragment.copy (m_output_file, constituent.variables, 5,
    659673                                        &m_CONSTITUENT,
    660674                                        &m_CONSTITUENTSUFFIX,
    661                                         &m_PROTOTARGET);
     675                                        &m_OBJS,
     676                                        &m_PROTOTARGET,
     677                                        &m_HASPROTOTYPES);
    662678        }
    663679      else
    664680        {
    665           application_header_fragment.copy (m_output_file, constituent.variables, 3,
    666                                             &m_CONSTITUENT,
    667                                             &m_CONSTITUENTSUFFIX,
    668                                             &m_PROTOTARGET);
     681          application_header_fragment.copy (m_output_file, constituent.variables, 5,
     682                                            &m_CONSTITUENT,
     683                                            &m_CONSTITUENTSUFFIX,
     684                                            &m_OBJS,
     685                                            &m_PROTOTARGET,
     686                                            &m_HASPROTOTYPES);
    669687        }
    670688    }
     
    806824      if (need_dependencies)
    807825        {
    808       dependencies_fragment.copy (m_output_file,
    809                                   constituent.variables, 3,
    810                                   &m_CONSTITUENT,
    811                                   &m_CONSTITUENTSUFFIX,
    812                                   &m_LINE);
     826          dependencies_fragment.copy (m_output_file,
     827                                      constituent.variables, 3,
     828                                      &m_CONSTITUENT,
     829                                      &m_CONSTITUENTSUFFIX,
     830                                      &m_LINE);
    813831        }
    814832    }
     
    26012619  constituent_fragment.set ("constituent");
    26022620  constituent_lock_fragment.set ("constituent_lock");
     2621  constituent_app_lib_fragment.set ("constituent_app_lib");
    26032622  check_application_header_fragment.set ("check_application_header");
    26042623}
     
    26122631  constituent_fragment.reset ();
    26132632  constituent_lock_fragment.reset ();
     2633  constituent_app_lib_fragment.reset ();
    26142634  check_application_header_fragment.reset ();
    26152635}
     
    27382758            {
    27392759            case Application:
    2740               m_HASDEPENDENCIES = "has_dependencies";
    2741               break;
    27422760            case Library:
    27432761              m_HASDEPENDENCIES = "has_dependencies";
     2762              m_HASPROTOTYPES = constituent.need_prototypes ? "has_prototypes" : "has_no_prototypes" ;
    27442763              break;
    27452764            case Document:
     
    27582777                                              &m_HASDEPENDENCIES,
    27592778                                              &m_HASTARGETTAG);
     2779            }
     2780          else if (constituent.type == Application ||
     2781                   constituent.type == Library)
     2782            {
     2783              constituent_app_lib_fragment.copy (m_output_file, constituent.variables,
     2784                                                 7,
     2785                                                 &m_PACKAGE,
     2786                                                 &m_CONSTITUENT,
     2787                                                 &m_CONSTITUENTSUFFIX,
     2788                                                 &m_LINE,
     2789                                                 &m_HASDEPENDENCIES,
     2790                                                 &m_HASTARGETTAG,
     2791                                                 &m_HASPROTOTYPES);
    27602792            }
    27612793          else
Note: See TracChangeset for help on using the changeset viewer.