Changeset 561 for CMT/HEAD/source/cmt_generators.cxx
- Timestamp:
- Mar 8, 2011, 1:56:48 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/source/cmt_generators.cxx
r547 r561 230 230 CmtSystem::basename (m_FULLNAME, m_FILENAME.value); 231 231 232 if (CmtSystem::test_file (m_FULLNAME))233 {232 // if (CmtSystem::test_file (m_FULLNAME)) 233 // { 234 234 java_fragment.copy (m_output_file, constituent.variables, 5, 235 235 &m_NAME, … … 238 238 &m_CONSTITUENT, 239 239 &m_CONSTITUENTSUFFIX); 240 /* 240 241 } 241 242 else … … 244 245 // cerr << "#CMT> Warning: file " << m_FULLNAME << " not found" << endl; 245 246 } 247 */ 246 248 } 247 249 … … 514 516 //fill_outputs (); 515 517 516 prepare_use_context ();518 //prepare_use_context (); 517 519 518 520 m_DATE = CmtSystem::now (); … … 986 988 int count = get_all_files (full_name, excludes, selects, files); 987 989 988 filter_path (full_name);990 // filter_path (full_name); 989 991 990 992 /* … … 1010 1012 // fill_outputs (); 1011 1013 1012 prepare_use_context ();1014 // prepare_use_context (); 1013 1015 1014 1016 m_DATE = CmtSystem::now (); … … 1069 1071 else 1070 1072 { 1073 /* 1071 1074 for (i = 0; i < sources.size (); i++) 1072 1075 { … … 1086 1089 { 1087 1090 const cmt_string& name = files[j]; 1088 1091 */ 1092 for (i = 0; i < m_source_files.size (); i++) 1093 { 1094 SourceFile& file = m_source_files[i]; 1095 const cmt_string& name = file.name (); 1089 1096 if (name != "") 1090 1097 { … … 1101 1108 name.c_str ()); 1102 1109 } 1103 }1110 // } 1104 1111 } 1105 1112 } … … 1118 1125 CmtSystem::basename (file_name, m_FILENAME.value); 1119 1126 CmtSystem::get_dot_suffix (m_FILENAME.value, m_FILESUFFIX.value); 1120 1127 /* 1121 1128 if (!CmtSystem::test_file (file_name) && !CmtSystem::test_directory (file_name)) 1122 1129 { 1123 1130 CmtMessage::warning ("Source file " + file_name + " not found"); 1124 // cerr << "#CMT> Warning: Source file " << file_name << " not found" << endl; 1125 } 1126 1131 } 1132 */ 1127 1133 filter_path (m_FULLNAME.value); 1128 1134 … … 1164 1170 const cmt_string& output_suffix) 1165 1171 { 1166 static cmt_string output_dir;1172 //static cmt_string output_dir; 1167 1173 static cmt_string suffix; 1168 1174 static cmt_string name; … … 1172 1178 { 1173 1179 CmtMessage::warning ("Source file " + file + " not found"); 1174 // cerr << "#CMT> Warning: Source file " << file << " not found" << endl; 1175 } 1176 1177 CmtSystem::dirname (file, output_dir); 1178 output_dir += CmtSystem::file_separator (); 1179 1180 filter_path (output_dir); 1180 } 1181 1182 //CmtSystem::dirname (file, output_dir); 1183 //output_dir += CmtSystem::file_separator (); 1184 1185 //filter_path (output_dir); 1181 1186 1182 1187 CmtSystem::get_suffix (file, suffix); … … 2520 2525 //-------------------------------------------------- 2521 2526 void ConstituentsMakefileGenerator::build (const cmt_string& package, 2522 const CmtSystem::cmt_string_vector& arguments) 2527 const cmt_string& file) 2528 // const CmtSystem::cmt_string_vector& arguments) 2523 2529 { 2524 2530 reset (); 2525 2531 2526 cmt_string file_name, dir_name; 2527 2528 if (arguments.size () > 0) 2529 { 2530 cmt_string arg = arguments[0]; 2531 if (arg.substr (0, 5) == "-out=") 2532 { 2533 arg.erase (0, 5); 2534 file_name = arg; 2535 } 2536 else if (arg.substr (0, 8) == "-outdir=") 2537 { 2538 arg.erase (0, 8); 2539 dir_name = arg; 2540 } 2541 } 2532 cmt_string file_name (file); 2533 //, dir_name; 2534 2535 // if (arguments.size () > 0) 2536 // { 2537 // cmt_string arg = arguments[0]; 2538 // if (arg.substr (0, 5) == "-out=") 2539 // { 2540 // arg.erase (0, 5); 2541 // file_name = arg; 2542 // } 2543 // else if (arg.substr (0, 8) == "-outdir=") 2544 // { 2545 // arg.erase (0, 8); 2546 // dir_name = arg; 2547 // } 2548 // } 2542 2549 2543 2550 if (file_name == "") … … 2557 2564 } 2558 2565 2559 if (dir_name != "")2560 {2561 if (dir_name [dir_name.size () - 1] != CmtSystem::file_separator ())2562 dir_name += CmtSystem::file_separator ();2563 file_name = dir_name + file_name;2564 }2566 // if (dir_name != "") 2567 // { 2568 // if (dir_name [dir_name.size () - 1] != CmtSystem::file_separator ()) 2569 // dir_name += CmtSystem::file_separator (); 2570 // file_name = dir_name + file_name; 2571 // } 2565 2572 2566 2573 cmt_string save_file_name = file_name;
Note: See TracChangeset
for help on using the changeset viewer.