gplugin/gplugin

Make GPluginGtkPluginInfo display plugin dependencies.
develop
2020-07-05, Alejandro GarcĂ­a <>
6bc46e33a0b2
Make GPluginGtkPluginInfo display plugin dependencies.

Fixes [GPLUGIN-124 GPluginGtkPluginInfo doesn't show dependencies](https://issues.imfreedom.org/issue/GPLUGIN-124).

Reviewed at https://reviews.imfreedom.org/r/22/
if get_option('tcc')
GPLUGIN_TCC_SOURCES = [
'gplugin-tcc-core.c',
'gplugin-tcc-loader.c',
'gplugin-tcc-plugin.c',
]
GPLUGIN_TCC_HEADERS = [
'gplugin-tcc-loader.h',
'gplugin-tcc-plugin.h',
]
if not compiler.has_header('libtcc.h')
error('libtcc.h not found')
endif
TCC = compiler.find_library('tcc')
gplugin_tcc = shared_library('gplugin-tcc',
GPLUGIN_TCC_SOURCES,
GPLUGIN_TCC_HEADERS,
name_prefix : '',
dependencies : [TCC, gplugin_dep],
install : true,
install_dir : get_option('libdir') / 'gplugin'
)
endif # tcc
subdir('tests')