gplugin/gplugin

63b929558f43
The gjs .pc now correctly adds mozjs. Also update for the testing option removal
if get_option('python')
e = executable('test-python-loader', 'test-python-loader.c',
include_directories : include_directories('.'),
c_args : [
'-DPYTHON_LOADER_DIR="@0@/python"'.format(meson.build_root()),
'-DPYTHON_PLUGIN_DIR="@0@/plugins"'.format(meson.current_source_dir()),
],
link_with : gplugin_loader_tests,
dependencies : [GLIB, GOBJECT, PYTHON3, PYGOBJECT, gplugin_dep])
test('Python loader', e)
# we can't see the symbols in gplugin-python externally, so use the static
# version for testing
e = executable('test-python-utils', 'test-python-utils.c',
include_directories : include_directories('.'),
c_args : [
'-DPYTHON_LOADER_DIR="@0@/python"'.format(meson.build_root()),
'-DPYTHON_PLUGIN_DIR="@0@/plugins"'.format(meson.current_source_dir()),
],
link_with : [gplugin_loader_tests],
dependencies : [GLIB, GOBJECT, PYTHON3, PYGOBJECT,
gplugin_python_static_dep])
test('Python utils', e)
endif # python