mirror of
https://github.com/nasa/trick.git
synced 2024-12-20 21:53:10 +00:00
Split CP up into components that can be called individually
Added a doxygen keyword marker "@" character as valid after library dependencies. refs #86
This commit is contained in:
parent
e438d83f2d
commit
274a6afd62
@ -15,7 +15,9 @@ sub get_lib_deps ($$) {
|
||||
my (@lib_list) ;
|
||||
my (@inc_paths) ;
|
||||
|
||||
($lib_deps) = $contents =~ /LIBRARY[ _]DEPENDENC(?:Y|IES):[^(]*(.*?)\)([A-Z _\t\n\r]+:|\s*\*)/si ;
|
||||
# library dependency regular expression will match all the way through last parenthesis followed by
|
||||
# another field in the trick header, a doxygen style keyword, or the end of comment *.
|
||||
($lib_deps) = $contents =~ /LIBRARY[ _]DEPENDENC(?:Y|IES):[^(]*(.*?)\)([A-Z _\t\n\r]+:|\s*[\*@])/si ;
|
||||
@lib_list = split /\)[ \t\n\r\*]*\(/ , $lib_deps ;
|
||||
|
||||
@inc_paths = $ENV{"TRICK_CFLAGS"} =~ /-I\s*(\S+)/g ; # get include paths from TRICK_CFLAGS
|
||||
|
Loading…
Reference in New Issue
Block a user