#NEWLINE# def detect_lib_modules_nix( self ) : #NEWLINE# #INDENT# libsuffix = None #NEWLINE# if mesonlib . is_osx ( ) : #NEWLINE# #INDENT# libsuffix = 'dylib' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# libsuffix = 'so' #NEWLINE# #UNINDENT# globber = 'libboost_*.{}' . format ( libsuffix ) #NEWLINE# if ( self . boost_root is None ) : #NEWLINE# #INDENT# libdirs = mesonlib . get_library_dirs ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# libdirs = [ os . path . join ( self . boost_root , 'lib' ) ] #NEWLINE# #UNINDENT# for libdir in libdirs : #NEWLINE# #INDENT# for entry in glob . glob ( os . path . join ( libdir , globber ) ) : #NEWLINE# #INDENT# lib = os . path . basename ( lib ) #NEWLINE# name = lib . split ( '.' ) [ 0 ] . split ( '_' , 1 ) [ ( - 1 ) ] #NEWLINE# if entry . endswith ( '-mt.so' ) : #NEWLINE# #INDENT# self . lib_modules_mt [ name ] = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . lib_modules [ name ] = True