- Timestamp:
- Sep 1, 2005, 8:49:02 AM (19 years ago)
- Location:
- CMT/HEAD
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/ChangeLog
r79 r80 1 2005-09-01 Christian Arnault <arnault@lal.in2p3.fr> 276 2 3 * source/cmt_symbol.cxx (all_set): Generate all XXXROOT and XXXCONFIG evs accroding 4 to the strategies. 5 6 * source/cmt_parser.cxx (get_strategy): Make the use argument of the function a required argument 7 ie suppress the default arg to Use::current () 8 Prepare to migrate this function as a member function of Use 9 1 10 2005-08-31 Christian Arnault <arnault@lal.in2p3.fr> 275 11 12 * source/cmt.h (class Cmt): Making the get_strategy function a member function 13 rather than a private local one 2 14 3 15 * mgr/fragments/constituent (uninstall): Protect against missing un/install targets -
CMT/HEAD/mgr/cmt.nmake
r79 r80 3 3 # Application cmt 4 4 # 5 # Generated Wed Aug 31 1 4:53:112005 by carnault5 # Generated Wed Aug 31 17:37:50 2005 by carnault 6 6 # 7 7 #==================================== -
CMT/HEAD/source/cmt.h
r42 r80 211 211 static CmtScopeFilteringMode get_scope_filtering_mode (); 212 212 static bool get_all_sets_done (); 213 static bool get_strategy (const cmt_string& name, Use& use); 213 214 214 215 /// If a project file exists above the current directory we don't need CMTPATH -
CMT/HEAD/source/cmt_parser.cxx
r79 r80 153 153 154 154 //---------------------------------------------------------- 155 static bool get_strategy (const cmt_string& name, Use& use = Use::current())155 bool Cmt::get_strategy (const cmt_string& name, Use& use) 156 156 { 157 157 static cmt_string cmtpath; … … 1741 1741 } 1742 1742 1743 if (get_strategy ("InstallArea" ))1743 if (get_strategy ("InstallArea", current_use)) 1744 1744 { 1745 1745 const CmtInstallAreaMgr& ia_mgr = CmtInstallAreaMgr::instance (); … … 2066 2066 //Use::UsePtrVector& Uses = Use::get_ordered_uses (); 2067 2067 2068 Use& current_use = Use::current (); 2069 2068 2070 if (Me.m_debug) 2069 2071 { … … 2163 2165 // Try a cleanup of the installation area 2164 2166 // 2165 if (get_strategy ("InstallArea" ))2167 if (get_strategy ("InstallArea", current_use)) 2166 2168 { 2167 2169 CmtInstallAreaMgr& ia_mgr = CmtInstallAreaMgr::instance (); … … 2169 2171 //cout << "#IA3>" << endl; 2170 2172 2171 if (get_strategy ("SetupCleanup" ))2173 if (get_strategy ("SetupCleanup", Use::current ())) 2172 2174 { 2173 2175 ia_mgr.config (); … … 2901 2903 Symbol::expand (libname); 2902 2904 2903 if (get_strategy ("InstallArea" ))2905 if (get_strategy ("InstallArea", current_use)) 2904 2906 { 2905 2907 const CmtInstallAreaMgr& ia_mgr = CmtInstallAreaMgr::instance (); … … 3092 3094 void Cmt::do_setup (const ArgParser& ap) 3093 3095 { 3096 Use& current_use = Use::current (); 3094 3097 3095 3098 do_check_configuration (ap); … … 3100 3103 // Try a cleanup of the installation area 3101 3104 // 3102 if (get_strategy ("InstallArea" ))3105 if (get_strategy ("InstallArea", current_use)) 3103 3106 { 3104 3107 CmtInstallAreaMgr& ia_mgr = CmtInstallAreaMgr::instance (); … … 3109 3112 3110 3113 /* 3111 if (get_strategy ("SetupCleanup" ))3114 if (get_strategy ("SetupCleanup", current_use)) 3112 3115 { 3113 3116 const cmt_string& installarea = ia_mgr.get_installarea (); … … 3649 3652 void Cmt::do_show_strategies (const ArgParser& /*ap*/) 3650 3653 { 3654 Use& current_use = Use::current (); 3655 3651 3656 Project::show_specified_strategies_for_all (); 3652 3657 … … 3674 3679 cout << "Build strategy : "; 3675 3680 3676 if (get_strategy ("BuildPrototypes" ))3681 if (get_strategy ("BuildPrototypes", current_use)) 3677 3682 { 3678 3683 cout << "prototypes"; … … 3683 3688 } 3684 3689 3685 if (get_strategy ("InstallArea" ))3690 if (get_strategy ("InstallArea", current_use)) 3686 3691 { 3687 3692 cout << " with_installarea"; … … 3696 3701 cout << "Setup strategy : "; 3697 3702 3698 if (get_strategy ("SetupConfig" ))3703 if (get_strategy ("SetupConfig", current_use)) 3699 3704 { 3700 3705 cout << "config"; … … 3705 3710 } 3706 3711 3707 if (get_strategy ("SetupRoot" ))3712 if (get_strategy ("SetupRoot", current_use)) 3708 3713 { 3709 3714 cout << " root"; … … 3714 3719 } 3715 3720 3716 if (get_strategy ("SetupCleanup" ))3721 if (get_strategy ("SetupCleanup", current_use)) 3717 3722 { 3718 3723 cout << " cleanup"; … … 4171 4176 cout << "Creating setup scripts." << endl; 4172 4177 4178 Use& current_use = Use::current (); 4173 4179 4174 4180 cmt_string no_cleanup_opt; 4175 4181 4176 if (get_strategy ("SetupCleanup" ))4182 if (get_strategy ("SetupCleanup", current_use)) 4177 4183 { 4178 4184 no_cleanup_opt = " -no_cleanup"; … … 4364 4370 cout << "Creating setup scripts." << endl; 4365 4371 4372 Use& current_use = Use::current (); 4373 4366 4374 cmt_string no_cleanup_opt; 4367 4375 4368 if (get_strategy ("SetupCleanup" ))4376 if (get_strategy ("SetupCleanup", current_use)) 4369 4377 { 4370 4378 no_cleanup_opt = " -no_cleanup"; … … 4704 4712 bool Cmt::need_prototypes () 4705 4713 { 4706 if (get_strategy ("BuildPrototypes")) return (true); 4714 Use& current_use = Use::current (); 4715 if (get_strategy ("BuildPrototypes", current_use)) return (true); 4707 4716 else return (false); 4708 4717 } … … 5747 5756 cmt_string system = CmtSystem::get_cmt_config (); 5748 5757 5749 bool do_config = get_strategy ("SetupConfig" );5750 bool do_root = get_strategy ("SetupRoot" );5758 bool do_config = get_strategy ("SetupConfig", use); 5759 bool do_root = get_strategy ("SetupRoot", use); 5751 5760 5752 5761 switch (mode) … … 7295 7304 CmtPathPattern::apply_all (); 7296 7305 7297 if ( get_strategy ("InstallArea"))7306 if (Cmt::get_strategy ("InstallArea", Use::current ())) 7298 7307 { 7299 7308 CmtInstallAreaMgr& ia_mgr = CmtInstallAreaMgr::instance (); … … 7429 7438 // 7430 7439 /* 7431 if (get_strategy ("InstallArea" ))7440 if (get_strategy ("InstallArea", Use::current ())) 7432 7441 { 7433 7442 CmtInstallAreaMgr& ia_mgr = CmtInstallAreaMgr::instance (); -
CMT/HEAD/source/cmt_symbol.cxx
r78 r80 1247 1247 1248 1248 static SymbolVector& Symbols = symbols (); 1249 Use::UsePtrVector& Uses = Use::get_ordered_uses (); 1249 1250 1250 1251 static CmtSystem::cmt_string_vector envs; … … 1278 1279 } 1279 1280 } 1281 1282 cmt_string cmtconfig = CmtSystem::get_cmt_config (); 1283 1284 if (Uses.size () > 0) 1285 { 1286 int number; 1287 1288 for (number = 0; number < Uses.size (); number++) 1289 { 1290 Use& use = *(Uses[number]); 1291 1292 if (use.discarded) continue; 1293 1294 if (use.get_package_name () == "cmt_standalone") continue; 1295 1296 if (Cmt::get_strategy ("SetupConfig", use)) 1297 { 1298 cmt_string& temp = envs.add (); 1299 1300 temp = use.prefix; 1301 temp += "CONFIG="; 1302 temp += cmtconfig; 1303 } 1304 1305 if (Cmt::get_strategy ("SetupRoot", use)) 1306 { 1307 cmt_string& temp = envs.add (); 1308 1309 temp = use.prefix; 1310 temp += "ROOT="; 1311 temp += use.get_full_path (); 1312 } 1313 } 1314 } 1315 1316 { 1317 Use& use = Use::current (); 1318 1319 if (use.get_package_name () != "cmt_standalone") 1320 { 1321 if (Cmt::get_strategy ("SetupConfig", use)) 1322 { 1323 cmt_string& temp = envs.add (); 1324 1325 temp = use.prefix; 1326 temp += "CONFIG="; 1327 temp += cmtconfig; 1328 } 1329 1330 if (Cmt::get_strategy ("SetupRoot", use)) 1331 { 1332 cmt_string& temp = envs.add (); 1333 1334 temp = use.prefix; 1335 temp += "ROOT="; 1336 temp += use.get_full_path (); 1337 } 1338 } 1339 } 1280 1340 1281 1341 for (number = 0; number < Symbol::symbol_number (); number++)
Note: See TracChangeset
for help on using the changeset viewer.