We pass 2 GeglColor through the wire now. Since it is passed very early (when sharing the configuration), I had some issues with initialization order of GEGL, and in particular when calling gegl_init() before gegl_config() inside _gimp_config(), I had a bunch of such criticals: > Plugin script-fu: GLib-GObject: CRITICAL: Two different plugins tried to register 'GeglOpPlugIn-transform-core' Anyway in the end, I store the passed colors as raw bytes and strings in the GPConfig object, and re-construct the GeglColor last minute in _gimp_config().
37 lines
726 B
Meson
37 lines
726 B
Meson
|
|
libgimpmodule_sources = files(
|
|
'gimpmodule.c',
|
|
'gimpmoduledb.c',
|
|
)
|
|
|
|
libgimpmodule_headers = files(
|
|
'gimpmodule.h',
|
|
'gimpmoduledb.h',
|
|
'gimpmoduletypes.h',
|
|
)
|
|
|
|
libgimpmodule_introspectable = [
|
|
libgimpmodule_sources,
|
|
libgimpmodule_headers,
|
|
]
|
|
|
|
libgimpmodule = library('gimpmodule-' + gimp_api_version,
|
|
libgimpmodule_sources,
|
|
include_directories: rootInclude,
|
|
dependencies: [
|
|
gegl, gio, glib, gmodule,
|
|
],
|
|
c_args: [ '-DG_LOG_DOMAIN="LibGimpModule"', '-DGIMP_MODULE_COMPILATION', ],
|
|
link_with: [
|
|
libgimpbase,
|
|
libgimpconfig,
|
|
],
|
|
vs_module_defs: 'gimpmodule.def',
|
|
install: true,
|
|
version: so_version,
|
|
)
|
|
|
|
install_headers(
|
|
libgimpmodule_headers,
|
|
subdir: gimp_api_name / 'libgimpmodule',
|
|
)
|