Changeset 637 for CMT/v1r25-branch/source
- Timestamp:
- Jun 6, 2013, 2:43:50 PM (11 years ago)
- Location:
- CMT/v1r25-branch
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/v1r25-branch
-
CMT/v1r25-branch/source/cmt_constituent.cxx
r609 r637 176 176 else if (w == "-check") 177 177 { 178 m_constituent.need_check = true; 178 if (m_constituent.type == Application) 179 { 180 m_constituent.need_check = true; 181 } 179 182 } 180 183 else if (w == "-triggers") -
CMT/v1r25-branch/source/cmt_generator.cxx
r595 r637 86 86 m_HASTARGETTAG.set ("HASTARGETTAG"); 87 87 m_HASDEPENDENCIES.set ("HASDEPENDENCIES"); 88 m_ISCHECKGROUP.set ("ISCHECKGROUP"); 88 89 } 89 90 … … 125 126 m_HASTARGETTAG = ""; 126 127 m_HASDEPENDENCIES = ""; 128 m_ISCHECKGROUP = ""; 127 129 m_PACKINCLUDES = ""; 128 130 m_PACKOS9 = false; -
CMT/v1r25-branch/source/cmt_generator.h
r595 r637 133 133 Variable m_HASTARGETTAG; 134 134 Variable m_HASDEPENDENCIES; 135 Variable m_ISCHECKGROUP; 135 136 }; 136 137 -
CMT/v1r25-branch/source/cmt_generators.cxx
r613 r637 1114 1114 { 1115 1115 FragmentHandle header_fragment (header); 1116 header_fragment.copy (m_output_file, constituent.variables, 3,1116 header_fragment.copy (m_output_file, constituent.variables, 4, 1117 1117 &m_CONSTITUENT, 1118 1118 &m_CONSTITUENTSUFFIX, 1119 &m_OBJS); 1119 &m_OBJS, 1120 &m_LINE); 1120 1121 } 1121 1122 else … … 1183 1184 SourceFile& file = m_source_files[i]; 1184 1185 const cmt_string& file_name = file.name (); 1186 m_OUTPUTNAME = file.output (); 1185 1187 m_FULLNAME = file_name; 1186 1188 CmtSystem::get_dot_suffix (file_name, suffix); … … 1193 1195 m_FILESUFFIX.value = suffix; 1194 1196 //CmtSystem::get_dot_suffix (m_FILENAME.value, m_FILESUFFIX.value); 1195 CmtSystem::get_suffix (m_FILENAME.value, m_FILEEXTENSION 1197 CmtSystem::get_suffix (m_FILENAME.value, m_FILEEXTENSION.value); 1196 1198 /* 1197 1199 if (!CmtSystem::test_file (file_name) && !CmtSystem::test_directory (file_name)) … … 1206 1208 // ensure that ${CONSTITUENT}_dependencies.make gets rebuilt 1207 1209 // whenever source file OR its dependencies change 1208 if (!dependency_fragment.copy (m_output_file, constituent.variables, 9,1210 if (!dependency_fragment.copy (m_output_file, constituent.variables, 10, 1209 1211 &m_FILEPATH, 1210 1212 &m_SUFFIX, 1213 &m_OUTPUTNAME, 1211 1214 &m_CONSTITUENT, 1212 1215 &m_CONSTITUENTSUFFIX, … … 1218 1221 } 1219 1222 1220 fragment.copy (m_output_file, constituent.variables, 9,1223 fragment.copy (m_output_file, constituent.variables, 10, 1221 1224 &m_FILEPATH, 1222 1225 &m_SUFFIX, 1226 &m_OUTPUTNAME, 1223 1227 &m_CONSTITUENT, 1224 1228 &m_CONSTITUENTSUFFIX, … … 1234 1238 { 1235 1239 FragmentHandle trailer_fragment (trailer); 1236 trailer_fragment.copy (m_output_file, constituent.variables, 3,1240 trailer_fragment.copy (m_output_file, constituent.variables, 4, 1237 1241 &m_CONSTITUENT, 1238 1242 &m_CONSTITUENTSUFFIX, 1239 &m_OBJS); 1243 &m_OBJS, 1244 &m_LINE); 1240 1245 } 1241 1246 … … 2768 2773 if (constituent.need_check) 2769 2774 { 2775 if (constituent.group != 0 && 2776 constituent.group->name () == "check") 2777 m_ISCHECKGROUP = "is_check_group"; 2778 else 2779 m_ISCHECKGROUP = "is_not_check_group"; 2780 2770 2781 check_application_header_fragment.copy (m_output_file, 2771 constituent.variables, 3,2782 constituent.variables, 4, 2772 2783 &m_PACKAGE, 2773 2784 &m_CONSTITUENT, 2774 &m_CONSTITUENTSUFFIX); 2785 &m_CONSTITUENTSUFFIX, 2786 &m_ISCHECKGROUP); 2775 2787 } 2776 2788 } -
CMT/v1r25-branch/source/cmt_parser.cxx
r612 r637 9399 9399 Use* u = imports[i]; 9400 9400 9401 Include::parse_all (u); 9402 9401 9403 u->fill_includes_macro (buffer); 9402 9404 u->fill_macro (buffer, "cflags"); -
CMT/v1r25-branch/source/cmt_std.h
r547 r637 10 10 11 11 #ifndef WIN32 12 #ifndef linux12 #ifndef __linux__ 13 13 #ifndef __CYGWIN__ 14 14 #ifndef __APPLE__ -
CMT/v1r25-branch/source/cmt_symbol.cxx
r612 r637 223 223 #endif 224 224 } 225 /** 226 * similar to processing 227 * `shell' function of GNU Make does 228 * on command output 229 */ 230 static void process_cmd_output (cmt_string& text) 231 { 232 //cerr << "process_cmd_output (begin): [" << text << "]" << endl; 233 // remove trailing (carriage-return and) newline(s) 234 int nl = text.size (); 235 while (nl > 0 && text[nl - 1] == '\n') 236 { 237 nl--; 238 if (nl > 0 && text[nl - 1] == '\r') 239 nl--; 240 } 241 if (nl != text.size ()) 242 text.erase (nl); 243 244 // convert each newline (or carriage-return / newline pair) to a single space 245 text.replace_all ("\r\n", " "); 246 text.replace_all ("\n", " "); 247 //cerr << "process_cmd_output (end): [" << text << "]" << endl; 248 } 225 249 226 250 /** … … 318 342 CmtSystem::execute (command, result); 319 343 344 /* 320 345 int pos; 321 346 pos = result.find ('\n'); … … 323 348 pos = result.find ('\r'); 324 349 if (pos != cmt_string::npos) result.erase (pos); 325 350 */ 351 process_cmd_output (result); 352 326 353 if (Cmt::get_debug ()) 327 354 { 328 cout << " 355 cout << "resolve_value: Executing [" << command << "] to expand a symbol value =>[" 329 356 << result << "]" << endl; 330 357 } … … 462 489 CmtSystem::execute (command, result); 463 490 491 /* 464 492 int pos; 465 493 pos = result.find ('\n'); … … 467 495 pos = result.find ('\r'); 468 496 if (pos != cmt_string::npos) result.erase (pos); 497 */ 498 process_cmd_output (result); 469 499 470 500 if (Cmt::get_debug ()) … … 596 626 CmtSystem::execute (command, result); 597 627 628 /* 598 629 int pos; 599 630 pos = result.find ('\n'); … … 601 632 pos = result.find ('\r'); 602 633 if (pos != cmt_string::npos) result.erase (pos); 634 */ 635 process_cmd_output (result); 603 636 604 637 if (Cmt::get_debug ())
Note: See TracChangeset
for help on using the changeset viewer.