Ensure generated enum _get_type functions are exported

Thu, 26 Oct 2023 05:50:57 -0500

author
Elliott Sales de Andrade <quantum.analyst@gmail.com>
date
Thu, 26 Oct 2023 05:50:57 -0500
changeset 42426
9acad6165ba9
parent 42425
d1d0174ba72a
child 42427
694a11c69c9e

Ensure generated enum _get_type functions are exported

I did not bother attempting to annotate a version, as there would not really be
a way to set these differently when a new one is added in a future release.

Testing Done:
Compiled.

Bugs closed: PIDGIN-17838

Reviewed at https://reviews.imfreedom.org/r/2725/

libpurple/meson.build file | annotate | diff | comparison | revisions
--- a/libpurple/meson.build	Thu Oct 26 05:47:48 2023 -0500
+++ b/libpurple/meson.build	Thu Oct 26 05:50:57 2023 -0500
@@ -336,6 +336,8 @@
 
 enums = gnome.mkenums_simple('purpleenums',
     sources : purple_enumheaders,
+    decorator : '_PURPLE_EXTERN',
+    header_prefix : '#include "purpleversion.h"',
     install_header : true,
     install_dir : get_option('includedir') / purple_include_base)
 enums_c = enums[0]

mercurial