@@ -265,6 +265,8 @@ namespace
265265 System2CommandInfo setupCommandInfo;
266266 SYSTEM2_RESULT result = System2Run (setupCommand.c_str (), &setupCommandInfo);
267267
268+ ssLOG_INFO (" Running setup command: " << setupCommand);
269+
268270 if (result != SYSTEM2_RESULT_SUCCESS)
269271 {
270272 ssLOG_ERROR (" Failed to run setup command with result: " << result);
@@ -302,6 +304,8 @@ namespace
302304 ssLOG_ERROR (" Output: " << output);
303305 return false ;
304306 }
307+
308+ ssLOG_INFO (" Output: " << output);
305309 }
306310 }
307311
@@ -560,14 +564,14 @@ bool runcpp2::CopyDependenciesBinaries( const std::string& scriptPath,
560564 if (scriptInfo.Dependencies .at (i).LibraryType == DependencyLibraryType::HEADER)
561565 return true ;
562566
563- const DependencySearchProperty & searchProperty = scriptInfo .Dependencies
567+ const DependencyLinkProperty & searchProperty = scriptInfo .Dependencies
564568 .at (i)
565- .SearchProperties
569+ .LinkProperties
566570 .at (profile.Name );
567571
568572 // Get the Search path and search library name
569- if ( scriptInfo.Dependencies .at (i).SearchProperties .find (profile.Name ) ==
570- scriptInfo.Dependencies .at (i).SearchProperties .end ())
573+ if ( scriptInfo.Dependencies .at (i).LinkProperties .find (profile.Name ) ==
574+ scriptInfo.Dependencies .at (i).LinkProperties .end ())
571575 {
572576 ssLOG_ERROR (" Search properties for dependency " << scriptInfo.Dependencies .at (i).Name <<
573577 " is missing profile " << profile.Name );
@@ -583,8 +587,11 @@ bool runcpp2::CopyDependenciesBinaries( const std::string& scriptPath,
583587 std::string currentSearchLibraryName = searchProperty.SearchLibraryNames .at (j);
584588 std::string currentSearchDirectory = searchProperty.SearchDirectories .at (k);
585589
590+ ssLOG_DEBUG (" currentSearchDirectory: " << currentSearchDirectory);
591+ ssLOG_DEBUG (" currentSearchLibraryName: " << currentSearchLibraryName);
592+
586593 if (!ghc::filesystem::path (currentSearchDirectory).is_absolute ())
587- currentSearchDirectory = scriptDirectory + " /" + currentSearchDirectory;
594+ currentSearchDirectory = dependenciesCopiesPaths[i] + " /" + currentSearchDirectory;
588595
589596 std::error_code _;
590597 if ( !ghc::filesystem::exists (currentSearchDirectory, _) ||
@@ -601,6 +608,10 @@ bool runcpp2::CopyDependenciesBinaries( const std::string& scriptPath,
601608
602609 std::string currentFileName = it.path ().stem ().string ();
603610 std::string currentExtension = it.path ().extension ().string ();
611+ if (!currentExtension.empty ())
612+ currentExtension.erase (0 , 1 );
613+
614+ ssLOG_DEBUG (" currentFileName: " << currentFileName);
604615
605616 // TODO: Make it not case sensitive?
606617 bool nameMatched = false ;
@@ -624,14 +635,18 @@ bool runcpp2::CopyDependenciesBinaries( const std::string& scriptPath,
624635 if (!extensionMatched)
625636 continue ;
626637
627- if (!ghc::filesystem::copy_file ( it.path (),
628- runcpp2ScriptDir,
629- ghc::filesystem::copy_options::overwrite_existing,
630- _))
638+ std::error_code copyErrorCode;
639+ ghc::filesystem::copy ( it.path (),
640+ runcpp2ScriptDir,
641+ ghc::filesystem::copy_options::overwrite_existing,
642+ copyErrorCode);
643+
644+ if (copyErrorCode)
631645 {
632646 ssLOG_ERROR (" Failed to copy file from " << it.path ().string () <<
633647 " to " << runcpp2ScriptDir);
634648
649+ ssLOG_ERROR (" Error: " << copyErrorCode.message ());
635650 return false ;
636651 }
637652
0 commit comments