mirror of
https://github.com/nasa/trick.git
synced 2025-01-29 15:43:57 +00:00
Split CP up into components that can be called individually
Empty header files may need build directory created for lib_deps file. Error message in make_makefile_src was not showing file name. refs #86
This commit is contained in:
parent
274a6afd62
commit
63179b2fa3
@ -58,7 +58,7 @@ push @top_lib_dep_file_names, "build/S_define.lib_deps" ;
|
||||
foreach my $f ( @top_lib_dep_file_names ) {
|
||||
my @all_lines ;
|
||||
next if ( $f eq "" ) ;
|
||||
open FH, "$f" or die 'cannot open $f' ;
|
||||
open FH, "$f" or die "cannot open $f" ;
|
||||
@all_lines = <FH> ;
|
||||
close FH ;
|
||||
chomp @all_lines ;
|
||||
|
@ -521,6 +521,10 @@ void PrintAttributes::printHeaderLibraryDependencies() {
|
||||
found = (*sit).find_last_of(".") ;
|
||||
std::string lib_dep_file = std::string("build") + (*sit).substr(0,found) + ".lib_deps" ;
|
||||
|
||||
char * dir_name ;
|
||||
dir_name = dirname((char *)lib_dep_file.c_str()) ;
|
||||
_mkdir(dir_name) ;
|
||||
|
||||
std::vector< std::string > lib_deps = cs.getLibraryDependencies((*sit)) ;
|
||||
std::vector< std::string >::iterator vit ;
|
||||
if ( lib_deps.size() > 0 ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user