Changeset 197


Ignore:
Timestamp:
Jun 2, 2006, 8:01:08 AM (18 years ago)
Author:
garonne
Message:

add the STRUCTURED_OUTPUT support on linux +mac

Location:
CMT/HEAD/source
Files:
4 edited

Legend:

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

    r194 r197  
    598598  cmt_string compressed_path = path;
    599599  CmtSystem::compress_path (compressed_path);
    600   CmtSystem::realpath      (compressed_path, compressed_path);
     600  CmtSystem::realpath      (compressed_path, compressed_path); 
    601601  scan_path                (compressed_path, 0, a);
    602602
  • CMT/HEAD/source/cmt_generators.cxx

    r11 r197  
    1515{
    1616  m_TITLE.set ("TITLE");
     17  m_STRUCTURED_OUTPUT.set ("STRUCTURED_OUTPUT");
    1718
    1819  make_header_fragment.set ("make_header");
     
    140141  else if (language != Language::null ())
    141142    {
    142       obj  = "$(bin)";
    143       if (Cmt::build_nmake ()) obj +=  m_CONSTITUENT;
    144       if (Cmt::build_nmake ()) obj +=  CmtSystem::file_separator ();
     143      obj  = "$(bin)";     
     144
     145      if (CmtSystem::getenv("STRUCTURED_OUTPUT")!="" || Cmt::build_nmake ())
     146      {
     147          obj +=  m_CONSTITUENT;
     148          obj +=  CmtSystem::file_separator ();
     149      }
     150
    145151      obj += name;
    146152      obj += language.output_suffix;
     
    507513      m_HASTARGETTAG = "has_no_target_tag";
    508514    }
    509 
    510   make_header_fragment.copy (m_output_file, constituent.variables, 7,
    511                              &m_TITLE,
     515   
     516  m_STRUCTURED_OUTPUT = "STRUCTURED_OUTPUT";
     517
     518  make_header_fragment.copy (m_output_file, constituent.variables, 8,
     519                                         &m_TITLE,
    512520                             &m_CONSTITUENT,
    513521                             &m_CONSTITUENTSUFFIX,
    514                              &m_USER,
     522                                         &m_USER,
    515523                             &m_DATE,
    516524                             &m_PACKAGE,
    517                              &m_HASTARGETTAG);
     525                                         &m_HASTARGETTAG,
     526                                         &m_STRUCTURED_OUTPUT
     527                             );
    518528
    519529  if (need_prototypes)
     
    28162826            {
    28172827              const cmt_string& name = files[j];
    2818              
    28192828              if (name != "")
    28202829                {
  • CMT/HEAD/source/cmt_generators.h

    r11 r197  
    2121
    2222  Variable m_TITLE;
     23  Variable m_STRUCTURED_OUTPUT;
    2324
    2425  FragmentHandle make_header_fragment;
  • CMT/HEAD/source/cmt_system.h

    r195 r197  
    3939
    4040  // Resolve symbolic links in a path.
    41   static BOOL realpath (const cmt_string& path, cmt_string& result);
     41  static bool realpath (const cmt_string& path, cmt_string& result);
    4242
    4343  static void dirname (const cmt_string& file_name, cmt_string& result);
Note: See TracChangeset for help on using the changeset viewer.