|
|
@ -778,7 +778,6 @@ class CupsDependency(ExternalDependency): |
|
|
|
return [DependencyMethods.PKGCONFIG, DependencyMethods.CONFIG_TOOL] |
|
|
|
return [DependencyMethods.PKGCONFIG, DependencyMethods.CONFIG_TOOL] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class LibWmfDependency(ExternalDependency): |
|
|
|
class LibWmfDependency(ExternalDependency): |
|
|
|
def __init__(self, environment, kwargs): |
|
|
|
def __init__(self, environment, kwargs): |
|
|
|
super().__init__('libwmf', environment, None, kwargs) |
|
|
|
super().__init__('libwmf', environment, None, kwargs) |
|
|
@ -795,26 +794,27 @@ class LibWmfDependency(ExternalDependency): |
|
|
|
return |
|
|
|
return |
|
|
|
except Exception as e: |
|
|
|
except Exception as e: |
|
|
|
mlog.debug('LibWmf not found via pkgconfig. Trying next, error was:', str(e)) |
|
|
|
mlog.debug('LibWmf not found via pkgconfig. Trying next, error was:', str(e)) |
|
|
|
if DependencyMethods.LIBWMFCONFIG in self.methods: |
|
|
|
if DependencyMethods.CONFIG_TOOL in self.methods: |
|
|
|
libwmfconf = shutil.which('libwmf-config') |
|
|
|
try: |
|
|
|
if libwmfconf: |
|
|
|
ctdep = ConfigToolDependency.factory( |
|
|
|
stdo = Popen_safe(['libwmf-config', '--cflags'])[1] |
|
|
|
'libwmf', environment, None, kwargs, ['libwmf-config'], 'libwmf-config') |
|
|
|
self.compile_args = stdo.strip().split() |
|
|
|
if ctdep.found(): |
|
|
|
stdo = Popen_safe(['libwmf-config', '--libs'])[1] |
|
|
|
self.config = ctdep.config |
|
|
|
self.link_args = stdo.strip().split() |
|
|
|
self.type_name = 'config-too' |
|
|
|
stdo = Popen_safe(['libwmf-config', '--version'])[1] |
|
|
|
self.version = ctdep.version |
|
|
|
self.version = stdo.strip() |
|
|
|
self.compile_args = ctdep.get_config_value(['--cflags'], 'compile_args') |
|
|
|
self.is_found = True |
|
|
|
self.link_args = ctdep.get_config_value(['--libs'], 'link_args') |
|
|
|
mlog.log('Dependency', mlog.bold('libwmf'), 'found:', |
|
|
|
self.is_found = True |
|
|
|
mlog.green('YES'), '(%s)' % libwmfconf) |
|
|
|
return |
|
|
|
return |
|
|
|
except Exception as e: |
|
|
|
mlog.debug('Could not find libwmf-config binary, trying next.') |
|
|
|
mlog.debug('cups not found via libwmf-config. Trying next, error was:', str(e)) |
|
|
|
|
|
|
|
|
|
|
|
def get_methods(self): |
|
|
|
def get_methods(self): |
|
|
|
if mesonlib.is_osx(): |
|
|
|
if mesonlib.is_osx(): |
|
|
|
return [DependencyMethods.PKGCONFIG, DependencyMethods.LIBWMFCONFIG, DependencyMethods.EXTRAFRAMEWORK] |
|
|
|
return [DependencyMethods.PKGCONFIG, DependencyMethods.CONFIG_TOOL, DependencyMethods.EXTRAFRAMEWORK] |
|
|
|
else: |
|
|
|
else: |
|
|
|
return [DependencyMethods.PKGCONFIG, DependencyMethods.LIBWMFCONFIG] |
|
|
|
return [DependencyMethods.PKGCONFIG, DependencyMethods.CONFIG_TOOL] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Generated with boost_names.py |
|
|
|
# Generated with boost_names.py |
|
|
|
BOOST_LIBS = [ |
|
|
|
BOOST_LIBS = [ |
|
|
|