@ -792,7 +792,8 @@ class Python3Dependency(ExternalDependency):
self . version = sysconfig . get_config_var ( ' py_version ' )
self . version = sysconfig . get_config_var ( ' py_version ' )
self . is_found = True
self . is_found = True
def get_methods ( self ) :
@staticmethod
def get_methods ( ) :
if mesonlib . is_windows ( ) :
if mesonlib . is_windows ( ) :
return [ DependencyMethods . PKGCONFIG , DependencyMethods . SYSCONFIG ]
return [ DependencyMethods . PKGCONFIG , DependencyMethods . SYSCONFIG ]
elif mesonlib . is_osx ( ) :
elif mesonlib . is_osx ( ) :
@ -839,7 +840,8 @@ class PcapDependency(ExternalDependency):
except Exception as e :
except Exception as e :
mlog . debug ( ' Pcap not found via pcap-config. Trying next, error was: ' , str ( e ) )
mlog . debug ( ' Pcap not found via pcap-config. Trying next, error was: ' , str ( e ) )
def get_methods ( self ) :
@staticmethod
def get_methods ( ) :
if mesonlib . is_osx ( ) :
if mesonlib . is_osx ( ) :
return [ DependencyMethods . PKGCONFIG , DependencyMethods . CONFIG_TOOL , DependencyMethods . EXTRAFRAMEWORK ]
return [ DependencyMethods . PKGCONFIG , DependencyMethods . CONFIG_TOOL , DependencyMethods . EXTRAFRAMEWORK ]
else :
else :
@ -893,7 +895,8 @@ class CupsDependency(ExternalDependency):
return
return
mlog . log ( ' Dependency ' , mlog . bold ( ' cups ' ) , ' found: ' , mlog . red ( ' NO ' ) )
mlog . log ( ' Dependency ' , mlog . bold ( ' cups ' ) , ' found: ' , mlog . red ( ' NO ' ) )
def get_methods ( self ) :
@staticmethod
def get_methods ( ) :
if mesonlib . is_osx ( ) :
if mesonlib . is_osx ( ) :
return [ DependencyMethods . PKGCONFIG , DependencyMethods . CONFIG_TOOL , DependencyMethods . EXTRAFRAMEWORK ]
return [ DependencyMethods . PKGCONFIG , DependencyMethods . CONFIG_TOOL , DependencyMethods . EXTRAFRAMEWORK ]
else :
else :
@ -932,7 +935,8 @@ class LibWmfDependency(ExternalDependency):
except Exception as e :
except Exception as e :
mlog . debug ( ' cups not found via libwmf-config. Trying next, error was: ' , str ( e ) )
mlog . debug ( ' cups not found via libwmf-config. Trying next, error was: ' , str ( e ) )
def get_methods ( self ) :
@staticmethod
def get_methods ( ) :
if mesonlib . is_osx ( ) :
if mesonlib . is_osx ( ) :
return [ DependencyMethods . PKGCONFIG , DependencyMethods . CONFIG_TOOL , DependencyMethods . EXTRAFRAMEWORK ]
return [ DependencyMethods . PKGCONFIG , DependencyMethods . CONFIG_TOOL , DependencyMethods . EXTRAFRAMEWORK ]
else :
else :