Skip to content

Commit

Permalink
build: Generate autocleanup functions where possible
Browse files Browse the repository at this point in the history
The autocleanup helpers are very useful and there is no reason to turn
them off, if the code still compiles.

Unfortunately the autocleanup for portal impl interfaces do generate
code that doesn't compile, so leave it turned off for now.
  • Loading branch information
swick committed Oct 11, 2024
1 parent c32d4e3 commit b424ea8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions document-portal/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ permission_store_built_sources = gnome.gdbus_codegen(
sources: '../data/org.freedesktop.impl.portal.PermissionStore.xml',
interface_prefix: 'org.freedesktop.impl.portal',
namespace: 'Xdg',
autocleanup: 'none',
)

db_sources = files(
Expand Down Expand Up @@ -46,7 +45,6 @@ document_portal_built_sources = gnome.gdbus_codegen(
],
interface_prefix: 'org.freedesktop.portal',
namespace: 'XdpDbus',
autocleanup: 'none',
)

xdg_document_portal_sources = [
Expand Down
3 changes: 0 additions & 3 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ portal_built_sources = gnome.gdbus_codegen(
interface_prefix: 'org.freedesktop.portal',
namespace: 'XdpDbus',
docbook: 'portal',
autocleanup: 'none',
)
impl_built_sources = gnome.gdbus_codegen(
'xdp-impl-dbus',
Expand All @@ -22,15 +21,13 @@ background_monitor_built_sources = gnome.gdbus_codegen(
interface_prefix: 'org.freedesktop.background',
namespace: 'XdpDbusBackground',
docbook: 'portal',
autocleanup: 'all',
)
if have_geoclue
geoclue_built_sources = gnome.gdbus_codegen(
'geoclue-dbus',
sources: 'org.freedesktop.GeoClue2.Client.xml',
interface_prefix: 'org.freedesktop.GeoClue2',
namespace: 'Geoclue',
autocleanup: 'none',
)
else
geoclue_built_sources = []
Expand Down

0 comments on commit b424ea8

Please sign in to comment.