#NEWLINE# def ReadLibraries( self , project_configuration ) : #NEWLINE# #INDENT# 'Reads the libraries from the Makefile.am file.\n\n    Args:\n      project_configuration: the project configuration (instance of\n                             ProjectConfiguration).\n\n    Returns:\n      A boolean to indicate the libraries were read from the file.\n    ' #NEWLINE# library_libadd = b'{0:s}_la_LIBADD' . format ( project_configuration . library_name ) #NEWLINE# in_libadd = False #NEWLINE# with open ( self . _path , 'rb' ) as file_object : #NEWLINE# #INDENT# for line in file_object . readlines ( ) : #NEWLINE# #INDENT# line = line . strip ( ) #NEWLINE# if in_libadd : #NEWLINE# #INDENT# if line . endswith ( b'\\' ) : #NEWLINE# #INDENT# line = line [ : ( - 1 ) ] . strip ( ) #NEWLINE# #UNINDENT# if ( line . startswith ( b'@' ) and line . endswith ( b'_LIBADD@' ) ) : #NEWLINE# #INDENT# self . libraries . append ( line [ 1 : ( - 8 ) ] . lower ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if line . startswith ( library_libadd ) : #NEWLINE# #INDENT# in_libadd = True #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# self . libraries = sorted ( self . libraries ) #NEWLINE# return True