@ -444,15 +444,19 @@ class PcapDependency(ExternalDependency):
if DependencyMethods . CONFIG_TOOL in methods :
candidates . append ( functools . partial ( ConfigToolDependency . factory ,
' pcap ' , environment , None , kwargs , [ ' pcap-config ' ] , ' pcap-config ' ) )
# if ctdep.found():
# ctdep.compile_args = ctdep.get_config_value(['--cflags'], 'compile_args')
# ctdep.link_args = ctdep.get_config_value(['--libs'], 'link_args')
# ctdep.version = cls.get_pcap_lib_version(ctdep)
# return ctdep
' pcap ' , environment , None ,
kwargs , [ ' pcap-config ' ] ,
' pcap-config ' ,
PcapDependency . tool_finish_init ) )
return candidates
@staticmethod
def tool_finish_init ( ctdep ) :
ctdep . compile_args = ctdep . get_config_value ( [ ' --cflags ' ] , ' compile_args ' )
ctdep . link_args = ctdep . get_config_value ( [ ' --libs ' ] , ' link_args ' )
ctdep . version = PcapDependency . get_pcap_lib_version ( ctdep )
@staticmethod
def get_methods ( ) :
return [ DependencyMethods . PKGCONFIG , DependencyMethods . CONFIG_TOOL ]
@ -479,10 +483,7 @@ class CupsDependency(ExternalDependency):
candidates . append ( functools . partial ( ConfigToolDependency . factory ,
' cups ' , environment , None ,
kwargs , [ ' cups-config ' ] ,
' cups-config ' ) )
# if ctdep.found():
# ctdep.compile_args = ctdep.get_config_value(['--cflags'], 'compile_args')
# ctdep.link_args = ctdep.get_config_value(['--ldflags', '--libs'], 'link_args')
' cups-config ' , CupsDependency . tool_finish_init ) )
if DependencyMethods . EXTRAFRAMEWORK in methods :
if mesonlib . is_osx ( ) :
@ -492,6 +493,11 @@ class CupsDependency(ExternalDependency):
return candidates
@staticmethod
def tool_finish_init ( ctdep ) :
ctdep . compile_args = ctdep . get_config_value ( [ ' --cflags ' ] , ' compile_args ' )
ctdep . link_args = ctdep . get_config_value ( [ ' --ldflags ' , ' --libs ' ] , ' link_args ' )
@staticmethod
def get_methods ( ) :
if mesonlib . is_osx ( ) :
@ -514,15 +520,15 @@ class LibWmfDependency(ExternalDependency):
if DependencyMethods . CONFIG_TOOL in methods :
candidates . append ( functools . partial ( ConfigToolDependency . factory ,
' libwmf ' , environment , None , kwargs , [ ' libwmf-config ' ] , ' libwmf-config ' ) )
# if ctdep.found():
# ctdep.compile_args = ctdep.get_config_value(['--cflags'], 'compile_args')
# ctdep.link_args = ctdep.get_config_value(['--libs'], 'link_args')
# return ctdep
' libwmf ' , environment , None , kwargs , [ ' libwmf-config ' ] , ' libwmf-config ' , LibWmfDependency . tool_finish_init ) )
return candidates
@staticmethod
def tool_finish_init ( ctdep ) :
ctdep . compile_args = ctdep . get_config_value ( [ ' --cflags ' ] , ' compile_args ' )
ctdep . link_args = ctdep . get_config_value ( [ ' --libs ' ] , ' link_args ' )
@staticmethod
def get_methods ( ) :
return [ DependencyMethods . PKGCONFIG , DependencyMethods . CONFIG_TOOL ]