- Timestamp:
- Jun 6, 2013, 2:43:50 PM (11 years ago)
- Location:
- CMT/v1r25-branch
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/v1r25-branch
-
CMT/v1r25-branch/ChangeLog
r618 r637 1 2013-01-03 <rybkin@lal.in2p3.fr> 498 2 3 * source/cmt_constituent.cxx: In class constituents_action_iterator, 4 set constituent attribute need_check to true, if specified, for applications 5 only 6 * source/cmt_generator.h: In class CmtGenerator, introduce member 7 m_ISCHECKGROUP 8 * source/cmt_generator.cxx: idem 9 * source/cmt_generators.cxx: In class ConstituentsMakefileGenerator 10 function build, depending on whether constituent belongs to check group, 11 set m_ISCHECKGROUP appropriately and fill check_application_header 12 makefiles fragments with value 13 * mgr/fragments/check_application_header: For applications belonging to 14 check group, ensure that application is built before running check 15 * mgr/fragments/nmake/check_application_header: idem 16 * mgr/fragments/check_application: In application Makefile, remove 17 check target dependency on application, handled in constituents Makefile, 18 improve control of Make verbosity 19 * mgr/fragments/check_java: idem 20 * mgr/fragments/nmake/check_application: idem 21 * mgr/fragments/nmake/check_java: idem 22 23 2012-11-23 <rybkin@lal.in2p3.fr> 497 24 25 * source/cmt_generators.cxx: In class DocumentGenerator function build, 26 add template LINE for fragments document's header, trailer, add template 27 OUTPUTNAME for fragments dependency, document's fragment 28 29 2012-11-07 <rybkin@lal.in2p3.fr> 496 30 31 * source/cmt_symbol.cxx: Introduce helper function process_cmd_output to 32 process command output similar to `shell' function of GNU Make. Make use of 33 this function in functions resolve_value, resolve_value_for_macros, 34 suppress_OS_delimiters in order to allow for possibly multi-line output of 35 commands in command substitution (introduced with backquotes) 36 37 2012-09-21 <rybkin@lal.in2p3.fr> 495 38 39 * source/cmt_std.h: Replace macro linux with __linux__, latter being 40 predefined by gcc with or without -ansi option 41 42 2012-08-04 <rybkin@lal.in2p3.fr> 494 43 44 * source/cmt_parser.cxx: In class StandardMacroBuilder, in function 45 fill_for_all_constituents, parse includes acquired via include_dirs 46 statement for all imported uses (were otherwise left unparsed) 47 1 48 2012-05-15 <rybkin@lal.in2p3.fr> 493 2 49 … … 106 153 parse comment lines 107 154 * source/cmt_string.h: In class cmt_string, introduce constructor from 108 character array with 155 character array with n elements 109 156 * source/cmt_string.cxx: In class cmt_string, implement constructor from 110 character array with 157 character array with n elements 111 158 * source/cmt_parser.cxx: In class Cmt function vector_to_string, make sure 112 159 separator is not prepended at beginning -
CMT/v1r25-branch/mgr/fragments/check_application
r593 r637 3 3 check :: ${CONSTITUENT}check ; 4 4 5 ${CONSTITUENT}check :: ${CONSTITUENT} 6 $(${CONSTITUENT}_pre_check) 7 $(bin)${CONSTITUENT}${application_suffix} $(${CONSTITUENT}_check_args) 8 $(${CONSTITUENT}_post_check) 5 #${CONSTITUENT}check :: ${CONSTITUENT} 6 ${CONSTITUENT}check :: 7 $(silent) $(${CONSTITUENT}_pre_check) 8 $(silent) $(bin)${CONSTITUENT}${application_suffix} $(${CONSTITUENT}_check_args) 9 $(silent) $(${CONSTITUENT}_post_check) 9 10 10 11 #-- end of check_application ------ -
CMT/v1r25-branch/mgr/fragments/check_application_header
r492 r637 1 1 #-- start of check_application_header ------ 2 3 cmt_${CONSTITUENT}_${ISCHECKGROUP} = 1 4 5 #-------------------------------------- 2 6 3 7 check :: ${CONSTITUENT}check … … 7 11 #${CONSTITUENT}check : ${CONSTITUENT} $(cmt_local_${CONSTITUENT}_makefile) 8 12 #${CONSTITUENT}check : $(cmt_local_${CONSTITUENT}_makefile) 13 ifdef cmt_${CONSTITUENT}_is_check_group 14 ${CONSTITUENT}check : ${CONSTITUENT} 15 else 9 16 ${CONSTITUENT}check : 17 endif 10 18 @if test ! -f $(cmt_local_${CONSTITUENT}_makefile); then \ 11 19 $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build constituent_makefile -out=$(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT}; \ -
CMT/v1r25-branch/mgr/fragments/check_java
r11 r637 1 1 #-- start of check_java ------ 2 2 3 check :: ${CONSTITUENT}check 3 check :: ${CONSTITUENT}check ; 4 4 5 ${CONSTITUENT}check :: ${CONSTITUENT} 6 cd $(bin); $(${CONSTITUENT}_pre_check) 7 cd $(bin); java $(java_run_options) $(${CONSTITUENT}_run_options) ${CONSTITUENT} $(${CONSTITUENT}_check_args) 8 cd $(bin); $(${CONSTITUENT}_post_check) 5 #${CONSTITUENT}check :: ${CONSTITUENT} 6 ${CONSTITUENT}check :: 7 $(silent) cd $(bin); $(${CONSTITUENT}_pre_check) 8 $(silent) cd $(bin); java $(java_run_options) $(${CONSTITUENT}_run_options) ${CONSTITUENT} $(${CONSTITUENT}_check_args) 9 $(silent) cd $(bin); $(${CONSTITUENT}_post_check) 10 9 11 #-- end of check_java ------ -
CMT/v1r25-branch/mgr/fragments/nmake/check_application
r11 r637 1 #-- start of check_application ------ 1 2 2 check :: ${CONSTITUENT}check 3 check :: ${CONSTITUENT}check ; 3 4 4 ${CONSTITUENT}check :: ${CONSTITUENT} 5 $(${CONSTITUENT}_pre_check) 6 $(bin)${CONSTITUENT}$(application_suffix) $(${CONSTITUENT}_check_args) 7 $(${CONSTITUENT}_post_check) 5 #${CONSTITUENT}check :: ${CONSTITUENT} 6 ${CONSTITUENT}check :: 7 $(silent) $(${CONSTITUENT}_pre_check) 8 $(silent) $(bin)${CONSTITUENT}$(application_suffix) $(${CONSTITUENT}_check_args) 9 $(silent) $(${CONSTITUENT}_post_check) 10 11 #-- end of check_application ------ -
CMT/v1r25-branch/mgr/fragments/nmake/check_application_header
r492 r637 1 1 #-- start of check_application_header ------ 2 3 cmt_${CONSTITUENT}_${ISCHECKGROUP} = 1 4 5 #-------------------------------------- 2 6 3 7 check :: ${CONSTITUENT}check … … 7 11 #${CONSTITUENT}check : ${CONSTITUENT} $(cmt_local_${CONSTITUENT}_makefile) 8 12 #${CONSTITUENT}check : $(cmt_local_${CONSTITUENT}_makefile) 13 !if defined (cmt_${CONSTITUENT}_is_check_group) 14 ${CONSTITUENT}check : ${CONSTITUENT} 15 !else 9 16 ${CONSTITUENT}check : 17 !endif 10 18 @if not exist $(cmt_local_${CONSTITUENT}_makefile) $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile -out=$(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT} 11 19 $(echo) "(constituents.nmake) Starting $@" -
CMT/v1r25-branch/mgr/fragments/nmake/check_java
r11 r637 1 #-- start of check_java ------ 1 2 2 check :: ${CONSTITUENT}check 3 check :: ${CONSTITUENT}check ; 3 4 4 ${CONSTITUENT}check :: ${CONSTITUENT} 5 $(${CONSTITUENT}_pre_check) 6 java ${CONSTITUENT} $(${CONSTITUENT}_check_args) 7 $(${CONSTITUENT}_post_check) 5 #${CONSTITUENT}check :: ${CONSTITUENT} 6 ${CONSTITUENT}check :: 7 $(silent) $(${CONSTITUENT}_pre_check) 8 $(silent) java ${CONSTITUENT} $(${CONSTITUENT}_check_args) 9 $(silent) $(${CONSTITUENT}_post_check) 10 11 #-- end of check_java ------ -
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.