diff --git a/src/common/meson.build b/src/common/meson.build index f5556fe4..0d651787 100644 --- a/src/common/meson.build +++ b/src/common/meson.build @@ -55,12 +55,39 @@ if host_machine.system() == 'windows' common_includes += include_directories('sysinfo') endif -marshal = gnome.genmarshal('marshal', - sources: 'marshalers.list', - prefix: '_zoitechat_marshal', - internal: true +glib_genmarshal = find_program( + 'glib-genmarshal', + 'glib-genmarshal-2.0', + required: true, ) +marshal = [ + custom_target('marshal_h', + input: 'marshalers.list', + output: 'marshal.h', + command: [ + glib_genmarshal, + '--prefix=_zoitechat_marshal', + '--header', + '@INPUT@', + '--output', + '@OUTPUT@', + ] + ), + custom_target('marshal_c', + input: 'marshalers.list', + output: 'marshal.c', + command: [ + glib_genmarshal, + '--prefix=_zoitechat_marshal', + '--body', + '@INPUT@', + '--output', + '@OUTPUT@', + ] + ) +] + make_te = find_program('make-te.py') textevents = custom_target('textevents',